Message ID | 20240404142326.2151118-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 C884943DFA; Thu, 4 Apr 2024 16:23:32 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A68DA40268; Thu, 4 Apr 2024 16:23:32 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 1CCFB4025D for <dev@dpdk.org>; Thu, 4 Apr 2024 16:23:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712240610; 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=XiPasKonbFRLMnXNJOecD3hTEAvIdwaEDGbgbvZTCnU=; b=gtR9rTgcrqpVI7s9kTO0H1SByZPrNv07iGvhPy+AiSwRpJ50evcnWG/rKeUHxItyIox3+x MJkeIN65+qNuY2K7Ei+qkVGEHFHSNTlXr5yUaZrey/kNVj5n4rUXe8tljzM+UltynZO7qk wQjknN2phopqOsR0dEVrCdfEZF6fTDA= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-501-A26c0WF-Pv24HaqG_5OHDQ-1; Thu, 04 Apr 2024 10:23:29 -0400 X-MC-Unique: A26c0WF-Pv24HaqG_5OHDQ-1 Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-6992dcc2977so11283306d6.1 for <dev@dpdk.org>; Thu, 04 Apr 2024 07:23:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712240609; x=1712845409; 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=XiPasKonbFRLMnXNJOecD3hTEAvIdwaEDGbgbvZTCnU=; b=jtlSPfwbYJWNGuCkMCNRN/s98SPJk7Qbf2mvOKKUoLsm1164zQrnyg+k9IuQJnRf5T IUOXia05hL8+RKrpd7U3rK4nSQJOxtRb1OkgmES71cGtx5bUZrgfxCuVYFvLiOYRIMH6 Wi1CsZdVR5+9DJspa744eGJJ6A1B25i7tRTjFDMbR18tjCBYUleLU7hl6O3EmDIfMEYM zgsdAghrTaseni3nJsiyo4hpy5T4AJ/tnuDbgteTJUpOW1GWF7SW+7iNL1RMmXi6V6St bhDWaea4YRlwb+epEFTyPRCHLVZ+YIITwKCIiI2XBzDB86bfmK1dxkPFijxubYdPizwt 5ZNw== X-Gm-Message-State: AOJu0YyB4tqe7uBDj2uGK2er3kDbPyo1kRJih8IExHYWGraB8MoFNDOs iGtSwxhUODiiEI59gL9mNT7dsksTLfCYEkNw456s4X33RkCTf6XHKZoWoVvpD27NVqaj4owoiFI alEBT6PJLG9kB4ZWOymg2uhN5QG4zrFSAv7hWA4rF X-Received: by 2002:a05:6214:27ef:b0:696:8c2f:9a12 with SMTP id jt15-20020a05621427ef00b006968c2f9a12mr2889819qvb.37.1712240609000; Thu, 04 Apr 2024 07:23:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHJeWsujYpoexONwmUeH3+phCKMDcs37CbDa5yF0TfCx2Evd9ePgzOjFoXtkiDuXOPsSN6ZpQ== X-Received: by 2002:a05:6214:27ef:b0:696:8c2f:9a12 with SMTP id jt15-20020a05621427ef00b006968c2f9a12mr2889799qvb.37.1712240608712; Thu, 04 Apr 2024 07:23:28 -0700 (PDT) Received: from nfvsdn-06.redhat.com (nat-pool-232-132.redhat.com. [66.187.232.132]) by smtp.gmail.com with ESMTPSA id 15-20020a0562140d0f00b0069901ebecf9sm4731550qvh.143.2024.04.04.07.23.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 07:23:28 -0700 (PDT) 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: [v13 0/3] net/af_xdp: fix multi interface support for K8s Date: Thu, 4 Apr 2024 10:23:19 -0400 Message-ID: <20240404142326.2151118-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
April 4, 2024, 2:23 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>
---
v13:
* Fixup checkpatch issues.
v12:
* Ensure backwards compability with libbpf versions that don't support
xsk_socket__update_xskmap().
v11:
* Fixed up typos picked up by checkpatch.
v10:
* Add UDS acronym
* Update `use_cni` in docs with ``use_cni``
* Remove reference to limitations and simply document behaviour
before and after DPDK 23.11.
v9:
* Fixup checkpatch issues.
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 | 340 +++++++++++++++++++++++++
doc/guides/howto/index.rst | 2 +-
doc/guides/nics/af_xdp.rst | 44 +++-
doc/guides/rel_notes/release_24_07.rst | 17 ++
drivers/net/af_xdp/compat.h | 15 ++
drivers/net/af_xdp/meson.build | 4 +
drivers/net/af_xdp/rte_eth_af_xdp.c | 170 +++++++++----
8 files changed, 543 insertions(+), 302 deletions(-)
delete mode 100644 doc/guides/howto/af_xdp_cni.rst
create mode 100644 doc/guides/howto/af_xdp_dp.rst