> From: [email protected] <[email protected]> On
> Behalf Of Stefan Assmann
> Sent: Wednesday, September 9, 2020 1:22 AM
> To: [email protected]
> Cc: [email protected]; [email protected]; Kirsher, Jeffrey T
> <[email protected]>; Yang, Lihong <[email protected]>;
> [email protected]
> Subject: [PATCH] i40e: report correct VF link speed when link state is set to
> enable
> 
> When the virtual link state was set to "enable" ethtool would report
> link speed as 40000Mb/s regardless of the underlying device.
> Report the correct link speed.
> 
> Example from a XXV710 NIC.
> Before:
> $ ip link set ens3f0 vf 0 state auto
> $  ethtool enp8s2 | grep Speed
>         Speed: 25000Mb/s
> $ ip link set ens3f0 vf 0 state enable
> $ ethtool enp8s2 | grep Speed
>         Speed: 40000Mb/s
> After:
> $ ip link set ens3f0 vf 0 state auto
> $  ethtool enp8s2 | grep Speed
>         Speed: 25000Mb/s
> $ ip link set ens3f0 vf 0 state enable
> $ ethtool enp8s2 | grep Speed
>         Speed: 25000Mb/s
> 
> Signed-off-by: Stefan Assmann <[email protected]>
> ---
>  drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

Tested-by: Aaron Brown <[email protected]>

Reply via email to