[ovs-dev] [PATCH] netdev-linux: correctly detect port speed bits beyond 16bit

Ben Pfaff blp at ovn.org
Fri Nov 27 18:36:59 UTC 2015


On Fri, Nov 20, 2015 at 04:26:12PM -0800, Simon Horman wrote:
> 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.horman at 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.

netdev-linux.c has some #defines that add compatibility for building
against headers as old as Linux 2.6.14, so probably this should add a
compatibility #define for ethtool_cmd_speed().

The same thing is probably true for the other related patch you posted.



More information about the dev mailing list