From: Susant Sahani Date: Fri, 30 Jun 2017 16:55:21 +0000 (+0000) Subject: ethtool: fix half-duplex / full-duplex confusion (#6209) X-Git-Tag: v234~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9432a05c541d64e807949c416604cc04f4107307;p=platform%2Fupstream%2Fsystemd.git 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. --- diff --git a/src/udev/net/ethtool-util.h b/src/udev/net/ethtool-util.h index a4beedf..27ce0e0 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;