From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nelio Laranjeiro Subject: [PATCH 0/5] net/mlx5: use Netlink in VF mode Date: Tue, 13 Mar 2018 13:50:34 +0100 Message-ID: Cc: dev@dpdk.org To: Adrien Mazarguil , Yongseok Koh Return-path: Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by dpdk.org (Postfix) with ESMTP id 0C52E2A66 for ; Tue, 13 Mar 2018 13:51:58 +0100 (CET) Received: by mail-wr0-f194.google.com with SMTP id m4so9537665wrb.7 for ; Tue, 13 Mar 2018 05:51:58 -0700 (PDT) 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. 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