]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: hns3: fix missing features due to dev->features configuration too early
authorHao Lan <lanhao@huawei.com>
Fri, 25 Oct 2024 09:29:33 +0000 (17:29 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 31 Oct 2024 10:15:42 +0000 (11:15 +0100)
commit662ecfc46690e92cf630f51b5d4bbbcffe102980
treead984a99e44a0d00d8ef499c2d0c9e4b145ade40
parent3e0f7cc887b77603182dceca4d3a6e84f6a40d0a
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: 2a7556bb2b73 ("net: hns3: implement ndo_features_check ops for hns3 driver")
Signed-off-by: Hao Lan <lanhao@huawei.com>
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c