Skip to content

add MLX5 FreeBSD support

Srikanth Kaka dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest41 patches 2 repliesIn review
  2. v119 patches 6 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/41common/mlx5: add glue files for FreeBSDdrivers/common/mlx5/freebsd/mlx5_glue.c drivers/common/mlx5/freebsd/mlx5_glue.h+1879 -00 replies
2/41common/mlx5: add memory APIsdrivers/common/mlx5/freebsd/mlx5_common_os.h+46 -00 replies
3/41common/mlx5: add FreeBSD getter functionsdrivers/common/mlx5/freebsd/mlx5_common_os.h+244 -00 replies
4/41common/mlx5: add mlx5_glue_constructordrivers/common/mlx5/freebsd/mlx5_common_os.c+60 -00 replies
5/41common/mlx5: add meson support for FreeBSDdrivers/common/mlx5/freebsd/meson.build drivers/common/mlx5/meson.build+156 -30 replies
6/41net/mlx5: implement device attribute getterdrivers/net/mlx5/freebsd/mlx5_os.c+87 -00 replies
7/41common/mlx5: retrieve the device index and namedrivers/common/mlx5/freebsd/mlx5_common_os.c drivers/common/mlx5/freebsd/mlx5_common_os.h+50 -00 replies
8/41common/mlx5: derive PCI addr from device pathdrivers/common/mlx5/freebsd/mlx5_common_os.c+48 -00 replies
9/41net/mlx5: get the FreeBSD interface namedrivers/net/mlx5/freebsd/mlx5_ethdev_os.c+33 -00 replies
10/41net/mlx5: socket for inter-process communicationdrivers/net/mlx5/freebsd/mlx5_os.h drivers/net/mlx5/freebsd/mlx5_socket.c+271 -00 replies
11/41common/mlx5: add mr reg/dereg APIdrivers/common/mlx5/freebsd/meson.build drivers/common/mlx5/freebsd/mlx5_common_verbs.c+74 -00 replies
12/41net/mlx5: add helpers for MR & HW operationsdrivers/net/mlx5/freebsd/mlx5_verbs.c drivers/net/mlx5/freebsd/mlx5_verbs.h+1226 -00 replies
13/41net/mlx5: define MR callbacksdrivers/net/mlx5/freebsd/mlx5_os.c+17 -00 replies
14/41net/mlx5: add open IB device routinesdrivers/net/mlx5/freebsd/mlx5_os.c+155 -00 replies
15/41common/mlx5: add PF_INET socket interfacedrivers/common/mlx5/freebsd/meson.build drivers/common/mlx5/freebsd/mlx5_inet.c drivers/common/mlx5/freebsd/mlx5_inet.h+358 -00 replies
16/41common/mlx5: add VLAN vmwa structuresdrivers/common/mlx5/freebsd/mlx5_inet.h+18 -00 replies
17/41net/mlx5: add vlan vmwa stubdrivers/net/mlx5/freebsd/mlx5_vlan_os.c+84 -00 replies
18/41net/mlx5: add get MACdrivers/net/mlx5/freebsd/mlx5_ethdev_os.c+88 -00 replies
19/41net/mlx5: add get MTUdrivers/net/mlx5/freebsd/mlx5_ethdev_os.c+23 -00 replies
20/41net/mlx5: add OS MAC routinesdrivers/net/mlx5/freebsd/mlx5_os.c+105 -00 replies
21/41net/mlx5: add set MTU routinedrivers/net/mlx5/freebsd/mlx5_ethdev_os.c+19 -00 replies
22/41net/mlx5: add link state callbacksdrivers/net/mlx5/freebsd/mlx5_ethdev_os.c+56 -00 replies
23/41net/mlx5: add link update callbackdrivers/net/mlx5/freebsd/mlx5_ethdev_os.c+175 -00 replies
24/41net/mlx5: read device clockdrivers/net/mlx5/freebsd/mlx5_ethdev_os.c+31 -00 replies
25/41net/mlx5: handle async device eventsdrivers/net/mlx5/freebsd/mlx5_ethdev_os.c drivers/net/mlx5/freebsd/mlx5_os.c+301 -00 replies
26/41net/mlx5: add callback to check dev is removeddrivers/net/mlx5/freebsd/mlx5_ethdev_os.c+20 -00 replies
27/41net/mlx5: add flow control callbacksdrivers/net/mlx5/freebsd/mlx5_ethdev_os.c+46 -00 replies
28/41net/mlx5: add module callbacksdrivers/net/mlx5/freebsd/mlx5_ethdev_os.c+39 -00 replies
29/41net/mlx5: added stats supportdrivers/net/mlx5/freebsd/mlx5_ethdev_os.c+217 -00 replies
30/41net/mlx5: add stubs for bondingdrivers/net/mlx5/freebsd/mlx5_ethdev_os.c+42 -00 replies
31/41net/mlx5: add stub to read hw countersdrivers/net/mlx5/freebsd/mlx5_os.c+24 -00 replies
32/41net/mlx5: add multiprocess supportdrivers/net/mlx5/freebsd/mlx5_mp_os.c+305 -00 replies
33/41net/mlx5: add initialization routinesdrivers/net/mlx5/freebsd/mlx5_os.c+139 -00 replies
34/41net/mlx5: add flow workspace APIsdrivers/net/mlx5/freebsd/mlx5_flow_os.c drivers/net/mlx5/freebsd/mlx5_flow_os.h+522 -00 replies
35/41net/mlx5: add pci probe and dev spawn supportdrivers/net/mlx5/freebsd/mlx5_os.c+1835 -10 replies
36/41net/mlx5: set file descriptor as non-blockingdrivers/net/mlx5/freebsd/mlx5_os.c+21 -00 replies
37/41net/mlx5: add routine to extract pdndrivers/net/mlx5/freebsd/mlx5_os.c+35 -00 replies
38/41net/mlx5: set promisc and allmulti modesdrivers/net/mlx5/freebsd/mlx5_os.c+52 -00 replies
39/41common/mlx5: add stub for mlx5_translate_port_namedrivers/common/mlx5/freebsd/mlx5_common_os.c+20 -00 replies
40/41net/mlx5: add meson support for FreeBSDdrivers/net/mlx5/freebsd/meson.build drivers/net/mlx5/meson.build+24 -40 replies
41/41doc/mlx5: update docs with FreeBSD informationdoc/guides/nics/mlx5.rst+30 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [dpdk-dev] [PATCH v2 00/41] add MLX5 FreeBSD support

This patch series introduces FreeBSD OS support for MLX5 PMD

Currently there is an ongoing review of FreeBSD OFED drivers and RDMA-core libraries. Their status can be tracked at
https://reviews.freebsd.org/p/vag.singh_oneconvergence.com

Only MLX5 SRIOV interface is supported along with the following features:

- Hypervisors: KVM, ESXi and Azure/HyperV
- Multiple Tx and Rx queues
- Support for scattered Tx and Rx frames
- RSS
- VLAN filtering, stripping and insertion
- RX CRC stripping configuration
- Promiscuous and Multicast mode
- Statistics query including Basic, Extended, and per queue.
- Configurable MTU and MAC
- Jumbo frame support
- Trust mode support
- Vxlan
- QoS
- Flow steering

Tested on :
MT27710 Family [ConnectX-4 Lx]
MT27710 Family [ConnectX-4 Lx Virtual Function] (Azure) MT27700 Family [ConnectX-4]
MT27800 Family [ConnectX-5]
MT2894 Family [ConnectX-6 Lx]
MT28908 Family [ConnectX-6]
MT2892 Family [ConnectX-6 Dx]

v1 : Initial submission
v2 : Addressed community comments

Srikanth Kaka (41):
common/mlx5: add glue files for FreeBSD common/mlx5: add memory APIs
common/mlx5: add FreeBSD getter functions common/mlx5: add mlx5_glue_constructor common/mlx5: add meson support for FreeBSD net/mlx5: implement device attribute getter common/mlx5: retrieve the device index and name common/mlx5: derive PCI addr from device path net/mlx5: get the FreeBSD interface name net/mlx5: socket for inter-process communication common/mlx5: add mr reg/dereg API net/mlx5: add helpers for MR & HW operations net/mlx5: define MR callbacks
net/mlx5: add open IB device routines common/mlx5: add PF_INET socket interface common/mlx5: add VLAN vmwa structures net/mlx5: add vlan vmwa stub
net/mlx5: add get MAC
net/mlx5: add get MTU
net/mlx5: add OS MAC routines
net/mlx5: add set MTU routine
net/mlx5: add link state callbacks net/mlx5: add link update callback net/mlx5: read device clock
net/mlx5: handle async device events net/mlx5: add callback to check dev is removed net/mlx5: add flow control callbacks net/mlx5: add module callbacks
net/mlx5: added stats support
net/mlx5: add stubs for bonding
net/mlx5: add stub to read hw counters net/mlx5: add multiprocess support net/mlx5: add initialization routines net/mlx5: add flow workspace APIs net/mlx5: add pci probe and dev spawn support net/mlx5: set file descriptor as non-blocking net/mlx5: add routine to extract pdn net/mlx5: set promisc and allmulti modes common/mlx5: add stub for mlx5_translate_port_name net/mlx5: add meson support for FreeBSD doc/mlx5: update docs with FreeBSD information

 doc/guides/nics/mlx5.rst                      |   30 +
 drivers/common/mlx5/freebsd/meson.build       |  149 +
 drivers/common/mlx5/freebsd/mlx5_common_os.c  |  172 ++
 drivers/common/mlx5/freebsd/mlx5_common_os.h  |  296 ++
 .../common/mlx5/freebsd/mlx5_common_verbs.c   |   73 +
 drivers/common/mlx5/freebsd/mlx5_glue.c       | 1505 ++++++++++
 drivers/common/mlx5/freebsd/mlx5_glue.h       |  374 +++
 drivers/common/mlx5/freebsd/mlx5_inet.c       |  308 ++
 drivers/common/mlx5/freebsd/mlx5_inet.h       |   67 +
 drivers/common/mlx5/meson.build               |   12 +-
 drivers/net/mlx5/freebsd/meson.build          |   14 +
 drivers/net/mlx5/freebsd/mlx5_ethdev_os.c     | 1005 +++++++
 drivers/net/mlx5/freebsd/mlx5_flow_os.c       |   38 +
 drivers/net/mlx5/freebsd/mlx5_flow_os.h       |  484 ++++
 drivers/net/mlx5/freebsd/mlx5_mp_os.c         |  305 ++
 drivers/net/mlx5/freebsd/mlx5_os.c            | 2554 +++++++++++++++++
 drivers/net/mlx5/freebsd/mlx5_os.h            |   22 +
 drivers/net/mlx5/freebsd/mlx5_socket.c        |  249 ++
 drivers/net/mlx5/freebsd/mlx5_verbs.c         | 1208 ++++++++
 drivers/net/mlx5/freebsd/mlx5_verbs.h         |   18 +
 drivers/net/mlx5/freebsd/mlx5_vlan_os.c       |   84 +
 drivers/net/mlx5/meson.build                  |   14 +-
 22 files changed, 8974 insertions(+), 7 deletions(-)
 create mode 100644 drivers/common/mlx5/freebsd/meson.build
 create mode 100644 drivers/common/mlx5/freebsd/mlx5_common_os.c
 create mode 100644 drivers/common/mlx5/freebsd/mlx5_common_os.h
 create mode 100644 drivers/common/mlx5/freebsd/mlx5_common_verbs.c
 create mode 100644 drivers/common/mlx5/freebsd/mlx5_glue.c
 create mode 100644 drivers/common/mlx5/freebsd/mlx5_glue.h
 create mode 100644 drivers/common/mlx5/freebsd/mlx5_inet.c
 create mode 100644 drivers/common/mlx5/freebsd/mlx5_inet.h
 create mode 100644 drivers/net/mlx5/freebsd/meson.build
 create mode 100644 drivers/net/mlx5/freebsd/mlx5_ethdev_os.c
 create mode 100644 drivers/net/mlx5/freebsd/mlx5_flow_os.c
 create mode 100644 drivers/net/mlx5/freebsd/mlx5_flow_os.h
 create mode 100644 drivers/net/mlx5/freebsd/mlx5_mp_os.c
 create mode 100644 drivers/net/mlx5/freebsd/mlx5_os.c
 create mode 100644 drivers/net/mlx5/freebsd/mlx5_os.h
 create mode 100644 drivers/net/mlx5/freebsd/mlx5_socket.c
 create mode 100644 drivers/net/mlx5/freebsd/mlx5_verbs.c
 create mode 100644 drivers/net/mlx5/freebsd/mlx5_verbs.h
 create mode 100644 drivers/net/mlx5/freebsd/mlx5_vlan_os.c
Signature · 1 line
2.30.2