net/iavf: fix VLAN offload requests to PF
authorHaiyue Wang <haiyue.wang@intel.com>
Mon, 25 Jan 2021 04:30:54 +0000 (12:30 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:08 +0000 (18:16 +0100)
commite4d0e050ffd47cdb9cab7f52b7a2950bae7bedfd
treefd28bae25cd61fa99e3e0690b6c66294ad993158
parent87b81daeeb871660cc1c96e64e1887c43ec4c3b2
net/iavf: fix VLAN offload requests to PF

If the underlying PF doesn't support a specific ethertype or the ability
to toggle VLAN insertion and/or stripping, then prevent the VF sending
an invalid message to the PF.

Fixes: 1c301e8c3cff ("net/iavf: support new VLAN capabilities")

Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/iavf/iavf_vchnl.c