This includes bits for: * Backplane * 1000 baseKX (full duplex) * All speeds of 10Gbit and above other than 10000 baseT (full duplex).
Signed-off-by: Simon Horman <simon.hor...@netronome.com> --- * ethtool_cmd_speed() is a trivial provided by Linux kernel headers. It was introduced in 2.6.27. The source file in question is only compiled when building for a Linux host. I am unsure of that compatibility considerations are regarding Linux kernel versions and OVS user-space code. --- lib/netdev-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index 584e804b6c8a..9ce1e29ecf15 100644 --- a/lib/netdev-linux.c +++ b/lib/netdev-linux.c @@ -1849,7 +1849,7 @@ netdev_linux_read_features(struct netdev_linux *netdev) } /* Current settings. */ - speed = ecmd.speed; + speed = ethtool_cmd_speed(&ecmd); if (speed == SPEED_10) { netdev->current = ecmd.duplex ? NETDEV_F_10MB_FD : NETDEV_F_10MB_HD; } else if (speed == SPEED_100) { -- 2.1.4 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev