net/ice: refactor DCF VLAN handling
authorHaiyue Wang <haiyue.wang@intel.com>
Mon, 18 Jan 2021 11:38:29 +0000 (19:38 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 19 Jan 2021 12:49:41 +0000 (13:49 +0100)
commitc7e1a1a3bfebd5a09f3693c9f353fe703e7ae8da
tree7173beadf745d82563b52e664a263f30376a3c09
parent52a6478257b26b0eada505d815790c83280be27a
net/ice: refactor DCF VLAN handling

Since DCF always configure the outer VLAN offloads for the target AVF,
so rename the related variables to align with this design.

Also, the DCF needs to trace the AVF reset status to re-apply the VLAN
offload setting, refactor the reset event handling to support this.

Change the VF representor API 'ethdev' parameter to 'vf_rep_eth_dev' to
avoid introducing confusion with VF representor eth_dev ops name.

Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_dcf_ethdev.c
drivers/net/ice/ice_dcf_ethdev.h
drivers/net/ice/ice_dcf_parent.c
drivers/net/ice/ice_dcf_vf_representor.c