Skip to content

mlx5-next updates (ECPF & 50Gbps per lane)

Saeed Mahameed linux-rdma netdev 1 version Applied

Status from this message: Applied to mlx5-next,

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/15net/mlx5: Use void pointer as the type in address_of macroinclude/linux/mlx5/device.h+1 -10 replies
2/15net/mlx5: Use consistent vport num argument typedrivers/net/ethernet/mellanox/mlx5/core/eswitch.c drivers/net/ethernet/mellanox/mlx5/core/vport.c include/linux/mlx5/vport.h+24 -240 replies
3/15IB/mlx5: Use unified register/load function for uplink and VF vportsdrivers/infiniband/hw/mlx5/ib_rep.c drivers/infiniband/hw/mlx5/ib_rep.h drivers/infiniband/hw/mlx5/main.c+37 -720 replies
4/15net/mlx5: Introduce Mellanox SmartNIC and modify page management logicdrivers/net/ethernet/mellanox/mlx5/core/Makefile drivers/net/ethernet/mellanox/mlx5/core/ecpf.c drivers/net/ethernet/mellanox/mlx5/core/ecpf.h +7 more+94 -250 replies
5/15net/mlx5: Update enable HCA dependencydrivers/net/ethernet/mellanox/mlx5/core/ecpf.c drivers/net/ethernet/mellanox/mlx5/core/ecpf.h drivers/net/ethernet/mellanox/mlx5/core/main.c +1 more+98 -20 replies
6/15net/mlx5: Add query host params commanddrivers/net/ethernet/mellanox/mlx5/core/cmd.c drivers/net/ethernet/mellanox/mlx5/core/ecpf.c drivers/net/ethernet/mellanox/mlx5/core/ecpf.h +1 more+74 -00 replies
7/15net/mlx5: Add host params change eventdrivers/net/ethernet/mellanox/mlx5/core/eq.c drivers/net/ethernet/mellanox/mlx5/core/events.c include/linux/mlx5/device.h +1 more+12 -00 replies
8/15net/mlx5: Provide an alternative VF upper bound for ECPFinclude/linux/mlx5/driver.h+10 -10 replies
9/15net/mlx5: E-Switch, Normalize the name of uplink vport numberdrivers/infiniband/hw/mlx5/ib_rep.c drivers/net/ethernet/mellanox/mlx5/core/en_rep.c drivers/net/ethernet/mellanox/mlx5/core/en_tc.c +4 more+30 -300 replies
10/15net/mlx5: Relocate vport macros to the vport header filedrivers/net/ethernet/mellanox/mlx5/core/eq.c drivers/net/ethernet/mellanox/mlx5/core/fs_core.c include/linux/mlx5/driver.h +1 more+9 -60 replies
11/15net/mlx5: E-Switch, Avoid magic numbers when initializing offloads modedrivers/net/ethernet/mellanox/mlx5/core/eswitch.c drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c include/linux/mlx5/vport.h+19 -120 replies
12/15net/mlx5: Refactor queries to speed fields in Port Type and Speed registerdrivers/infiniband/hw/mlx5/main.c drivers/net/ethernet/mellanox/mlx5/core/en/port.c drivers/net/ethernet/mellanox/mlx5/core/en/port.h +3 more+91 -1420 replies
13/15net/mlx5: Add new fields to Port Type and Speed registerinclude/linux/mlx5/mlx5_ifc.h+8 -40 replies
14/15net/mlx5: Add support to ext_* fields introduced in Port Type and Speed registerdrivers/infiniband/hw/mlx5/main.c drivers/net/ethernet/mellanox/mlx5/core/en/port.c drivers/net/ethernet/mellanox/mlx5/core/en/port.h +2 more+94 -300 replies
15/15IB/mlx5: Add support for 50Gbps per lane link modesdrivers/infiniband/hw/mlx5/main.c+61 -50 replies

Reviews trailers per patch

13 of 15 patches have a Reviewed-by or Acked-by.

PatchOr GerlitzDaniel JurgensMark BlochEran Ben ElishaLeon Romanovsky
1/15R-b R-b
2/15R-b
3/15R-b
4/15
5/15
6/15R-b
7/15R-b
8/15R-b
9/15R-b
10/15R-b
11/15R-b
12/15R-b
13/15R-b
14/15R-b
15/15R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [PATCH mlx5-next 00/15] mlx5-next updates (ECPF & 50Gbps per lane)

Hi All,

This series from Bodong and Aya provides two low level updates to mlx5 core driver that are required for both mlx5e netdev and mlx5_ib drivers.

Quoted 1 line

From Bodong Wang:

1) Introduction of ECPF (Embedded CPU Physical Function), and low level bits for mlx5 SmartNic capabilities support.
2) Vport enumeration refactoring that affect mlx5_ib and mlx5_core

Quoted 1 line

From Aya Levin,

3) Add support for 50Gbps per lane link modes in the Port Type and Speed register (PTYS)
4) Refactor low level query functions for PTYS register
5) Add support for 50Gbps per lane link modes to mlx5_ib

Thanks,
Saeed.

---

Aya Levin (4):
net/mlx5: Refactor queries to speed fields in Port Type and Speed
register
net/mlx5: Add new fields to Port Type and Speed register net/mlx5: Add support to ext_* fields introduced in Port Type and
Speed register
IB/mlx5: Add support for 50Gbps per lane link modes

Bodong Wang (11):
net/mlx5: Use void pointer as the type in address_of macro net/mlx5: Use consistent vport num argument type
IB/mlx5: Use unified register/load function for uplink and VF vports net/mlx5: Introduce Mellanox SmartNIC and modify page management logic net/mlx5: Update enable HCA dependency
net/mlx5: Add query host params command
net/mlx5: Add host params change event
net/mlx5: Provide an alternative VF upper bound for ECPF net/mlx5: E-Switch, Normalize the name of uplink vport number net/mlx5: Relocate vport macros to the vport header file net/mlx5: E-Switch, Avoid magic numbers when initializing offloads
mode

 drivers/infiniband/hw/mlx5/ib_rep.c           |  73 +++------
 drivers/infiniband/hw/mlx5/ib_rep.h           |  10 +-
 drivers/infiniband/hw/mlx5/main.c             |  95 +++++++++---
 .../net/ethernet/mellanox/mlx5/core/Makefile  |   2 +-
 drivers/net/ethernet/mellanox/mlx5/core/cmd.c |   2 +
 .../net/ethernet/mellanox/mlx5/core/ecpf.c    | 112 ++++++++++++++
 .../net/ethernet/mellanox/mlx5/core/ecpf.h    |  33 ++++
 .../net/ethernet/mellanox/mlx5/core/en/port.c | 142 +++++++++++++++---
 .../net/ethernet/mellanox/mlx5/core/en/port.h |  16 +-
 .../ethernet/mellanox/mlx5/core/en_ethtool.c  |  28 ++--
 .../net/ethernet/mellanox/mlx5/core/en_rep.c  |  22 +--
 .../net/ethernet/mellanox/mlx5/core/en_tc.c   |   6 +-
 drivers/net/ethernet/mellanox/mlx5/core/eq.c  |   4 +
 .../net/ethernet/mellanox/mlx5/core/eswitch.c |  42 +++---
 .../net/ethernet/mellanox/mlx5/core/eswitch.h |   2 -
 .../mellanox/mlx5/core/eswitch_offloads.c     |  39 ++---
 .../net/ethernet/mellanox/mlx5/core/events.c  |   2 +
 .../net/ethernet/mellanox/mlx5/core/fs_core.c |   1 +
 .../net/ethernet/mellanox/mlx5/core/main.c    |  16 ++
 .../ethernet/mellanox/mlx5/core/mlx5_core.h   |   2 +-
 .../ethernet/mellanox/mlx5/core/pagealloc.c   |  54 +++++--
 .../net/ethernet/mellanox/mlx5/core/port.c    | 106 -------------
 .../net/ethernet/mellanox/mlx5/core/sriov.c   |   2 +-
 .../net/ethernet/mellanox/mlx5/core/vport.c   |   8 +-
 include/linux/mlx5/device.h                   |   6 +-
 include/linux/mlx5/driver.h                   |  27 +++-
 include/linux/mlx5/mlx5_ifc.h                 |  71 +++++++--
 include/linux/mlx5/port.h                     |  30 ++--
 include/linux/mlx5/vport.h                    |  21 ++-
 29 files changed, 641 insertions(+), 333 deletions(-)
 create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/ecpf.c
 create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/ecpf.h
Signature · 1 line
2.20.1