diff options
author | Ladislav Michl <ladis@linux-mips.org> | 2023-06-27 13:09:03 +0200 |
---|---|---|
committer | Michal Kubecek <mkubecek@suse.cz> | 2023-07-01 22:27:11 +0200 |
commit | f493e6381c8ad0a2a97cb3f58e1d02c4e817678f (patch) | |
tree | b4179c8736dd385859631fe4fab846147caf7a36 | |
parent | b3e341c1a81b901a3debd2b172c830df0b518b89 (diff) | |
download | ethtool-f493e6381c8ad0a2a97cb3f58e1d02c4e817678f.tar.gz |
netlink: fix duplex setting
nl_parse_lookup_u8 handler is used with duplex_values defined as
lookup_entry_u32. While it still works on little endian machines,
duplex is always 0 (DUPLEX_HALF) on big endian ones...
Fixes: 392b12e38747 ("netlink: add netlink handler for sset (-s)")
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
-rw-r--r-- | netlink/settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netlink/settings.c b/netlink/settings.c index 4fd75d2..9aad8d9 100644 --- a/netlink/settings.c +++ b/netlink/settings.c @@ -1089,7 +1089,7 @@ static const struct bitset_parser_data advertise_parser_data = { .force_hex = true, }; -static const struct lookup_entry_u32 duplex_values[] = { +static const struct lookup_entry_u8 duplex_values[] = { { .arg = "half", .val = DUPLEX_HALF }, { .arg = "full", .val = DUPLEX_FULL }, {} |