Skip to content

Commit fb86f12

Browse files
alexveskerSaeed Mahameed
authored andcommitted
net/mlx5: DR, Add CONFIG_MLX5_SW_STEERING for software steering support
Add new mlx5 Kconfig flag to allow selecting software steering support and compile all the steering files only if the flag is selected. Signed-off-by: Alex Vesker <[email protected]> Signed-off-by: Yevgeny Kliteynik <[email protected]> Reviewed-by: Erez Shitrit <[email protected]> Reviewed-by: Mark Bloch <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 70605ea commit fb86f12

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,10 @@ config MLX5_EN_TLS
154154
Build support for TLS cryptography-offload accelaration in the NIC.
155155
Note: Support for hardware with this capability needs to be selected
156156
for this option to become available.
157+
158+
config MLX5_SW_STEERING
159+
bool "Mellanox Technologies software-managed steering"
160+
depends on MLX5_CORE_EN && MLX5_ESWITCH
161+
default y
162+
help
163+
Build support for software-managed steering in the NIC.

drivers/net/ethernet/mellanox/mlx5/core/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,10 @@ mlx5_core-$(CONFIG_MLX5_EN_IPSEC) += en_accel/ipsec.o en_accel/ipsec_rxtx.o \
6767

6868
mlx5_core-$(CONFIG_MLX5_EN_TLS) += en_accel/tls.o en_accel/tls_rxtx.o en_accel/tls_stats.o \
6969
en_accel/ktls.o en_accel/ktls_tx.o
70+
71+
mlx5_core-$(CONFIG_MLX5_SW_STEERING) += steering/dr_domain.o steering/dr_table.o \
72+
steering/dr_matcher.o steering/dr_rule.o \
73+
steering/dr_icm_pool.o steering/dr_crc32.o \
74+
steering/dr_ste.o steering/dr_send.o \
75+
steering/dr_cmd.o steering/dr_fw.o \
76+
steering/dr_action.o
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
subdir-ccflags-y += -I$(src)/..

0 commit comments

Comments
 (0)