From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nelio Laranjeiro Subject: [PATCH v3 0/3] net/mlx5: use Netlink in VF mode Date: Wed, 21 Mar 2018 14:40:04 +0100 Message-ID: References: Cc: dev@dpdk.org To: Adrien Mazarguil , Yongseok Koh Return-path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id AA7705F36 for ; Wed, 21 Mar 2018 14:41:10 +0100 (CET) Received: by mail-wm0-f65.google.com with SMTP id l9so9827392wmh.2 for ; Wed, 21 Mar 2018 06:41:10 -0700 (PDT) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 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 / all multicast mode net/mlx5: add a parameter for Netlink support in VF doc/guides/nics/mlx5.rst | 11 + drivers/net/mlx5/Makefile | 1 + drivers/net/mlx5/mlx5.c | 29 ++ drivers/net/mlx5/mlx5.h | 14 + drivers/net/mlx5/mlx5_ethdev.c | 27 ++ drivers/net/mlx5/mlx5_mac.c | 25 +- drivers/net/mlx5/mlx5_nl.c | 624 +++++++++++++++++++++++++++++++++++++++++ drivers/net/mlx5/mlx5_rxmode.c | 8 + 8 files changed, 737 insertions(+), 2 deletions(-) create mode 100644 drivers/net/mlx5/mlx5_nl.c -- 2.11.0