aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/ice/ice_vlan.h
diff options
context:
space:
mode:
authorGravatar Brett Creeley <brett.creeley@intel.com> 2021-12-02 08:38:44 -0800
committerGravatar Tony Nguyen <anthony.l.nguyen@intel.com> 2022-02-09 09:24:45 -0800
commit2bfefa2dab6bb4c8596778e3ccb011d1f0e13975 (patch)
tree2975995264997e51a4b7f37dc681b1ec5a02fc90 /drivers/net/ethernet/intel/ice/ice_vlan.h
parentice: Refactor vf->port_vlan_info to use ice_vlan (diff)
downloadlinux-2bfefa2dab6bb4c8596778e3ccb011d1f0e13975.tar.gz
linux-2bfefa2dab6bb4c8596778e3ccb011d1f0e13975.tar.bz2
linux-2bfefa2dab6bb4c8596778e3ccb011d1f0e13975.zip
ice: Use the proto argument for VLAN ops
Currently the proto argument is unused. This is because the driver only supports 802.1Q VLAN filtering. This policy is enforced via netdev features that the driver sets up when configuring the netdev, so the proto argument won't ever be anything other than 802.1Q. However, this will allow for future iterations of the driver to seemlessly support 802.1ad filtering. Begin using the proto argument and extend the related structures to support its use. Signed-off-by: Brett Creeley <brett.creeley@intel.com> Tested-by: Gurucharan G <gurucharanx.g@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_vlan.h')
-rw-r--r--drivers/net/ethernet/intel/ice/ice_vlan.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_vlan.h b/drivers/net/ethernet/intel/ice/ice_vlan.h
index 3fad0cba2da6..bc4550a03173 100644
--- a/drivers/net/ethernet/intel/ice/ice_vlan.h
+++ b/drivers/net/ethernet/intel/ice/ice_vlan.h
@@ -8,10 +8,11 @@
#include "ice_type.h"
struct ice_vlan {
+ u16 tpid;
u16 vid;
u8 prio;
};
-#define ICE_VLAN(vid, prio) ((struct ice_vlan){ vid, prio })
+#define ICE_VLAN(tpid, vid, prio) ((struct ice_vlan){ tpid, vid, prio })
#endif /* _ICE_VLAN_H_ */