[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <DM6PR11MB2890AC827D2F779D985D2513BC070@DM6PR11MB2890.namprd11.prod.outlook.com>
Date: Mon, 12 Oct 2020 22:20:08 +0000
From: "Brown, Aaron F" <aaron.f.brown@...el.com>
To: Stefan Assmann <sassmann@...nic.de>,
"intel-wired-lan@...ts.osuosl.org" <intel-wired-lan@...ts.osuosl.org>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"davem@...emloft.net" <davem@...emloft.net>,
"Kirsher, Jeffrey T" <jeffrey.t.kirsher@...el.com>,
"Yang, Lihong" <lihong.yang@...el.com>
Subject: RE: [PATCH] i40e: report correct VF link speed when link state is set
to enable
> From: netdev-owner@...r.kernel.org <netdev-owner@...r.kernel.org> On
> Behalf Of Stefan Assmann
> Sent: Wednesday, September 9, 2020 1:22 AM
> To: intel-wired-lan@...ts.osuosl.org
> Cc: netdev@...r.kernel.org; davem@...emloft.net; Kirsher, Jeffrey T
> <jeffrey.t.kirsher@...el.com>; Yang, Lihong <lihong.yang@...el.com>;
> sassmann@...nic.de
> 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 <sassmann@...nic.de>
> ---
> drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
Tested-by: Aaron Brown <aaron.f.brown@...el.com>
Powered by blists - more mailing lists