From 9432a05c541d64e807949c416604cc04f4107307 Mon Sep 17 00:00:00 2001 From: Susant Sahani Date: Fri, 30 Jun 2017 16:55:21 +0000 Subject: [PATCH] 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. --- src/udev/net/ethtool-util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/udev/net/ethtool-util.h b/src/udev/net/ethtool-util.h index a4beedf00f..27ce0e0aba 100644 --- a/src/udev/net/ethtool-util.h +++ b/src/udev/net/ethtool-util.h @@ -29,8 +29,8 @@ struct link_config; /* we can't use DUPLEX_ prefix, as it * clashes with */ typedef enum Duplex { - DUP_FULL, - DUP_HALF, + DUP_HALF = DUPLEX_HALF, + DUP_FULL = DUPLEX_FULL, _DUP_MAX, _DUP_INVALID = -1 } Duplex; -- 2.25.1