Skip to content

net/mlx5: use Netlink in VF mode

Nelio Laranjeiro dpdk-dev 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 1 replyIn review
  2. v33 patches 8 repliesSuperseded
  3. v23 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches5 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net/mlx5: use Netlink to add/remove MAC addressesdoc/guides/nics/mlx5.rst drivers/net/mlx5/Makefile drivers/net/mlx5/mlx5.c +4 more+626 -30 replies
2/3net/mlx5: use Netlink to enable promisc / allmulti modedrivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_nl.c drivers/net/mlx5/mlx5_rxmode.c+104 -00 replies
3/3net/mlx5: add a parameter for Netlink support in VFdoc/guides/nics/mlx5.rst drivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h+18 -10 replies

Reviews trailers per patch

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

PatchAdrien Mazarguil
1/3A-b
2/3A-b
3/3A-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 [PATCH v4 0/3] net/mlx5: use Netlink in VF mode

When MLX5 behaves in VF mode and the hypervisor have **trusted** this VF, to be able to receive specific traffic some requests must be done to configure the NIC. There is no API currently available to do it though Verbs, but there is in Linux side using Netlink.

The specific cases are:
- Enable/disable promiscuous mode.
- Enable/disable allmulti mode.
- Add/remove mac addresses.

Changes in v4:

Track MAC addresses added by the PMD and not present in the bridge table to remove them when leaving.

Changes in v3:

Add missing room to add the MAC address in the Netlink message.

Changes in v2:

Embed Netlink socket communication inside the PMD.

Nelio Laranjeiro (3):
net/mlx5: use Netlink to add/remove MAC addresses net/mlx5: use Netlink to enable promisc / allmulti mode net/mlx5: add a parameter for Netlink support in VF

 doc/guides/nics/mlx5.rst       |  18 +
 drivers/net/mlx5/Makefile      |   1 +
 drivers/net/mlx5/mlx5.c        |  30 ++
 drivers/net/mlx5/mlx5.h        |  19 +
 drivers/net/mlx5/mlx5_ethdev.c |  27 ++
 drivers/net/mlx5/mlx5_mac.c    |  20 +-
 drivers/net/mlx5/mlx5_nl.c     | 627 +++++++++++++++++++++++++++++++++
 drivers/net/mlx5/mlx5_rxmode.c |   8 +
 8 files changed, 747 insertions(+), 3 deletions(-)
 create mode 100644 drivers/net/mlx5/mlx5_nl.c
Signature · 1 line
2.17.0