[dpdk-dev] [PATCH 0/5] net/mlx5: use Netlink in VF mode

Nelio Laranjeiro nelio.laranjeiro at 6wind.com
Tue Mar 13 13:50:34 CET 2018


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.  This patches uses the wrapper [1].  

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

This series applies on top of [1][2] and on top of [3]:

[1] https://dpdk.org/ml/archives/dev/2018-March/092621.html
[2] https://dpdk.org/dev/patchwork/patch/36052/
[3] https://dpdk.org/dev/patchwork/patch/35981/

Nelio Laranjeiro (5):
  net/mlx5: add VF information in configuration
  net/mlx5: retrieve device index from Netlink
  net/mlx5: use Netlink to add/remove MAC addresses
  net/mlx5: use Netlink to enable promisc/allmulti
  net/mlx5: add a parameter for Netlink support in VF

 doc/guides/nics/mlx5.rst        |  13 +
 drivers/net/mlx5/Makefile       |   3 +-
 drivers/net/mlx5/mlx5.c         |  24 ++
 drivers/net/mlx5/mlx5.h         |  10 +
 drivers/net/mlx5/mlx5_mac.c     |  25 +-
 drivers/net/mlx5/mlx5_trigger.c |  27 +-
 drivers/net/mlx5/mlx5_vf.c      | 600 ++++++++++++++++++++++++++++++++++++++++
 7 files changed, 698 insertions(+), 4 deletions(-)
 create mode 100644 drivers/net/mlx5/mlx5_vf.c

-- 
2.11.0



More information about the dev mailing list