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/en.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/en.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en.h b/drivers/net/ethernet/mellanox/mlx5/core/en.h index 2fd044b23875..f4b95dbd1c7f 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en.h @@ -623,6 +623,8 @@ struct mlx5e_tc_table { struct rhashtable_params ht_params; struct rhashtable ht; + + DECLARE_HASHTABLE(mod_hdr_tbl, 8); }; struct mlx5e_vlan_table { |