net: wangxun: fix to change Rx features
authorJiawen Wu <jiawenwu@trustnetic.com>
Fri, 17 May 2024 06:51:38 +0000 (14:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 May 2024 09:17:36 +0000 (10:17 +0100)
commit68067f065ee730c7c67b361c3c81808d25d5a90b
treea3fda27939d8b3118aa9046d4787049a5915aaa3
parent581073f626e387d3e7eed55c48c8495584ead7ba
net: wangxun: fix to change Rx features

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>
drivers/net/ethernet/wangxun/libwx/wx_lib.c