]> git.openfabrics.org - ~emulex/infiniband.git/commit
net: add unknown state to sysfs NIC duplex export
authorNikolay Aleksandrov <naleksan@redhat.com>
Wed, 5 Sep 2012 04:11:28 +0000 (04:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Sep 2012 21:40:07 +0000 (17:40 -0400)
commitc6c13965f4ffca6163af0c9419095aedc103648c
tree1c23b7c0dacd86dcde7835070504abb4f0e6caef
parentf6fe569fe056388166575af1cfaed0bcbc688305
net: add unknown state to sysfs NIC duplex export

Currently when the NIC duplex state is DUPLEX_UNKNOWN it is exported as
full through sysfs, this patch adds support for DUPLEX_UNKNOWN. It is
handled the same way as in ethtool.

Signed-off-by: Nikolay Aleksandrov <naleksan@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-sysfs.c