From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=cbn0plFpNy32dCOZV4YSLCp3D/FfdLBXewqJmay4drg=; b=BM3cGH316sAlXCTDdoVMkxnfzTGuo+RpraaXlt1ytj8NjkyClR2zx7BcAVq9Ny/6wh FBEjIWzQ7eHlYYxJk6ShTlsovHy1Sej+RWDrEsZ6whvn5zEzPTuQ7RScSqSzOFEz4/1m y/PkzA0crzlRWh2HtNf7ghQWFCQ3VjSTy7zmQymtWiBWUsoC2pZhnrlww1EgQaK2Ut5h hqub6QPzl4DkzlayH7siW4lKQaACwTgqwgPHSL7LAKmS3fYgYYcuRHEGoiIS2OMmE8yJ t2tP4xYrBkUydNl7wF4qmczPLB7vO3EMHrX+5Poq/dPnUOL+pvJcsCEzZM/3PMQr5jdB q0pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=cbn0plFpNy32dCOZV4YSLCp3D/FfdLBXewqJmay4drg=; b=NHRsmHTVbgKBECyLF8NE1SVXTOhXDPOgQfRFYci129L1NdXvrJw2v56btZ4O0Y1h/E eKHYbARkNayad1e3xelOB+jfGXG4kB3yV4lNwuzq+RWYxJjGn2G/qhox9uLV3wsZw8WF zZNuSX2E5bFNrDE8xPVupRjUgjNY/RSjM8Z0RN9vZMNZALKxxrimiTJTp7z5CKfEiD9o jkixF8piapZ2rEOlSJQzgh06T28cVq4P2OkjEKpWttjeO58XqeLVSczHXO/xnHVEiWDu QCPTs8uESinakJOmAP4tUMFUUctD4tAKQhUANobsI5s4Q2l16DBVvzHtMsf10L5oqb3G EhdQ== X-Gm-Message-State: AElRT7GAp0GXMZSIOacGAzd+WYB5+xfBIuoCkPzuqi8ltbXlkoz44cHD 12Yyxua5cQvqMhLoXxjDSLcY X-Google-Smtp-Source: AG47ELsYey9OG2nV4/h54f3gDusfREXbynS7QcWXnd/LozqASbjnI4dsUKGs8wk+LNNXR0hMNEjVVQ== X-Received: by 10.28.139.19 with SMTP id n19mr727499wmd.40.1520945517802; Tue, 13 Mar 2018 05:51:57 -0700 (PDT) Received: from laranjeiro-vm.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id f8sm202350wmc.1.2018.03.13.05.51.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Mar 2018 05:51:57 -0700 (PDT) From: Nelio Laranjeiro To: Adrien Mazarguil , Yongseok Koh Cc: dev@dpdk.org Date: Tue, 13 Mar 2018 13:50:34 +0100 Message-Id: X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH 0/5] net/mlx5: use Netlink in VF mode X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2018 12:51:58 -0000 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