aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorFuyun Liang <[email protected]>2018-09-21 15:41:47 +0000
committerDavid S. Miller <[email protected]>2018-09-22 02:29:32 +0000
commit5f373b1585234bb15c7377076d01af2aed62d0a2 (patch)
treefebb232efedb68264bb0e54d13e99d9c828ce608 /net/ipv4/tcp_ipv4.c
parentnet: hns3: Add get_media_type ops support for VF (diff)
downloadkernel-5f373b1585234bb15c7377076d01af2aed62d0a2.tar.gz
kernel-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 <[email protected]> Signed-off-by: Peng Li <[email protected]> Signed-off-by: Salil Mehta <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
0 files changed, 0 insertions, 0 deletions