Skip to content

Commit 9222f0b

Browse files
Muhammad SammarSaeed Mahameed
authored andcommitted
net/mlx5: DR, Add support for dumping steering info
Extend mlx5 debugfs support to present Software Steering resources: dr_domain including it's tables, matchers and rules. The interface is read-only. While dump is being presented, new steering rules cannot be inserted/deleted. The steering information is dumped in the CSV form with the following format: <object_type>,<object_ID>, <object_info>,...,<object_info> This data can be read at the following path: /sys/kernel/debug/mlx5/<BDF>/steering/fdb/<domain_handle> Example: # cat /sys/kernel/debug/mlx5/0000:82:00.0/steering/fdb/dmn_000018644 3100,0x55caa4621c50,0xee802,4,65533 3101,0x55caa4621c50,0xe0100008 Changes in V2: - Reduce temp hex buffer size and avoid unnecessary memset - Use bin2hex() instead of DIY loop - Don't check debugfs functions return values Signed-off-by: Muhammad Sammar <muhammads@nvidia.com> Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
1 parent 7766c9b commit 9222f0b

File tree

8 files changed

+688
-8
lines changed

8 files changed

+688
-8
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ mlx5_core-$(CONFIG_MLX5_SW_STEERING) += steering/dr_domain.o steering/dr_table.o
104104
steering/dr_ste.o steering/dr_send.o \
105105
steering/dr_ste_v0.o steering/dr_ste_v1.o \
106106
steering/dr_cmd.o steering/dr_fw.o \
107-
steering/dr_action.o steering/fs_dr.o
107+
steering/dr_action.o steering/fs_dr.o \
108+
steering/dr_dbg.o
108109
#
109110
# SF device
110111
#

0 commit comments

Comments
 (0)