From patchwork Thu Feb 29 13:21:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maryam Tahhan X-Patchwork-Id: 718 Return-Path: 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 F136A43C0C; Thu, 29 Feb 2024 14:21:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DDE27402CD; Thu, 29 Feb 2024 14:21:35 +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 01636402AE for ; Thu, 29 Feb 2024 14:21:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709212894; 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=PjPMHCR/QRZDBdpgrhQHBLtxKrq3Ar6ao+rKH5E/iSU=; b=NtI66hsMF6Zv0Fsuxboseerb5rpIKZGoB0hnNkQcwXPsnZGHeIrD810JJAMjfJ+W5BQOHp XkY4Y46mS0WpSs1XlA5/tu1Jf3uVcZek/1hv7Mh0ZiTo+IzqCGCJo1Nf3nNC4ejTuNIZdw 2gnh4m5zTbYoKmYO4OZiIaE98UMa92w= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-78--EHHS8oDNXWjspurv4Ylqg-1; Thu, 29 Feb 2024 08:21:32 -0500 X-MC-Unique: -EHHS8oDNXWjspurv4Ylqg-1 Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-42eb115379fso9465781cf.2 for ; Thu, 29 Feb 2024 05:21:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709212892; x=1709817692; 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=PjPMHCR/QRZDBdpgrhQHBLtxKrq3Ar6ao+rKH5E/iSU=; b=cWhrIXtYNCDlDaKH51rSHaVBLgdKxzKJi8XZ4g8N/RhAn+MNzkpqiFwg+DvqMITVWk SQqnOYOsl4D6OBL+Kw2H/zhKxhOFDg9Oy81B8UW4PnKYb3NS7TckZ576FhcIh/PXtErT uScZjCb+EDU8CDB0MdcBrxQNzbzwsWJZsJeCGJ7luV+PlLo+KSM0CrwvPMja18sVom/5 ymY8Wzk6fKBxmB6na+aw/j1eci/pl9d9JzXzhilK/qkhpzUZiZGuA9jUT+SKqpTTQvOv 0c5kCx9aGILls6DwfJ/fvcye6hN3/qM8scm87qRK31NVsZuozflMu0SRKqaWlJ4WiTn3 Wg5g== X-Gm-Message-State: AOJu0YxmLiQncr7sGlNq9S04i0V3aptwsHkjEyZSfEKCG3f35LpV+XOf IymW4LcQTAoYxHy9697sqH3MJxCK/0un5DBJEwczHSX0oR/MvOnfQKTb7+Ugsqwb//gbPNh3aPt Tvlk0B7kazaTBKomw4JFE6zy422VlUjJtX12gSKhn X-Received: by 2002:a05:622a:216:b0:42e:76fa:2810 with SMTP id b22-20020a05622a021600b0042e76fa2810mr2145540qtx.60.1709212892275; Thu, 29 Feb 2024 05:21:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IGOAJG0lBzzYJwVG36f01GmjcC4jtYpSJXzdUcl2Jl5ka4rsXK68P0B6sphF6Wvt4Bx9sD9JQ== X-Received: by 2002:a05:622a:216:b0:42e:76fa:2810 with SMTP id b22-20020a05622a021600b0042e76fa2810mr2145525qtx.60.1709212891997; Thu, 29 Feb 2024 05:21:31 -0800 (PST) Received: from nfvsdn-06.redhat.com (nat-pool-232-132.redhat.com. [66.187.232.132]) by smtp.gmail.com with ESMTPSA id g22-20020ac84b76000000b0042e6d2dd6bbsm698133qts.11.2024.02.29.05.21.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 05:21:31 -0800 (PST) From: Maryam Tahhan 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 Subject: [v11 0/3] net/af_xdp: fix multi interface support for K8s Date: Thu, 29 Feb 2024 08:21:19 -0500 Message-ID: <20240229132129.656166-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 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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 --- 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_03.rst | 17 ++ drivers/net/af_xdp/rte_eth_af_xdp.c | 167 ++++++++---- 6 files changed, 522 insertions(+), 301 deletions(-) delete mode 100644 doc/guides/howto/af_xdp_cni.rst create mode 100644 doc/guides/howto/af_xdp_dp.rst