diff options
| author | Stefan Assmann <[email protected]> | 2020-09-09 08:22:12 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2020-11-24 16:02:24 +0000 |
| commit | 6ec12e1e9404acb27a7434220bbe5f75e7bb2859 (patch) | |
| tree | 149f92306e9a8c8ec23c7a52807bf32491a67c7e /net/lapb/lapb_iface.c | |
| parent | i40e: remove redundant assignment (diff) | |
| download | kernel-6ec12e1e9404acb27a7434220bbe5f75e7bb2859.tar.gz kernel-6ec12e1e9404acb27a7434220bbe5f75e7bb2859.zip | |
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]>
Tested-by: Aaron Brown <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions
