Skip to content

net/mlx5e: Align setdcbx with DCBX capability flags

Tariq Toukan linux-rdma lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net/mlx5e: Select DCBX HOST/AUTO from capability flags in setdcbxdrivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c+14 -341 reply
2/2net/mlx5e: Add DCB_CAP_DCBX_LLD_MANAGED support in setdcbxdrivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c+0 -30 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDragos TatuleaCarolina Jubran
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/2] net/mlx5e: Align setdcbx with DCBX capability flags

Hi,

This series by Alexei aligns the mlx5e DCBX mode handling in the setdcbx DCB callback with the DCBX capability flags.

Today mlx5e_dcbnl_setdcbx() applies two different policies: a request of mode 0 switches the firmware to AUTO, while any other request is accepted only if it carries DCB_CAP_DCBX_HOST. Requests with DCB_CAP_DCBX_LLD_MANAGED are rejected outright, even though that flag describes exactly the case where DCBX negotiation is done by the firmware/LLD agent rather than by the host.

Patch 1 switches the firmware between HOST and AUTO modes based solely on the DCB_CAP_DCBX_HOST bit, which folds the two code paths into one and removes the dedicated switch-to-host helper. When moving to firmware-controlled mode, CEE, IEEE and LLD_MANAGED are reported together due to a firmware limitation.

Patch 2 drops the rejection of DCB_CAP_DCBX_LLD_MANAGED, so that requesting it switches to firmware-controlled DCBX mode.

Regards,
Tariq

Alexei Lazar (2):
net/mlx5e: Select DCBX HOST/AUTO from capability flags in setdcbx net/mlx5e: Add DCB_CAP_DCBX_LLD_MANAGED support in setdcbx

 .../ethernet/mellanox/mlx5/core/en_dcbnl.c    | 51 +++++--------------
 1 file changed, 14 insertions(+), 37 deletions(-)

base-commit: d8674294aefef02266c4d47ad10131f1bffbe534

Signature · 1 line
2.44.0