Skip to content

Commit ac1e283

Browse files
Hao Lankuba-moo
authored andcommitted
net: hns3: fix missing features due to dev->features configuration too early
Currently, the netdev->features is configured in hns3_nic_set_features. As a result, __netdev_update_features considers that there is no feature difference, and the procedures of the real features are missing. Fixes: 2a7556b ("net: hns3: implement ndo_features_check ops for hns3 driver") Signed-off-by: Hao Lan <[email protected]> Signed-off-by: Jian Shen <[email protected]> Signed-off-by: Jijie Shao <[email protected]> Reviewed-by: Michal Swiatkowski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 5a4b584 commit ac1e283

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3_enet.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2452,7 +2452,6 @@ static int hns3_nic_set_features(struct net_device *netdev,
24522452
return ret;
24532453
}
24542454

2455-
netdev->features = features;
24562455
return 0;
24572456
}
24582457

0 commit comments

Comments
 (0)