diff options
author | 2021-08-03 16:19:52 -0700 | |
---|---|---|
committer | 2021-08-05 13:49:24 -0700 | |
commit | 5d5defd6b8915d031af5b71bf463991d14644f89 (patch) | |
tree | 4b5cad943f567e81d62d2df1883fd148959fa71a /drivers/net/ethernet/mellanox/mlx5/core/en/mapping.h | |
parent | net/mlx5: E-Switch, set flow source for send to uplink rule (diff) | |
download | linux-dev-5d5defd6b8915d031af5b71bf463991d14644f89.tar.xz linux-dev-5d5defd6b8915d031af5b71bf463991d14644f89.zip |
net/mlx5e: Add an option to create a shared mapping
The shared mapping is identified by an id and type.
Signed-off-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en/mapping.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/mapping.h b/drivers/net/ethernet/mellanox/mlx5/core/en/mapping.h index 285525cc5470..4e2119f0f4c1 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en/mapping.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/mapping.h @@ -24,4 +24,9 @@ struct mapping_ctx *mapping_create(size_t data_size, u32 max_id, bool delayed_removal); void mapping_destroy(struct mapping_ctx *ctx); +/* adds mapping with an id or get an existing mapping with the same id + */ +struct mapping_ctx * +mapping_create_for_id(u64 id, u8 type, size_t data_size, u32 max_id, bool delayed_removal); + #endif /* __MLX5_MAPPING_H__ */ |