diff options
author | Edward Cree <ecree.xilinx@gmail.com> | 2023-03-27 13:36:06 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-03-29 11:06:08 +0300 |
commit | 2245eb0086d81e54dfc6492f649059465ebbed79 (patch) | |
tree | 021404958dbeaea4b6737810735cadc217a65018 /drivers/net/ethernet/sfc/mae.h | |
parent | b7f5e17b3bb96165979f55f2821190a77f984d0e (diff) | |
download | linux-2245eb0086d81e54dfc6492f649059465ebbed79.tar.xz |
sfc: add functions to insert encap matches into the MAE
An encap match corresponds to an entry in the exact-match Outer Rule
table; the lookup response includes the encap type (protocol) allowing
the hardware to continue parsing into the inner headers.
Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/mae.h')
-rw-r--r-- | drivers/net/ethernet/sfc/mae.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/mae.h b/drivers/net/ethernet/sfc/mae.h index 2ccbc62d79b9..79d315a129ab 100644 --- a/drivers/net/ethernet/sfc/mae.h +++ b/drivers/net/ethernet/sfc/mae.h @@ -94,6 +94,11 @@ int efx_mae_alloc_action_set_list(struct efx_nic *efx, int efx_mae_free_action_set_list(struct efx_nic *efx, struct efx_tc_action_set_list *acts); +int efx_mae_register_encap_match(struct efx_nic *efx, + struct efx_tc_encap_match *encap); +int efx_mae_unregister_encap_match(struct efx_nic *efx, + struct efx_tc_encap_match *encap); + int efx_mae_insert_rule(struct efx_nic *efx, const struct efx_tc_match *match, u32 prio, u32 acts_id, u32 *id); int efx_mae_delete_rule(struct efx_nic *efx, u32 id); |