From patchwork Wed Jul 4 17:27:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrien Mazarguil X-Patchwork-Id: 42255 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 04E601BF0A; Wed, 4 Jul 2018 19:27:51 +0200 (CEST) Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id DA7701BEA9 for ; Wed, 4 Jul 2018 19:27:49 +0200 (CEST) Received: by mail-wm0-f45.google.com with SMTP id z13-v6so7013062wma.5 for ; Wed, 04 Jul 2018 10:27:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=pbkw9hRI7ubfT4SniXQjC7jXmYhnsS5eFcgbELmG4i4=; b=PEso/S9hlj8ToZ4ZQlNwEbpNPjHT9Wi8E6z/htMlI+8R1alu2kkwbagmqLjNGYaK8l LA1cdZFc23pNYG+Yn2oQU4OOOTdy1JFGJMkm6BIuiRzJFgAC9wG4xRBLbt1QSG1Lns7S tJp4rE73vG9fxnAKu63cAaEUZslDy1dQgeC88PjvGKjjhO/Qp5bVzLY+9b+T8EOW94Mf yvP1ZY/G9XfMmwAwKSYizJRvPrq07337h/mhVT1VdXnQ4lQ1DYiFuOBtwDkY0mja0Me0 OX9BBNv61eGDhc1pLBd5ALds9+ZzOy4luCakakX/l8hbYPcZGFHagp9R8Ga/u9LcW+K7 g+6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=pbkw9hRI7ubfT4SniXQjC7jXmYhnsS5eFcgbELmG4i4=; b=bxGfwtAQNVhr8IGnKTdu87vJcDNspS7bUGu1sPApZHFhlmLBqBmqrggknEDUMTWPdu +gKQ2Cce+b17Ll4VYPzqfWrmWacgKXo5/pNEUuBMnnLy+Pkmw2+qZ6okKtHDJlbEYjRL q2IWr7wLwCnozFioOvrWB3fX1g6jCZev62AUYgFYsSc8PC3wpnu8Md5P869HCkcPkafA hJScwUY0MvgI9p2E7qdI4YXSLDK0rx59WtYwLl+Fw7PoPRlpKgfDAzHPrm2fvfS/dbOG OwzK6s16Ldlq2T8/bKxVrDDBKqkZlBV9jsnWEk5ufpBItNMVpgZXaP33YPVDJBK38dd5 hDXw== X-Gm-Message-State: APt69E0K5n6FJuePamNizSh4rE8E3e+fmdt9M8SoLJnglWnlxow8rco5 E0d50TriJhpqYZdnOXNYxwohjQ== X-Google-Smtp-Source: AAOMgpdRtxiSl2k8ZdFnUoiTiw8mHLW1VRplKl7PmsiJoUf69sELEwRN6/GAQkoyMZ1hQkhZ3pdhjw== X-Received: by 2002:a5d:44ca:: with SMTP id z10-v6mr2306609wrr.210.1530725269625; Wed, 04 Jul 2018 10:27:49 -0700 (PDT) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id p124-v6sm5851515wmb.28.2018.07.04.10.27.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jul 2018 10:27:48 -0700 (PDT) Date: Wed, 4 Jul 2018 19:27:32 +0200 From: Adrien Mazarguil To: Shahaf Shuler Cc: dev@dpdk.org Message-ID: <20180704172322.22571-1-adrien.mazarguil@6wind.com> References: <20180614083047.10812-1-adrien.mazarguil@6wind.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20180614083047.10812-1-adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH v3 00/10] net/mlx5: add port representor support 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This series adds support for port (VF) representors to the mlx5 PMD, which can be instantiated using the standard "representor" device parameter. Note the PMD only probes existing representors which exist as Verbs devices; their creation is part of the host system configuration. v3 changes: - Added the following patches: - net/mlx5: drop useless support for several Verbs ports - net/mlx5: probe port representors in natural order - net/mlx5: support negative identifiers for port representors - See individual patches for details. - Rebased series. v2 changes: - See individual patches for details. - Rebased series. Adrien Mazarguil (10): net/mlx5: rename confusing object in probe code net/mlx5: remove redundant objects in probe code net/mlx5: drop useless support for several Verbs ports net/mlx5: split PCI from generic probing code net/mlx5: re-indent generic probing function net/mlx5: add port representor awareness net/mlx5: probe all port representors net/mlx5: probe port representors in natural order net/mlx5: add parameter for port representors net/mlx5: support negative identifiers for port representors doc/guides/nics/mlx5.rst | 12 + doc/guides/prog_guide/poll_mode_drv.rst | 2 + drivers/net/mlx5/Makefile | 30 + drivers/net/mlx5/mlx5.c | 1085 +++++++++++++++----------- drivers/net/mlx5/mlx5.h | 29 +- drivers/net/mlx5/mlx5_ethdev.c | 137 +++- drivers/net/mlx5/mlx5_mac.c | 2 +- drivers/net/mlx5/mlx5_nl.c | 297 ++++++- drivers/net/mlx5/mlx5_stats.c | 6 +- drivers/net/mlx5/mlx5_txq.c | 2 +- 10 files changed, 1127 insertions(+), 475 deletions(-)