Commit 0612386c authored by Hao Lan's avatar Hao Lan Committed by Hao Chen
Browse files

net: hns3: fix missing features due to dev->features configuration too early

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IAN3KC


CVE: NA

----------------------------------------------------------------------

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: 2a7556bb ("net: hns3: implement ndo_features_check ops for hns3 driver")
Signed-off-by: default avatarJian Shen <shenjian15@huawei.com>
Signed-off-by: default avatarHao Lan <lanhao@huawei.com>
parent 8565d804
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2754,7 +2754,6 @@ static int hns3_nic_set_features(struct net_device *netdev,
			return ret;
	}

	netdev->features = features;
	return 0;
}