diff options
author | Michal Swiatkowski <michal.swiatkowski@linux.intel.com> | 2021-10-12 11:31:03 -0700 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2021-10-28 10:59:17 -0700 |
commit | 195bb48fccdef4965a65579ef05db8a8fcba8dca (patch) | |
tree | bfb77fa6cb11d5ea16c60ce7a30ee7f15d5224e1 /drivers/net/ethernet/intel/ice/ice_tc_lib.h | |
parent | f2edaa4ad5d51371709196f2c258fbe875962dee (diff) | |
download | lwn-195bb48fccdef4965a65579ef05db8a8fcba8dca.tar.gz lwn-195bb48fccdef4965a65579ef05db8a8fcba8dca.zip |
ice: support for indirect notification
Implement indirect notification mechanism to support offloading TC rules
on tunnel devices.
Keep indirect block list in netdev priv. Notification will call setting
tc cls flower function. For now we can offload only ingress type. Return
not supported for other flow block binder.
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Acked-by: Paul Menzel <pmenzel@molgen.mpg.de>
Tested-by: Sandeep Penigalapati <sandeep.penigalapati@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_tc_lib.h')
-rw-r--r-- | drivers/net/ethernet/intel/ice/ice_tc_lib.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_tc_lib.h b/drivers/net/ethernet/intel/ice/ice_tc_lib.h index ee9b284fcc02..99ececeef445 100644 --- a/drivers/net/ethernet/intel/ice/ice_tc_lib.h +++ b/drivers/net/ethernet/intel/ice/ice_tc_lib.h @@ -23,6 +23,12 @@ #define ICE_TC_FLWR_FIELD_ENC_DST_MAC BIT(16) #define ICE_TC_FLWR_FIELD_ETH_TYPE_ID BIT(17) +struct ice_indr_block_priv { + struct net_device *netdev; + struct ice_netdev_priv *np; + struct list_head list; +}; + struct ice_tc_flower_action { u32 tc_class; enum ice_sw_fwd_act_type fltr_act; |