diff options
author | 2020-12-09 13:40:50 +0200 | |
---|---|---|
committer | 2021-12-31 00:17:13 -0800 | |
commit | 9222f0b27da22579bea02cd2f1bc87beced2ef8d (patch) | |
tree | d12f7b7fe2cfb53c346b8d70fb8a9080fd49c1da /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | net/mlx5: DR, Add missing reserved fields to dr_match_param (diff) | |
download | wireguard-linux-9222f0b27da22579bea02cd2f1bc87beced2ef8d.tar.xz wireguard-linux-9222f0b27da22579bea02cd2f1bc87beced2ef8d.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions