mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
net/mlx5: DR, Add STE tx/rx actions per-device API
Extend the STE context struct with per-device tx/rx actions. Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com> Reviewed-by: Saeed Mahameed <saeedm@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
parent
6b93b400aa
commit
8f9a822e59
1 changed files with 12 additions and 0 deletions
|
@ -108,6 +108,18 @@ struct mlx5dr_ste_ctx {
|
|||
void (*set_hit_addr)(u8 *hw_ste_p, u64 icm_addr, u32 ht_size);
|
||||
void (*set_byte_mask)(u8 *hw_ste_p, u16 byte_mask);
|
||||
u16 (*get_byte_mask)(u8 *hw_ste_p);
|
||||
|
||||
/* Actions */
|
||||
void (*set_actions_rx)(struct mlx5dr_domain *dmn,
|
||||
u8 *action_type_set,
|
||||
u8 *hw_ste_arr,
|
||||
struct mlx5dr_ste_actions_attr *attr,
|
||||
u32 *added_stes);
|
||||
void (*set_actions_tx)(struct mlx5dr_domain *dmn,
|
||||
u8 *action_type_set,
|
||||
u8 *hw_ste_arr,
|
||||
struct mlx5dr_ste_actions_attr *attr,
|
||||
u32 *added_stes);
|
||||
};
|
||||
|
||||
extern struct mlx5dr_ste_ctx ste_ctx_v0;
|
||||
|
|
Loading…
Reference in a new issue