netdev
[Top] [All Lists]

RFC new ethtool command

To: Netdev <netdev@xxxxxxxxxxx>
Subject: RFC new ethtool command
From: Andy Fleming <afleming@xxxxxxxxxxxxx>
Date: Tue, 1 Mar 2005 09:22:07 -0600
Cc: Jeff Garzik <jgarzik@xxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
I propose adding a new command to ethtool which allows ethernet drivers to specify a command list. A command list would consist of a name/value pair, conforming to the cmdline_info structure already present in ethtool. I see two immediate benefits of this system:

1) controllers which have "cutting-edge", or at least unusual, features can easily add support for these features. As an example, the 85xx allows the ethernet controller's DMA engine to allocate and/or lock buffer descriptors into the L2 cache of the processor. Using this method, a command could be created which is specific to that driver which allows users to turn this feature on or off.

2) When debugging a new driver, or a new feature for an old driver, it is easy to add a quick interface to change the testing parameters without having to add new /proc entries.

Three patches follow; the first allows ethtool to use this new feature, the second allows the kernel to invoke the new feature, and the third is an example of how the gianfar driver uses this feature to expose failure testing features in the PHY-level code (note that this third patch is not a final version. It also contains a few elements from the PHY abstraction patch, which can be ignored for the purposes of this discussion).

Andy Fleming
Open Source Software
Freescale Semiconductor, Inc

Attachment: xcmd-gfar.patch
Description: Binary data

Attachment: xcmd-kernel.patch
Description: Binary data

Attachment: xcmd.patch
Description: Binary data

<Prev in Thread] Current Thread [Next in Thread>