Skip to content

Commit 662ecfc

Browse files
Hao LanPaolo Abeni
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]> Signed-off-by: Paolo Abeni <[email protected]>
1 parent 3e0f7cc commit 662ecfc

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
@@ -2483,7 +2483,6 @@ static int hns3_nic_set_features(struct net_device *netdev,
24832483
return ret;
24842484
}
24852485

2486-
netdev->features = features;
24872486
return 0;
24882487
}
24892488

0 commit comments

Comments
 (0)