Commit ac1e2836 authored by Hao Lan's avatar Hao Lan Committed by Jakub Kicinski
Browse files

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: 2a7556bb ("net: hns3: implement ndo_features_check ops for hns3 driver")
Signed-off-by: default avatarHao Lan <lanhao@huawei.com>
Signed-off-by: default avatarJian Shen <shenjian15@huawei.com>
Signed-off-by: default avatarJijie Shao <shaojijie@huawei.com>
Reviewed-by: default avatarMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Link: https://patch.msgid.link/20250106143642.539698-3-shaojijie@huawei.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 5a4b584c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2452,7 +2452,6 @@ static int hns3_nic_set_features(struct net_device *netdev,
			return ret;
	}

	netdev->features = features;
	return 0;
}