]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: Set SMFS as a default steering mode if device supports it
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Sun, 28 Nov 2021 19:48:47 +0000 (21:48 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 31 Dec 2021 08:17:44 +0000 (00:17 -0800)
commitaa36c94853b2bcc4953e065c462deb1ade7f55be
treec769911edf0d2092f3f0f779de548bb9f05d3524
parent4ff725e1d4adfd313bc9767523fc8d6e90d50f9c
net/mlx5: Set SMFS as a default steering mode if device supports it

Set SMFS (SW-managed flow steering) as a default steering mode
instead of DMFS (device-managed flow steering)

In SMFS, the driver writes the STEs (Steering Table Entries) directly
to the device's ICM, which allows for a higher rule insertion rate
than through using FW command interface, as it is done in DMFS.

SMFS/DMFS steering modes can be configured through devlink param
'flow_steering_mode'. The possible values are 'smfs' or 'dmfs'.
The desired 'flow_steering_mode' param value should be set before
enabling switchdev mode.

Example:

  # devlink dev param set pci/0000:05:00.0 name flow_steering_mode smfs
  # devlink dev eswitch set pci/0000:05:00.0 mode switchdev

Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c