diff options
author | Or Gerlitz | 2017-05-04 20:46:11 +0200 |
---|---|---|
committer | Saeed Mahameed | 2017-06-08 13:12:00 +0200 |
commit | 11c9c548ceb31f431facbc51c7081b4957223c47 (patch) | |
tree | b70f1cfa2ce2d50c99828b0f4e583ed26377b2b7 /drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | |
parent | net/mlx5e: Use short attribute form when adding/deleting offloaded TC flows (diff) | |
download | kernel-qcow2-linux-11c9c548ceb31f431facbc51c7081b4957223c47.tar.gz kernel-qcow2-linux-11c9c548ceb31f431facbc51c7081b4957223c47.tar.xz kernel-qcow2-linux-11c9c548ceb31f431facbc51c7081b4957223c47.zip |
net/mlx5e: Add cache for HW modify header IDs
Packets belonging to flows which are different by matching may still need
to go through the same header re-write. Add a cache for header re-write IDs
keyed by the binary chain of modify header actions.
The caching is supported for both eswitch and NIC use-cases, where the
actual conversion of the code to use caching comes in next patches, one
per use-case.
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/eswitch.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h index b746f62c8c79..834a33050969 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h @@ -207,6 +207,7 @@ struct mlx5_esw_offload { struct mlx5_flow_group *vport_rx_group; struct mlx5_eswitch_rep *vport_reps; DECLARE_HASHTABLE(encap_tbl, 8); + DECLARE_HASHTABLE(mod_hdr_tbl, 8); u8 inline_mode; u64 num_flows; u8 encap; |