diff options
author | 2018-09-21 16:41:47 +0100 | |
---|---|---|
committer | 2018-09-21 19:29:32 -0700 | |
commit | 5f373b1585234bb15c7377076d01af2aed62d0a2 (patch) | |
tree | febb232efedb68264bb0e54d13e99d9c828ce608 /include/linux/tcp.h | |
parent | net: hns3: Add get_media_type ops support for VF (diff) | |
download | wireguard-linux-5f373b1585234bb15c7377076d01af2aed62d0a2.tar.xz wireguard-linux-5f373b1585234bb15c7377076d01af2aed62d0a2.zip |
net: hns3: Fix speed/duplex information loss problem when executing ethtool ethx cmd of VF
Our VF has not implemented the ops for get_port_type. So when we executing
ethtool ethx cmd of VF, hns3_get_link_ksettings will return directly. And
we can not query anything.
To support get_link_ksettings for VF, this patch replaces get_port_type
with get_media_type. If the media type is HNAE3_MEDIA_TYPE_NONE,
hns3_get_link_ksettings will return link information of VF.
Fixes: 12f46bc1d447 ("net: hns3: Refine hns3_get_link_ksettings()")
Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/tcp.h')
0 files changed, 0 insertions, 0 deletions