mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-27 01:55:32 +03:00
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:
parent
ca5b440aa7
commit
9432a05c54
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user