net: wangxun: match VLAN CTAG and STAG features
authorJiawen Wu <jiawenwu@trustnetic.com>
Fri, 17 May 2024 06:51:39 +0000 (14:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 May 2024 09:17:36 +0000 (10:17 +0100)
commitac71ab7816b675f1c9614015bd87bfccb456c394
treead9e82658e3e286f0bf80c1e6b698c0a14352ec7
parent68067f065ee730c7c67b361c3c81808d25d5a90b
net: wangxun: match VLAN CTAG and STAG features

Hardware requires VLAN CTAG and STAG configuration always matches. And
whether VLAN CTAG or STAG changes, the configuration needs to be changed
as well.

Fixes: 6670f1ece2c8 ("net: txgbe: Add netdev features support")
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Reviewed-by: Sai Krishna <saikrishnag@marvell.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
drivers/net/ethernet/wangxun/libwx/wx_lib.h
drivers/net/ethernet/wangxun/ngbe/ngbe_main.c
drivers/net/ethernet/wangxun/txgbe/txgbe_main.c