Removes duplex information from the control register dump when ethtool
-d is called.

The duplex control register is used for setting the driver and is not
necessary for debug purposes.  The value of the duplex control
register is what the register's current value is and may not reflect
the correct status of the current connection.  That is what the duplex
status register is used for.  To keep from confusing the user, we are
removing the duplex register from the ethtool dump of the registers.

Signed-off-by: Jeff Kirsher <
[EMAIL PROTECTED]>
Signed-off-by: John Ronciak <[EMAIL PROTECTED]>


diff -up ethtool-a/e1000.c ethtool-b/e1000.c
--- ethtool-a/e1000.c   2005-10-27 14:46:
22.000000000 -0700
+++ ethtool-b/e1000.c   2005-10-28 17:54:55.000000000 -0700
@@ -282,7 +282,6 @@ e1000_dump_regs(struct ethtool_drvinfo *
       reg = regs_buff[0];
       fprintf(stdout,
               "0x00000: CTRL (Device control register)  0x%08X\n"

-               "      Duplex:                            %s\n"
               "      Endian mode (buffers):             %s\n"
               "      Link reset:                        %s\n"

               "      Set link up:                       %s\n"
@@ -291,7 +290,6 @@ e1000_dump_regs(struct ethtool_drvinfo *
               "      Transmit flow control:             %s\n"
               "      VLAN mode:                         %s\n",

               reg,
-               reg & E1000_CTRL_FD     ? "full"     : "half",
               reg & E1000_CTRL_BEM    ? "big"      : "little",
               reg & E1000_CTRL_LRST   ? "reset"    : "normal",

               reg & E1000_CTRL_SLU    ? "1"        : "0",

--
Cheers,
Jeff
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to