Skip to content

Commit 2ec6786

Browse files
mosheshemesh2kuba-moo
authored andcommitted
net/mlx5: fs, add HWS fte API functions
Add create, destroy and update fte API functions for adding, removing and updating flow steering rules in HW Steering mode. Get HWS actions according to required rule, use actions from pool whenever possible. Signed-off-by: Moshe Shemesh <[email protected]> Reviewed-by: Yevgeny Kliteynik <[email protected]> Reviewed-by: Mark Bloch <[email protected]> Signed-off-by: Tariq Toukan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 3fd62e9 commit 2ec6786

File tree

3 files changed

+566
-1
lines changed

3 files changed

+566
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/fs_core.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,10 @@ struct fs_fte_dup {
254254
/* Type of children is mlx5_flow_rule */
255255
struct fs_fte {
256256
struct fs_node node;
257-
struct mlx5_fs_dr_rule fs_dr_rule;
257+
union {
258+
struct mlx5_fs_dr_rule fs_dr_rule;
259+
struct mlx5_fs_hws_rule fs_hws_rule;
260+
};
258261
u32 val[MLX5_ST_SZ_DW_MATCH_PARAM];
259262
struct fs_fte_action act_dests;
260263
struct fs_fte_dup *dup;

0 commit comments

Comments
 (0)