Message ID | 20240214160716.2391286-1-mtahhan@redhat.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6B12643B38; Wed, 14 Feb 2024 17:07:24 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E8B7E4026A; Wed, 14 Feb 2024 17:07:23 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 4220440263 for <dev@dpdk.org>; Wed, 14 Feb 2024 17:07:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707926841; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zE/PDWVG7of5XoQzEXMl5hw0xJJbkKEW7lmNi7R+mgQ=; b=deAfKhnBEuekgidmQah9+8k2oj2Dh31+vOUwWJFnQHuoF65d7GFRLwFmYnwVbs5oH15tyl aPnLuNpcr69cLWRZihDGirFoMXFg5++A0F1QqBQ8nzb1v47p4Vg7HYHA2lwsi7SxwzcbFX RBBgN8eu0/LprwE+4BWelO2yvxf6sEM= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-482-TrgWYrHbNqiRrv7IhDNkyQ-1; Wed, 14 Feb 2024 11:07:20 -0500 X-MC-Unique: TrgWYrHbNqiRrv7IhDNkyQ-1 Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-42dba675351so13045121cf.1 for <dev@dpdk.org>; Wed, 14 Feb 2024 08:07:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707926839; x=1708531639; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zE/PDWVG7of5XoQzEXMl5hw0xJJbkKEW7lmNi7R+mgQ=; b=fYdj72mvDNCh35WLAiQBaCGPjTeOhjoDd2xZjxz93XENnQS6DniBaSxvkgzLv7l4v2 Ge2q30ixv3WxpIOA7UjBa3tspFRL++sVpaFeL/xejXKYn7IOWSKZ0nlEk9ZyVHsmxZJl Ew6+7ZZxMIUL+849xFHnwOJX37kQbsNoUJVI1+QHACAH1HTbZqOU9ECEmcCAn1Z8lJz5 dEdpMUNaInblJLNiEiT7jCvThyohSL3esT6NPFvtlAQtzZwtFEhoyjUQrJ97RcszJUHT rrQFVztK9jovjd4Zc6+wNZv4J5lQVS6HXop+0ZzvAarhvVekDsYuMoBCU5UDzO69daRB xrkA== X-Gm-Message-State: AOJu0Yxd2T5JywEzsDbKcTmYhjJSLGqAivYZIA7ORW3Zd/7uCwW8YuSU y3ttnSVw06HnEmWZPoxshXf4rVZkxgzwT3Ek1s0gHxL6NIOZuMgA0rudWiVnDFZWLmQAjecs2+K JiSSB0t8BWcDW7guv6rYXdMOsOSMnmuS1AC1nGRRT X-Received: by 2002:a05:622a:150:b0:42c:7b01:b2f7 with SMTP id v16-20020a05622a015000b0042c7b01b2f7mr3985195qtw.19.1707926839499; Wed, 14 Feb 2024 08:07:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IHfXfmnP39o7qkfNM++K1j21XWK8OHyqYMbgsGcmEBDmnl8l9zodp6H8lMXuE2W8+Xo9S0tVQ== X-Received: by 2002:a05:622a:150:b0:42c:7b01:b2f7 with SMTP id v16-20020a05622a015000b0042c7b01b2f7mr3985165qtw.19.1707926839216; Wed, 14 Feb 2024 08:07:19 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVuKk4Al/vr/tApLU3yypwuXcfWgVIZWpnfVie6w+k8oXhkUz/Ye/qmYioUeIHp5NTWa80SvvTkvWvm3CqOmQiFVOBnuYmPy2yO5O4GhY5iQvXU0QqTqfzGvoaC5HUg0gJR0IYCdomQGubflSonEVn1xXpXf3KDsc895EyHPpZfu//7Vd54kvRBtJPptQ7RAOSJMcdTaLZHESrXzoSrDzKxiV88TqWtl+NV4iQgBkzyDqL3/64KhnKz5YUWfx7eogK+YRKnMfC5AnWvtKCBy35KUo8oPxI32K2CSGj6SFUzMEBxd0RoUHwu6B48qPyrG5JmLwcLQRpmLMo= Received: from nfvsdn-06.redhat.com (nat-pool-232-132.redhat.com. [66.187.232.132]) by smtp.gmail.com with ESMTPSA id x22-20020ac87316000000b0042c7d4a8ce0sm2120155qto.3.2024.02.14.08.07.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 08:07:18 -0800 (PST) From: Maryam Tahhan <mtahhan@redhat.com> To: ferruh.yigit@amd.com, stephen@networkplumber.org, lihuisong@huawei.com, fengchengwen@huawei.com, liuyonglong@huawei.com, david.marchand@redhat.com, shibin.koikkara.reeny@intel.com, ciara.loftus@intel.com Cc: dev@dpdk.org, Maryam Tahhan <mtahhan@redhat.com> Subject: [v8 0/3] net/af_xdp: fix multi interface support for K8s Date: Wed, 14 Feb 2024 11:06:46 -0500 Message-ID: <20240214160716.2391286-1-mtahhan@redhat.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
net/af_xdp: fix multi interface support for K8s
|
|
Message
Maryam Tahhan
Feb. 14, 2024, 4:06 p.m. UTC
The original `use_cni` implementation was limited to
supporting only a single netdev in a DPDK pod. This patchset
aims to fix this limitation transparently to the end user.
It will also enable compatibility with the latest AF_XDP
Device Plugin.
Signed-off-by: Maryam Tahhan <mtahhan@redhat.com>
---
v8:
* Go back to using `use_cni` vdev argument
* Introduce `use_map_pinning` vdev param.
* Rename `uds_path` to `dp_path` so that it can be used
with map pinning as well as `use_cni`.
* Set `dp_path` internally in the AF_XDP PMD if it's
not configured by the user.
* Clean up the original `use_cni` documentation separately
to coding changes.
v7:
* Give a more descriptive commit msg headline.
* Fixup typos in documentation.
v6:
* Add link to PR 81 in commit message
* Add release notes changes to this patchset
v5:
* Fix alignment for ETH_AF_XDP_USE_DP_UDS_PATH_ARG
* Remove use_cni references in af_xdp.rst
v4:
* Rename af_xdp_cni.rst to af_xdp_dp.rst
* Removed all incorrect references to CNI throughout af_xdp
PMD file.
* Fixed Typos in af_xdp_dp.rst
v3:
* Remove `use_cni` vdev argument as it's no longer needed.
* Update incorrect CNI references for the AF_XDP DP in the
documentation.
* Update the documentation to run a simple example with the
AF_XDP DP plugin in K8s.
v2:
* Rename sock_path to uds_path.
* Update documentation to reflect when CAP_BPF is needed.
* Fix testpmd arguments in the provided example for Pods.
* Use AF_XDP API to update the xskmap entry.
---
Maryam Tahhan (3):
docs: AF_XDP Device Plugin
net/af_xdp: fix multi interface support for K8s
net/af_xdp: support AF_XDP DP pinned maps
doc/guides/howto/af_xdp_cni.rst | 253 ------------------
doc/guides/howto/af_xdp_dp.rst | 349 +++++++++++++++++++++++++
doc/guides/howto/index.rst | 2 +-
doc/guides/nics/af_xdp.rst | 44 +++-
doc/guides/rel_notes/release_24_03.rst | 17 ++
drivers/net/af_xdp/rte_eth_af_xdp.c | 162 ++++++++----
6 files changed, 527 insertions(+), 300 deletions(-)
delete mode 100644 doc/guides/howto/af_xdp_cni.rst
create mode 100644 doc/guides/howto/af_xdp_dp.rst
Comments
Sorry folks Just spotted the checkpatch warnings :( I will fix these now. BR Maryam On 14/02/2024 16:06, Maryam Tahhan wrote: > The original `use_cni` implementation was limited to > supporting only a single netdev in a DPDK pod. This patchset > aims to fix this limitation transparently to the end user. > It will also enable compatibility with the latest AF_XDP > Device Plugin. > > Signed-off-by: Maryam Tahhan <mtahhan@redhat.com> > --- > v8: > * Go back to using `use_cni` vdev argument > * Introduce `use_map_pinning` vdev param. > * Rename `uds_path` to `dp_path` so that it can be used > with map pinning as well as `use_cni`. > * Set `dp_path` internally in the AF_XDP PMD if it's > not configured by the user. > * Clean up the original `use_cni` documentation separately > to coding changes. > > v7: > * Give a more descriptive commit msg headline. > * Fixup typos in documentation. > > v6: > * Add link to PR 81 in commit message > * Add release notes changes to this patchset > > v5: > * Fix alignment for ETH_AF_XDP_USE_DP_UDS_PATH_ARG > * Remove use_cni references in af_xdp.rst > > v4: > * Rename af_xdp_cni.rst to af_xdp_dp.rst > * Removed all incorrect references to CNI throughout af_xdp > PMD file. > * Fixed Typos in af_xdp_dp.rst > > v3: > * Remove `use_cni` vdev argument as it's no longer needed. > * Update incorrect CNI references for the AF_XDP DP in the > documentation. > * Update the documentation to run a simple example with the > AF_XDP DP plugin in K8s. > > v2: > * Rename sock_path to uds_path. > * Update documentation to reflect when CAP_BPF is needed. > * Fix testpmd arguments in the provided example for Pods. > * Use AF_XDP API to update the xskmap entry. > --- > Maryam Tahhan (3): > docs: AF_XDP Device Plugin > net/af_xdp: fix multi interface support for K8s > net/af_xdp: support AF_XDP DP pinned maps > > doc/guides/howto/af_xdp_cni.rst | 253 ------------------ > doc/guides/howto/af_xdp_dp.rst | 349 +++++++++++++++++++++++++ > doc/guides/howto/index.rst | 2 +- > doc/guides/nics/af_xdp.rst | 44 +++- > doc/guides/rel_notes/release_24_03.rst | 17 ++ > drivers/net/af_xdp/rte_eth_af_xdp.c | 162 ++++++++---- > 6 files changed, 527 insertions(+), 300 deletions(-) > delete mode 100644 doc/guides/howto/af_xdp_cni.rst > create mode 100644 doc/guides/howto/af_xdp_dp.rst >