nfp: support 802.1ad VLAN assingment to VF
authorBaowen Zheng <baowen.zheng@corigine.com>
Tue, 19 Apr 2022 12:44:43 +0000 (14:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Apr 2022 10:00:42 +0000 (11:00 +0100)
commit59359597b010ced20e6e14c8660834c05c2a96b7
treeb4091fd24057d38c4435e519938fdc4e071c2c03
parente350dbac3c09a3318f871e0fab255e234408bde4
nfp: support 802.1ad VLAN assingment to VF

The NFP driver already supports assignment of 802.1Q VLANs to VFs

e.g.
 # ip link set $DEV vf $VF_NUM vlan $VLAN_ID [proto 802.1Q]

This patch enhances the NFP driver to also allow assingment of
802.1ad VLANs to VFs.

e.g.
 # ip link set $DEV vf $VF_NUM vlan $VLAN_ID proto 802.1ad

Signed-off-by: Bin Chen <bin.chen@corigine.com>
Signed-off-by: Baowen Zheng <baowen.zheng@corigine.com>
Signed-off-by: Yinjun Zhang <yunjin.zhang@corigine.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_sriov.c
drivers/net/ethernet/netronome/nfp/nfp_net_sriov.h