diff options
author | Fuyun Liang <liangfuyun1@huawei.com> | 2018-09-21 16:41:47 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-21 19:29:32 -0700 |
commit | 5f373b1585234bb15c7377076d01af2aed62d0a2 (patch) | |
tree | febb232efedb68264bb0e54d13e99d9c828ce608 /net/ipv4/tcp_output.c | |
parent | c136b88425890030d7ba09a8e62abc29ed9b98da (diff) | |
download | linux-5f373b1585234bb15c7377076d01af2aed62d0a2.tar.gz linux-5f373b1585234bb15c7377076d01af2aed62d0a2.tar.bz2 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 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions