]> git.hungrycats.org Git - linux/commit
net: wangxun: fix to change Rx features
authorJiawen Wu <jiawenwu@trustnetic.com>
Fri, 17 May 2024 06:51:38 +0000 (14:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:49:51 +0000 (09:49 +0200)
commitaf61114b7c672d102a91715736be59cb6faa8d3d
tree4b4051b5f4c6bb26bc2bf479fcae171580588ad4
parentdd8d5cc4ce3a684a2e37af40746663d663f0404d
net: wangxun: fix to change Rx features

[ Upstream commit 68067f065ee730c7c67b361c3c81808d25d5a90b ]

Fix the issue where some Rx features cannot be changed.

When using ethtool -K to turn off rx offload, it returns error and
displays "Could not change any device features". And netdev->features
is not assigned a new value to actually configure the hardware.

Fixes: 6dbedcffcf54 ("net: libwx: Implement xx_set_features ops")
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/wangxun/libwx/wx_lib.c