[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211229062502.24111-1-saeed@kernel.org>
Date: Tue, 28 Dec 2021 22:24:46 -0800
From: Saeed Mahameed <saeed@...nel.org>
To: "David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>
Cc: netdev@...r.kernel.org, Saeed Mahameed <saeedm@...dia.com>
Subject: [pull request][net-next 00/16] mlx5 updates 2021-12-28
From: Saeed Mahameed <saeedm@...dia.com>
Hi Dave, Hi Jakub,
Sorry for posting 16 patches this time of year :), but most of the patches
are trivial and basic, the only patch worth mentioning is the addition of
debugfs entry for dumping software steering state, as we are defaulting
to SW steering in this patchset, so we would like to be prepared for any
debug, just in case.
For more information please see tag log below.
Please pull and let me know if there is any problem.
If time and window permit, I am planing for one or two more pure mlx5
net-next PRs, mainly trivial stuff. Just FYI and I hope it's ok with you.
Happy holidays,
Saeed.
The following changes since commit 271d3be1c3b6b0be083a99254a0ecac41789929b:
Merge branch '10GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue (2021-12-28 16:16:57 -0800)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git tags/mlx5-updates-2021-12-28
for you to fetch changes up to c9009d8f4ca73ef8ae33c68e7fcc3dcddc39f81c:
net/mlx5: Set SMFS as a default steering mode if device supports it (2021-12-28 22:17:50 -0800)
----------------------------------------------------------------
mlx5-updates-2021-12-28
mlx5 Software steering, New features and optimizations
This patch series brings various SW steering features, optimizations and
debug-ability focused improvements.
1) Expose debugfs for dumping the SW steering resources
2) Removing unused fields
3) support for matching on new fields
4) steering optimization for RX/TX-only rules
5) Make Software steering the default steering mechanism when
available, applies only to Switchdev mode FDB
>From Yevgeny Kliteynik and Muhammad Sammar:
- Patch 1 fixes an error flow in creating matchers
- Patch 2 fix lower case macro prefix "mlx5_" to "MLX5_"
- Patch 3 removes unused struct member in mlx5dr_matcher
- Patch 4 renames list field in matcher struct to list_node to reflect the
fact that is field is for list node that is stored on another struct's lists
- Patch 5 adds checking for valid Flex parser ID value
- Patch 6 adds the missing reserved fields to dr_match_param and aligns it to
the format that is defined by HW spec
- Patch 7 adds support for dumping SW steering (SMFS) resources using debugfs
in CSV format: domain and its tables, matchers and rules
- Patch 8 adds support for a new destination type - UPLINK
- Patch 9 adds WARN_ON_ONCE on refcount checks in SW steering object destructors
- Patches 10, 11, 12 add misc5 flow table match parameters and add support for
matching on tunnel headers 0 and 1
- Patch 13 adds support for matching on geneve_tlv_option_0_exist field
- Patch 14 implements performance optimization for for empty or RX/TX-only
matchers by splitting RX and TX matchers handling: matcher connection in the
matchers chain is split into two separate lists (RX only and TX only), which
solves a usecase of many RX or TX only rules that create a long chain of
RX/TX-only paths w/o the actual rules
- Patch 15 ignores modify TTL if device doesn't support it instead of
adding and unsupported action
- Patch 16 sets SMFS as a default steering mode
----------------------------------------------------------------
Muhammad Sammar (5):
net/mlx5: DR, Add missing reserved fields to dr_match_param
net/mlx5: DR, Add support for dumping steering info
net/mlx5: Add misc5 flow table match parameters
net/mlx5: DR, Add misc5 to match_param structs
net/mlx5: DR, Support matching on tunnel headers 0 and 1
Yevgeny Kliteynik (11):
net/mlx5: DR, Fix error flow in creating matcher
net/mlx5: DR, Fix lower case macro prefix "mlx5_" to "MLX5_"
net/mlx5: DR, Remove unused struct member in matcher
net/mlx5: DR, Rename list field in matcher struct to list_node
net/mlx5: DR, Add check for flex parser ID value
net/mlx5: DR, Add support for UPLINK destination type
net/mlx5: DR, Warn on failure to destroy objects due to refcount
net/mlx5: DR, Add support for matching on geneve_tlv_option_0_exist field
net/mlx5: DR, Improve steering for empty or RX/TX-only matchers
net/mlx5: DR, Ignore modify TTL if device doesn't support it
net/mlx5: Set SMFS as a default steering mode if device supports it
drivers/net/ethernet/mellanox/mlx5/core/Makefile | 3 +-
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c | 3 +-
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 8 +-
drivers/net/ethernet/mellanox/mlx5/core/fs_core.h | 2 +-
.../mellanox/mlx5/core/steering/dr_action.c | 23 +-
.../ethernet/mellanox/mlx5/core/steering/dr_cmd.c | 29 +-
.../ethernet/mellanox/mlx5/core/steering/dr_dbg.c | 668 +++++++++++++++++++++
.../ethernet/mellanox/mlx5/core/steering/dr_dbg.h | 15 +
.../mellanox/mlx5/core/steering/dr_domain.c | 5 +-
.../mellanox/mlx5/core/steering/dr_matcher.c | 250 ++++----
.../ethernet/mellanox/mlx5/core/steering/dr_rule.c | 47 +-
.../ethernet/mellanox/mlx5/core/steering/dr_ste.c | 61 ++
.../ethernet/mellanox/mlx5/core/steering/dr_ste.h | 2 +
.../mellanox/mlx5/core/steering/dr_ste_v0.c | 25 +-
.../mellanox/mlx5/core/steering/dr_ste_v1.c | 52 +-
.../mellanox/mlx5/core/steering/dr_table.c | 94 +--
.../mellanox/mlx5/core/steering/dr_types.h | 262 +++++---
.../ethernet/mellanox/mlx5/core/steering/fs_dr.c | 18 +-
.../mellanox/mlx5/core/steering/mlx5_ifc_dr.h | 16 +
include/linux/mlx5/device.h | 1 +
include/linux/mlx5/mlx5_ifc.h | 35 +-
include/uapi/rdma/mlx5_user_ioctl_cmds.h | 2 +-
22 files changed, 1342 insertions(+), 279 deletions(-)
create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_dbg.c
create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_dbg.h
Powered by blists - more mailing lists