From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0D20C43DA3; Mon, 8 Apr 2024 15:19:43 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ED097402C0; Mon, 8 Apr 2024 15:19:42 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) by mails.dpdk.org (Postfix) with ESMTP id B005D40289 for ; Mon, 8 Apr 2024 15:19:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712582381; x=1744118381; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=W3+pMNqy5M9yDzYozyf5FioYzfi8n0IXVBefBpw17kY=; b=ffXjvXNrk9g3Znd6iRk2AjFpP1BJJJGwJMf3t1I8Wcg6KYnVv7apaN+y t+0uItolRkCjgAjMu9+h/KcUeowCFyJXnjwLRI2UZdujnJ5qGN4SRz1gk E5fs1m7TDsqxTrzX39pq5D5Yq/lAZJ2i4QMoVf92kJ1x0AZwdVGASQL8j 5F7zFyfEbyPsViUIZ6QzRRpQOSltbFZmhNWnFy6rfyt7OqpXyCzmuFlMg LkFI5d4jcYZYASyCuOSYiZC9nHIDAa2GpseWvxZauLBegFpkXMBLNktti A9z0plXzQp3IJuPe7U6K9p6AsT/qFq5W/UxN+1oGXQErXaCnVnX6zyNhB Q==; X-CSE-ConnectionGUID: Mef+FDDCRquaTt/H0kDG2w== X-CSE-MsgGUID: LvZDa6nXQ2OB+QCfXS17LQ== X-IronPort-AV: E=McAfee;i="6600,9927,11038"; a="7724928" X-IronPort-AV: E=Sophos;i="6.07,186,1708416000"; d="scan'208";a="7724928" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2024 06:19:39 -0700 X-CSE-ConnectionGUID: UUmuZD/8TGmUOOoc6U+LzQ== X-CSE-MsgGUID: wwsqchSjQBO6oKognmEZ/g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,186,1708416000"; d="scan'208";a="24660208" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orviesa005.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 08 Apr 2024 06:19:39 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 8 Apr 2024 06:19:38 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 8 Apr 2024 06:19:38 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Mon, 8 Apr 2024 06:19:38 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.169) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 8 Apr 2024 06:19:38 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QppZ+pyucflw07op48m8GqTTM7xjkH9gXgehB+UUUcuPzgR01sL+MJwp3sVQD+2lkRNjxEBv4qCUdExXjB9H3iCNjNt5uY89Z5MpK3ro2HTmHu3REM3SzKEaC9gu8u2RsMa4XqdZJQNF5f9W7iXGWqirP2xVi5+f12iH69wvmahRnChyrokWXFGwnOBqAgpJVH+ga3jvveaHhKt35t8+UQ7w8os/0f6gyA1U0B+DYNjC8ZkhBISG5f6/TFUovccWnwWKvpSd5EIJtiNYjMuIXsJOOY+xE+sqPGByWiRQpzJcx9X4T5Chi/FXYyYSmD/Wxz7dCvrafRwWrDi7R4eEEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ldp/6zn4wj5N5EDlwOwS5KeUnpCVQI2rYhY0/i58jgw=; b=YatJkEgm9B/C0My+2dCTL0pR0VoZlSxqhTEI5AkBb9Dn1VuJ3PoWyQ+WwBjaK2IvsQmlBqYvywkUJ9ZpmOhzMxqhyXxqReeKZU7VxFvI+9q2KdCrlCbpOzwXApzF+Vk3vCNxDX+WC0G1gUCjNjpwHQYDfav8Hn+9wEmdntTaD0EeaakRNkZ26L2QjWwmSI/LczXK1p2wHrya3WhcN/3SbZrLklZrcZY08VBrFG5rrdsmTSVIJFcs0pGhZrWstxPmRMT8E+2mJHoeht2JJQUmD//d0Ch5o8a8ZNA65y9Pcfcb3TSpJTYzrzmtewZaphq3unu46cumbvlB2+GeT4quzQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) by CH3PR11MB7938.namprd11.prod.outlook.com (2603:10b6:610:12f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7430.46; Mon, 8 Apr 2024 13:19:31 +0000 Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::be3f:5a4f:5180:2ba9]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::be3f:5a4f:5180:2ba9%4]) with mapi id 15.20.7430.045; Mon, 8 Apr 2024 13:19:31 +0000 From: "Loftus, Ciara" To: "Tahhan, Maryam" , "ferruh.yigit@amd.com" , "stephen@networkplumber.org" , "lihuisong@huawei.com" , "fengchengwen@huawei.com" , "liuyonglong@huawei.com" , "Marchand, David" , "Koikkara Reeny, Shibin" CC: "dev@dpdk.org" , "Tahhan, Maryam" Subject: RE: [v14 0/3] net/af_xdp: fix multi interface support for K8s Thread-Topic: [v14 0/3] net/af_xdp: fix multi interface support for K8s Thread-Index: AQHaibYK65lZQxJaF0KG+SVD6o87JrFeWt+Q Date: Mon, 8 Apr 2024 13:19:31 +0000 Message-ID: References: <20240408130924.232154-1-mtahhan@redhat.com> In-Reply-To: <20240408130924.232154-1-mtahhan@redhat.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MW4PR11MB5872:EE_|CH3PR11MB7938:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: N3fVI2YMLESb2qCYJugC5HgGv88PYAPU2yJw2CrGXZb4VeTpWbsRKolqSNhjyPKWFVsvWxK24xfOQUdejo4pO650tv7oyYzIH5SH9NAYkK9YF9UKx8ptF/C24DkO7EG9HBQiPtP3no2kvNi9wT2VHOkYV4YMvYsilj2Ff2kzzbSHm4yCGT4m2rsXSq9fD6L/W1WxjSvC8H4B4l1jfIt4i3BKY6pyIk9h1JDIsDzNPpfi49g276ZWTA/nsZNQfMRNMvLS9zeIA/BjLF9kWB3/tlnSm+uJG276ObbdpeRpidsfamp91ru8rBKN3j/FVH2neJ85ZzvExOxK23fLWHn0abBB1sDjoiYIA64yBbFv8+RjmeA08g6RVLHWleJHa5uQmaAp1/QRZAa/YkfY/lIkGs9k52FUAidYrS22Aizqkh7o6B94mJM7rS2n95JTxBxM6ZSziHFcViy8E133mSXEQElhS1SGw1LbP/77p0muUxWSXcmYf7k8+80g1cXzWZpY1Z/ierE0OV6cxV/IaJVYMerw+mg16d0AKQR8maEYOOZ0i5DubtqvTSIi6zdZpGojmRIjG1ZvQ8AJ5n9iDs9tYfkgbIgvuEzbhcvzlKfnnIpkI4wHX6kc7k4B+C8LbW6M7SYp1gR39gJ2bb9I+QS6FhvkgqgfaHKqL+8g3mtfLSwrUKpR10o7htRlKzu4A3WLZzDiRH2ndagv2pem4THmAQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW4PR11MB5872.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(1800799015)(366007)(376005)(921011); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?+kGep1JdAXGn2dIgL3j7hkCrn/G+TyhPJSSuAW+bH3e28FxddQShUBHnmuuE?= =?us-ascii?Q?m7BIOlIrxrpoiM2aEZCgeFvCSFaxF2lrawe8UGihBEX6481Z7ABQmphLJVe/?= =?us-ascii?Q?pFHsXkXs92pro1Sv3ckOFAfpemNZuIQfnNIe/42uAomlGGDGDT9wB9i8Tvwk?= =?us-ascii?Q?Oz12jIFJGDBnJcVDy4/8Q+UxAQ2HfRsJpPzE4XiK+II+VX+ZYLFRhQFDUa2U?= =?us-ascii?Q?juaRnKQjEvHhJS1ke0+hAinQOaacAPo1MUTn2ecBjbYtfs3ZYD7FhL5gH6Wa?= =?us-ascii?Q?zo5S7TBV7BUDrrxiWQLE/gWt0LJkqk4ZbnGIixHfBDc1sUVHd0W5hAyKEfrZ?= =?us-ascii?Q?pvadVPTacvn5l9U5e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us-ascii?Q?k4bI0c1AzeJPBFPFT8EGWokBCGK8iYHUkKCdFvFAv0yWvlIbscWIjuiRZVy3?= =?us-ascii?Q?9mYvGqBe1Ox1L/1sNJE0mgogXf+4BripQXwbEkKUH4T9/szkXnUEYwptKdkm?= =?us-ascii?Q?2daBdWa5n9uOtelu8qnDbwv2ijw4SFzQnnVtVBQqUP5H8pFqWnq2+1qhkA0v?= =?us-ascii?Q?ghagvQFsblaS7IYCLde3b0pEih0o229dmEGsceVtcuWnz5Ym5bp5ruP2Z11z?= =?us-ascii?Q?TFbqS6s4lB13D3YsnZCk2Y49e/JiAwT7czpO5B6TTrcA5eOZrLrFxDkhL4Nb?= =?us-ascii?Q?W7SaM6C05X/gnDHify4N3pPTWDMJPDHuYgpO3fvr?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB5872.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 57c8ca2b-24b7-49e6-1352-08dc57ce86eb X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Apr 2024 13:19:31.7802 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 6HutPzMkZP9j9wJ3TC0wNGi0zyfNZ3VsYC2p4vWd61+n5vhT3+mvR1GYdtHe8QHBWV+G/97xtwMqoC7CCl7vVg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB7938 X-OriginatorOrg: intel.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 >=20 > 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. >=20 > Signed-off-by: Maryam Tahhan Thanks Maryam. For the series, Acked-by: Ciara Loftus > --- > v14: > * Fixup bpf_map_update_elem() in compat.h to use xsk fd as the > third argument. >=20 > v13: > * Fixup checkpatch issues. >=20 > v12: > * Ensure backwards compability with libbpf versions that don't support > xsk_socket__update_xskmap(). >=20 > v11: > * Fixed up typos picked up by checkpatch. >=20 > 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. >=20 > v9: > * Fixup checkpatch issues. >=20 > 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. >=20 > v7: > * Give a more descriptive commit msg headline. > * Fixup typos in documentation. >=20 > v6: > * Add link to PR 81 in commit message > * Add release notes changes to this patchset >=20 > v5: > * Fix alignment for ETH_AF_XDP_USE_DP_UDS_PATH_ARG > * Remove use_cni references in af_xdp.rst >=20 > 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 >=20 > 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. >=20 > 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. > --- >=20 > 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 >=20 > 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 >=20 > -- > 2.41.0