Skip to content

net/mlx5: support Sub-Function

Xueming Li dpdk-dev 4 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest16 patches 2 repliesApplied
  2. v315 patches 0 repliesSuperseded
  3. v214 patches 16 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v10 of 14 patches0 repliesSuperseded

Changes in v4 from the cover letter

convert crypto pmd using new common driver

[1] SubFunction in kernel:
https://lore.kernel.org/netdev/[email protected]/

[2] Auxiliary bus:
http://patchwork.dpdk.org/project/dpdk/patch/[email protected]/

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/16common/mlx5: rename eth device class namedrivers/common/mlx5/mlx5_common.h drivers/common/mlx5/mlx5_common_pci.c drivers/net/mlx5/mlx5.c+14 -120 replies
2/16common/mlx5: add common device driverdoc/guides/rel_notes/release_21_08.rst drivers/common/mlx5/linux/mlx5_common_os.c drivers/common/mlx5/linux/mlx5_common_os.h +7 more+688 -180 replies
3/16common/mlx5: move description of PCI sysfs functionsdrivers/common/mlx5/linux/mlx5_common_os.c drivers/common/mlx5/mlx5_common.h+26 -220 replies
4/16common/mlx5: support auxiliary busdrivers/common/mlx5/linux/meson.build drivers/common/mlx5/linux/mlx5_common_auxiliary.c drivers/common/mlx5/linux/mlx5_common_verbs.c +5 more+198 -20 replies
5/16common/mlx5: get PCI device address from any busdrivers/common/mlx5/linux/mlx5_common_auxiliary.c drivers/common/mlx5/linux/mlx5_common_os.c drivers/common/mlx5/mlx5_common.c +4 more+66 -80 replies
6/16net/mlx5: remove PCI dependencydrivers/net/mlx5/linux/mlx5_ethdev_os.c drivers/net/mlx5/linux/mlx5_os.c drivers/net/mlx5/mlx5.c +6 more+51 -430 replies
7/16net/mlx5: migrate to bus-agnostic common driverdrivers/net/mlx5/linux/mlx5_os.c drivers/net/mlx5/linux/mlx5_os.h drivers/net/mlx5/mlx5.c +3 more+78 -690 replies
8/16net/mlx5: support SubFunctiondoc/guides/nics/mlx5.rst drivers/net/mlx5/linux/mlx5_ethdev_os.c drivers/net/mlx5/linux/mlx5_os.c +7 more+188 -740 replies
9/16net/mlx5: check max Verbs port numberdrivers/net/mlx5/linux/mlx5_os.c+6 -00 replies
10/16regex/mlx5: migrate to common driverdrivers/regex/mlx5/mlx5_regex.c drivers/regex/mlx5/mlx5_regex.h+18 -320 replies
11/16vdpa/mlx5: define driver name as macrodrivers/vdpa/mlx5/mlx5_vdpa.c+5 -40 replies
12/16vdpa/mlx5: remove PCI specificsdrivers/vdpa/mlx5/mlx5_vdpa.c drivers/vdpa/mlx5/mlx5_vdpa.h+34 -860 replies
13/16vdpa/mlx5: support SubFunctiondoc/guides/vdpadevs/mlx5.rst drivers/vdpa/mlx5/mlx5_vdpa.c+16 -20 replies
14/16compress/mlx5: migrate to common driverdrivers/compress/mlx5/mlx5_compress.c+15 -560 replies
15/16crypto/mlx5: migrate to common driverdrivers/crypto/mlx5/mlx5_crypto.c drivers/crypto/mlx5/mlx5_crypto.h+16 -460 replies
16/16common/mlx5: clean up legacy PCI bus driverdrivers/common/mlx5/linux/mlx5_common_os.h drivers/common/mlx5/mlx5_common.c drivers/common/mlx5/mlx5_common.h +4 more+4 -5300 replies

Reviews trailers per patch

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

PatchViacheslav Ovsiienko
1/16A-b
2/16A-b
3/16A-b
4/16A-b
5/16A-b
6/16A-b
7/16A-b
8/16A-b
9/16A-b
10/16A-b
11/16A-b
12/16A-b
13/16A-b
14/16A-b
15/16
16/16A-b

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

Read the v4 thread

Cover letter [dpdk-dev] [PATCH v4 00/16] net/mlx5: support Sub-Function

Sub-Function [1] is a portion of the PCI device, a SF netdev has its own dedicated queues(txq, rxq). A SF shares PCI level resources with other SFs and/or with its parent PCI function. Auxiliary bus is the fundamental of SF.

This patch set introduces Sub-Function support for mlx5 PMD driver including class net, regex, vdpa and compress.

Version history:
RFC:
initial version
V1:
rebased on latest upstream code
V2:

		init sh->numa_node earlier
		other bug fixes

V3:
split first patch and fix compilation issue
V4:
convert crypto pmd using new common driver

[1] SubFunction in kernel:
https://lore.kernel.org/netdev/[email protected]/

[2] Auxiliary bus:
http://patchwork.dpdk.org/project/dpdk/patch/[email protected]/

Thomas Monjalon (5):
common/mlx5: move description of PCI sysfs functions common/mlx5: get PCI device address from any bus vdpa/mlx5: define driver name as macro vdpa/mlx5: remove PCI specifics
vdpa/mlx5: support SubFunction

Xueming Li (11):
common/mlx5: rename eth device class name
common/mlx5: add common device driver
common/mlx5: support auxiliary bus
net/mlx5: remove PCI dependency
net/mlx5: migrate to bus-agnostic common driver
net/mlx5: support SubFunction
net/mlx5: check max Verbs port number
regex/mlx5: migrate to common driver
compress/mlx5: migrate to common driver
crypto/mlx5: migrate to common driver
common/mlx5: clean up legacy PCI bus driver

 doc/guides/nics/mlx5.rst                      |  54 +-
 doc/guides/rel_notes/release_21_08.rst        |   5 +
 doc/guides/vdpadevs/mlx5.rst                  |  10 +
 drivers/common/mlx5/linux/meson.build         |   3 +
 .../common/mlx5/linux/mlx5_common_auxiliary.c | 192 +++++++
 drivers/common/mlx5/linux/mlx5_common_os.c    |  29 +-
 drivers/common/mlx5/linux/mlx5_common_os.h    |   6 +-
 drivers/common/mlx5/linux/mlx5_common_verbs.c |  24 +-
 drivers/common/mlx5/meson.build               |   2 +-
 drivers/common/mlx5/mlx5_common.c             | 390 ++++++++++++-
 drivers/common/mlx5/mlx5_common.h             | 179 +++++-
 drivers/common/mlx5/mlx5_common_pci.c         | 540 ++++--------------
 drivers/common/mlx5/mlx5_common_pci.h         |  78 ---
 drivers/common/mlx5/mlx5_common_private.h     |  50 ++
 drivers/common/mlx5/mlx5_common_utils.h       |   2 +
 drivers/common/mlx5/version.map               |  12 +-
 drivers/compress/mlx5/mlx5_compress.c         |  71 +--
 drivers/crypto/mlx5/mlx5_crypto.c             |  61 +-
 drivers/crypto/mlx5/mlx5_crypto.h             |   1 -
 drivers/net/mlx5/linux/mlx5_ethdev_os.c       |  14 +-
 drivers/net/mlx5/linux/mlx5_os.c              | 203 +++++--
 drivers/net/mlx5/linux/mlx5_os.h              |   5 +-
 drivers/net/mlx5/mlx5.c                       | 116 ++--
 drivers/net/mlx5/mlx5.h                       |  14 +-
 drivers/net/mlx5/mlx5_ethdev.c                |   2 +-
 drivers/net/mlx5/mlx5_mac.c                   |   2 +-
 drivers/net/mlx5/mlx5_mr.c                    |  48 +-
 drivers/net/mlx5/mlx5_rxmode.c                |   8 +-
 drivers/net/mlx5/mlx5_rxtx.h                  |   9 +-
 drivers/net/mlx5/mlx5_trigger.c               |  14 +-
 drivers/net/mlx5/mlx5_txq.c                   |   3 +-
 drivers/net/mlx5/windows/mlx5_os.c            |  15 +-
 drivers/regex/mlx5/mlx5_regex.c               |  49 +-
 drivers/regex/mlx5/mlx5_regex.h               |   1 -
 drivers/vdpa/mlx5/mlx5_vdpa.c                 | 128 ++---
 drivers/vdpa/mlx5/mlx5_vdpa.h                 |   1 -
 36 files changed, 1380 insertions(+), 961 deletions(-)
 create mode 100644 drivers/common/mlx5/linux/mlx5_common_auxiliary.c
 delete mode 100644 drivers/common/mlx5/mlx5_common_pci.h
 create mode 100644 drivers/common/mlx5/mlx5_common_private.h
Signature · 1 line
2.25.1