ethtool: fix half-duplex / full-duplex confusion (#6209)

The values that we used for half-duplex and full-duplex in ethtool_set_glinksettings were
reversed wrt. what the kernel uses.
This commit is contained in:
Susant Sahani 2017-06-30 16:55:21 +00:00 committed by Zbigniew Jędrzejewski-Szmek
parent ca5b440aa7
commit 9432a05c54

View file

@ -29,8 +29,8 @@ struct link_config;
/* we can't use DUPLEX_ prefix, as it
* clashes with <linux/ethtool.h> */
typedef enum Duplex {
DUP_FULL,
DUP_HALF,
DUP_HALF = DUPLEX_HALF,
DUP_FULL = DUPLEX_FULL,
_DUP_MAX,
_DUP_INVALID = -1
} Duplex;