summaryrefslogtreecommitdiffstats
path: root/drivers/net/tap.c
diff options
context:
space:
mode:
authorGuangbin Huang <huangguangbin2@huawei.com>2020-03-28 08:09:58 +0100
committerDavid S. Miller <davem@davemloft.net>2020-03-30 19:57:53 +0200
commita9775bb64aa725ea2f915cb5dfc32c1bac8a7175 (patch)
treed10a14dccceac3a845ed32da14ed92240413e3b0 /drivers/net/tap.c
parentnet: hns3: fix RSS config lost after VF reset. (diff)
downloadlinux-a9775bb64aa725ea2f915cb5dfc32c1bac8a7175.tar.xz
linux-a9775bb64aa725ea2f915cb5dfc32c1bac8a7175.zip
net: hns3: fix set and get link ksettings issue
When device is not open, the service task which update the port information per second is not running. In this case, the port capabilities, including speed ability, autoneg ability, media type, may be incorrect. Then get/set link ksetting may fail. This patch fixes it by updating the port information before getting/ setting link ksettings when device is not open, and start timer task immediately by setting delay time to 0 when device opens. Fixes: 46a3df9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support") Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tap.c')
0 files changed, 0 insertions, 0 deletions