net: txgbe: fix to control VLAN strip
authorJiawen Wu <jiawenwu@trustnetic.com>
Fri, 17 May 2024 06:51:40 +0000 (14:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 May 2024 09:17:36 +0000 (10:17 +0100)
commit1d3c6414950badaa38002af3b5857e01a21f01e9
tree56297ef0e3d8ce043a556c3025ab104b2cc13633
parentac71ab7816b675f1c9614015bd87bfccb456c394
net: txgbe: fix to control VLAN strip

When VLAN tag strip is changed to enable or disable, the hardware requires
the Rx ring to be in a disabled state, otherwise the feature cannot be
changed.

Fixes: f3b03c655f67 ("net: wangxun: Implement vlan add and kill functions")
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_hw.c
drivers/net/ethernet/wangxun/libwx/wx_lib.c
drivers/net/ethernet/wangxun/libwx/wx_type.h
drivers/net/ethernet/wangxun/ngbe/ngbe_ethtool.c
drivers/net/ethernet/wangxun/txgbe/txgbe_ethtool.c
drivers/net/ethernet/wangxun/txgbe/txgbe_main.c
drivers/net/ethernet/wangxun/txgbe/txgbe_type.h