Fedora 15 Update: ethtool-3.1-1.fc15

updates at fedoraproject.org updates at fedoraproject.org
Sun Jan 1 21:21:58 UTC 2012

Fedora Update Notification
2011-12-24 20:36:00

Name        : ethtool
Product     : Fedora 15
Version     : 3.1
Release     : 1.fc15
URL         : http://sourceforge.net/projects/gkernel/
Summary     : Settings tool for Ethernet NICs
Description :
This utility allows querying and changing settings such as speed,
port, auto-negotiation, PCI locations and checksum offload on many
network devices, especially of Ethernet devices.

Update Information:

Upstream changes for ethtool 3.1:

 - ethtool: Uncook tg3 regdump output; tg3 devices have changed a lot since the bcm5700 days. Register blocks have been added, removed and redefined.  The existing tg3 register dump code has not kept up.
 - ethtool-copy.h: sync with net-next
 - ethtool: add support for external loopback. External loopback will be performed in addition to other offline tests. User need to pass new parameter "external_lb" for the same.
 - ethtool: fix flow control register dump for 82599 and newer. Fix reporting of the flow control settings in the register dump for ixgbe. Use MFLCN for 82599 and X540 HW instead of FCTRL.
 - ethtool: add ETHTOOL_{G,S}CHANNEL support.
 - Report pause frame autonegotiation result. If pause frame autonegotiation is enabled and the driver reports the link partner's advertising flags, report the result of autonegotiation.
 - ethtool.8: Fix initial blank line/page
 - Combine ethtool-{bitops,util}.h into internal.h. ethtool-util.h contains all kinds of declarations, not just utility functions or macros. ethtool-bitops.h contains just a few extra definitions, and its only user also includes ethtool-util.h.
 - Fix type of bit-number parameter to set_bit() and clear_bit(). The index must not be negative, so the parameter does not need to be signed.  Division and modulus on signed operands generally cannot be optimised to right-shift and bitwise-and.
 - ethtool.8: Change device name metavariable from 'ethX' to 'devname'
 - ethtool.8: Allow line-break in description of parameters after -N. These lines are currently unbreakable and result in ugly wrapping in an 80-column window.
 - Fix format of help text for -f option
 - Use standard indentation for definition of struct option args. Also put the whole of the help string on a line of its own where necessary.
 - Encapsulate command context in a structure. Replace the fd and ifr arguments to each sub-command handler with struct cmd_context.  Change send_ioctl() to take a pointer to this context and a pointer to the ethtool_cmd or other structure. Use send_ioctl() consistently.
 - Add test cases for command-line parsing. Preparation for refactoring command-line parsing. All these test cases pass.
 - Add more test cases for command-line parsing. These test cases currently fail.
 - Move argument parsing to sub-command functions. Instead of doing most of the argument parsing in parse_cmdline(), find the sub-command and (if required) the device name in main() and do the rest in the sub-command handler function.  Pass argc and argp around in struct cmd_context. This also tightens up argument parsing slightly: extraneous or missing arguments will now result in an error in a few cases where they were previously ignored.  All test cases now pass. Replace sub-command dispatch in doit() with a function pointer in struct option.
 - Support arbitrary numbers of option names for each mode. Instead of supporting a single short and long option for each mode, take a string of options separated by "|" (matching the way they are displayed in online help).
 - Fix reference to cmdline_ring in do_schannels(). cmdline_ring and cmdline_channels have the same array size, so this just happened to work.
 - Convert cmdline_msglvl into array of named flags; convert back at run-time. cmdline_msglvl is used both in do_gset() and do_sset(), but it refers to variables only used in do_sset().  I want to get rid of the global variables without duplicating the flag definitions.  So separate out the flag definitions into a new structure and generate cmdline_msglvl from that at run-time.
 - Replace global devname variable with a field in struct cmd_context
 - Change most static global variables into automatic variables. This is necessary preparation for in-process testing.  It should also reduce the risk of some classes of bug by putting declaration and use closer together. Add parameters to various functions as necessary. Leave the global constants alone.
 - rxclass: Replace global rmgr with automatic variable/parameter
 - Declare static variables const as appropriate
 - Rearrange definitions and remove unnecessary forward declarations Most functions in ethtool.c are defined before use.  The major exception is that the args array refers to a large number of functions defined after it.  Move the args array and show_usage() functions down, and move a few other functions up. This leaves just one forward declaration in ethtool.c, which is unavoidable because show_usage() and args refer to each other.

Upstream changes for ethtool 3.0:

 - ethtool-copy.h: sync with net-next-2.6
 - Combine code to display supported and advertised link capabilities
 - Rename dump_advertised() to dump_link_caps(), and change dump_supported() to call it instead of repeating nearly identical code. Add a separate prefix parameter and adjust indentation so that the output is unchanged except for added lines.
 - Deleted unused parameter and variables.
 - As an immediate benefit, this adds the display of supported pause frame use.
 - Added support to take FW dump via ethtool.
 - Fix type mismatch for field width argument to fprintf()
 - ethtool: Add support for 20G link speed
 - ethtool: RX NFC corrections
 - Correct parameter types for ethtool -e and ethtool -E: All parameters to the underlying ethtool commands are unsigned, not signed.  In particular, the 'magic' parameter to ethtool -E often has the most significant bit set and users should not have to provide it as a negative number. For ethtool -E, the value to be written is 8-bit, not 32-bit.

* Fri Dec 23 2011 Robert Scheck <robert at fedoraproject.org> 2:3.1-1
- Upgrade to 3.1 (#728480)
* Sun Jul 17 2011 Robert Scheck <robert at fedoraproject.org> 2:2.6.39-1
- Upgrade to 2.6.39 (#710400)

  [ 1 ] Bug #728480 - ethtool-3.1 is available

This update can be installed with the "yum" update program.  Use 
su -c 'yum update ethtool' at the command line.
For more information, refer to "Managing Software with yum",
available at http://docs.fedoraproject.org/yum/.

All packages are signed with the Fedora Project GPG key.  More details on the
GPG keys used by the Fedora Project can be found at

More information about the package-announce mailing list