Skip to content

Commit 479f074

Browse files
ogerlitzSaeed Mahameed
authored andcommitted
net/mlx5e: Enlarge the NIC TC offload steering prio to support two levels
This will allow to be able and set TC rule whose steering dest is RSS TTC steering table. Signed-off-by: Or Gerlitz <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 1ae1df3 commit 479f074

File tree

1 file changed

+4
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@
8989
/* One more level for tc */
9090
#define KERNEL_MIN_LEVEL (KERNEL_NIC_PRIO_NUM_LEVELS + 1)
9191

92+
#define KERNEL_NIC_TC_NUM_PRIOS 1
93+
#define KERNEL_NIC_TC_NUM_LEVELS 2
94+
9295
#define ANCHOR_NUM_LEVELS 1
9396
#define ANCHOR_NUM_PRIOS 1
9497
#define ANCHOR_MIN_LEVEL (BY_PASS_MIN_LEVEL + 1)
@@ -134,7 +137,7 @@ static struct init_tree_node {
134137
ADD_NS(ADD_MULTIPLE_PRIO(ETHTOOL_NUM_PRIOS,
135138
ETHTOOL_PRIO_NUM_LEVELS))),
136139
ADD_PRIO(0, KERNEL_MIN_LEVEL, 0, {},
137-
ADD_NS(ADD_MULTIPLE_PRIO(1, 1),
140+
ADD_NS(ADD_MULTIPLE_PRIO(KERNEL_NIC_TC_NUM_PRIOS, KERNEL_NIC_TC_NUM_LEVELS),
138141
ADD_MULTIPLE_PRIO(KERNEL_NIC_NUM_PRIOS,
139142
KERNEL_NIC_PRIO_NUM_LEVELS))),
140143
ADD_PRIO(0, BY_PASS_MIN_LEVEL, 0,

0 commit comments

Comments
 (0)