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 3128C43DCA for ; Mon, 8 Apr 2024 12:47:07 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 31B3540289; Mon, 8 Apr 2024 12:47:06 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by mails.dpdk.org (Postfix) with ESMTP id 0420440041 for ; Mon, 8 Apr 2024 12:47:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712573224; x=1744109224; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=rbJN7u3SqXlK4L8SUJOvDXBRPB/Qt1w1OGJFvQcrFjw=; b=W74NOJ7eUknOpMFVlej8silg9flMkZs0Ym77bqZ68144eS0UrorHFhUz v8KAWXLIR0Cq++UUcFSza5UK15JIQTi7IeRc4U3yvJ0up/lKd27nfrPsg TxqHW/rOuAVWa2S2FjznINh45PQePtvf/4+B/v1eX1FVBX1CnJmbiGLuP At4+X7qBruAXPt69UWm76Zd9ufdpvQ4mn6uQqcP1tIidiErdihH77QCqV gDI0NJa92jjCSg9L4iAfpH4q26+giAORtnqNDr2Kz7cNqxCSD3GXftwBy 42ImM8dOtJe2cEyDwSMdXqLpjiG/Zrt/FKu90dBmpzsgUG0qEXKfLuRxr A==; X-CSE-ConnectionGUID: uSJ8H6QSSfSgGEOmxMEa8g== X-CSE-MsgGUID: Oau8v9zkTPGgn7iwM9wh2Q== X-IronPort-AV: E=McAfee;i="6600,9927,11037"; a="10814736" X-IronPort-AV: E=Sophos;i="6.07,186,1708416000"; d="scan'208";a="10814736" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2024 03:47:02 -0700 X-CSE-ConnectionGUID: j00gulzRSpyMS1A1GP5Eew== X-CSE-MsgGUID: VKhUmG4+SmSEFmejWUzb7w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,186,1708416000"; d="scan'208";a="19884528" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmviesa006.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 08 Apr 2024 03:47:01 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) 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 03:47:01 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) 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 03:47:01 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.101) by edgegateway.intel.com (134.134.137.100) 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 03:47:00 -0700 Received: from MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) by CY8PR11MB7799.namprd11.prod.outlook.com (2603:10b6:930:78::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.33; Mon, 8 Apr 2024 10:46:58 +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 10:46:58 +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" , "stable@dpdk.org" Subject: RE: [v13 2/3] net/af_xdp: fix multi interface support for K8s Thread-Topic: [v13 2/3] net/af_xdp: fix multi interface support for K8s Thread-Index: AQHahpu4D02auYPky0GugLNCUc9w9LFeNhOA Date: Mon, 8 Apr 2024 10:46:58 +0000 Message-ID: References: <20240404142326.2151118-1-mtahhan@redhat.com> <20240404142326.2151118-3-mtahhan@redhat.com> In-Reply-To: <20240404142326.2151118-3-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_|CY8PR11MB7799: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: QMo3KH12po/aNuq6zEStULrY1e1yvvQBlwZT1TxxXtgNHnuh8XknoJ1nSObI93VCbEV/zkAE4NyzqNL/1mU02C3Q2RuQ5owGsa4vevmlIru/Xuma6JISoR14IFmLvvIUNYH8gULGIVtLkP4OQN1n7TkrOg+gqe+ZkKc8Jbn/ApSULlMRrngQ5FK1YPhxcvceu1lLQfncJr0QGKstPj/xE+GbcfANS4L3G7NeH7c0xodBJf+i+FchndqpJD3iRVbzL7FS/I9fY83MEnJcJ9dPA2NE5uIfKG5lLZucGa0gZyqnZUH7TljpzACo+pR4tVxYtnZQQQgr+LEPYT6oeWB8s72ve5QtgygVDaqbYTiTCZ4P5B1FnNdtvEHJ+KGmDMPuZ8bsYTNGiKPQDX/Klx47q+fQM8gHG6uvg0Eo8HOUCuP71faBP9/XlL7l4/AFzb3AkMOOmFmeCwYV6Du45xAntXv3HWkabhXcGKLUdnsni8lKNF1jxFj/VuMGBd6Us9zbFgAmHKvYSlDRkYAjON2iyfWjGE88yJswj/Wa6QZYP7O0cuWyIyHdDzVftCJ0gYSdkwyiwG8bnzLM+28dayh66GnTcMP9uoOYBDtSfHHj1IVdowbMh9TLwCe9BXNW1Un19+dtJhUkFQAyBjvSGoOaEIzgNivDMqiHF+TqkpOyg+EOgatDLLeBdzO4iRxhCjeqL+ZIrheNd1oOO+7eyfiw5Q== 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)(366007)(1800799015)(376005)(921011); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Lao9r+qJxdh0/1iZ1ifhkSwpZ+GLALuJOoO7OcAsMuYY44fJdLcXRyL4+oa9?= =?us-ascii?Q?Gtkjai+PK4wLYVAI+0BJpO5zymn5LEPMC4lj0MDPgnqSaIt2hSq+Q0oCw5Y8?= =?us-ascii?Q?iS/dy9TyMAMYVCrSgAxbyFSivu9pepo6VtQ4uiQt6XIaC26NG5NmK98j2/TS?= =?us-ascii?Q?diV2sZvzSC5CUTLic+54hUjc1UXffczC+adSRGWcrOFHbJf0Xh+eGHWxBqNf?= =?us-ascii?Q?2Dm9BLE9T9pa+AfCAZ6uvOHYr08vyzGRC38kJCXJWT2SNLSz+GVODULo+4vt?= =?us-ascii?Q?trpEYTYZo4ylaqQhWjdnjjvuLUA4Im7mLRh/dUk7nrCXv1MySH4u51rwLe8L?= =?us-ascii?Q?Cetzep/6gH6PsnQvIMqFvOeUTnVQoq4o/iA9YU97JrxxjvtZTsb3TC/gSJAL?= =?us-ascii?Q?Sfd0851zQ/3dvbvk9gTy577rZctmq6Su5C3mUEPSPDnS16Q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ano2sqnr/w9DjOpuI0zqdJZWYKGf7XVtWUrXQLc?= =?us-ascii?Q?GhrjUFVWH70fRV72RoWRsA4PZZFhOIZtN1guJzjkdD6Yj3TxvjEYjudx05aG?= =?us-ascii?Q?K7XKpyDAZVRNjw9pQ+uz/w2rIonJUpxeCJhwfA8Ms1VhZROmKcHXPDJhf+mC?= =?us-ascii?Q?EJrYjQckBOgPz4XvaGJnC95YTMBX9SA7WimRE2ThElcZwTTZzWwgyp+dpKtk?= =?us-ascii?Q?fhmy+IMenfQsEJd709MYUznHqlz/IgXcwHgiSUCq?= arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RedfgZqEhkWMZz8/+ISvDeOlhUcvd4UIXJjpCeYPC5ViWaRfWsZLDv9NVxndRDfAyLQ+kKjO0q4QXkIRPaZFKCR0oocXdzQz4zNWqBl7v3X3v/ZhivxagYQ9PGpY0nGaA69wTH48r1XLmOe6k9/NgtB2zDKZ+vsX7VOetb4Sa1bT0HC5XkYce6/Bld1bLc3VfPe2V80rULniJpxeup3K4O8Z+xfgh7LCpkujy88EVsOhjOJXeJkMxBTRBCKNKE3O3Johd24tQo683wkFRV+waEvOBlDeXS6HPORlnsDz9kcYx4ya12hpzSDlDQ9CvJzBb2qiXl0eZJ+IduJUasQk1Q== 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=razGoDbD1UvPev4TVr1MFJjbwbnOLDto2J9oRdKxsYY=; b=VEg9GTv/NHN69LEw3PJr2IUqamNJiXqasDcMk6te/zN0G3nA9I/laeX7Ozp4pASj2wcshLEJ4FKwIKfNtaJlO105MFiw9PkYLdaqyvmGC/ETWXbhIrnCkrCwt+I1jrrXY0R8x9FBopYfwK+HtoUDvxdIw5jO1Nds7EGYq3FhSeSX7X9v67cJIf4lsT8tKuzs16Klrxd1rYmgDyqkAgqqwJfQ4/GweFogkGAYKkr8syEIVFuQ37XB2mqozmybBGqAssKQcAH8masUabk07Cqcm0fAS+t5EY0ktpPsFap1IeYHccMFQk2nIVgJ27LJXZaGrmNMT//1oTPdOQgnOBvvRg== 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 x-ms-exchange-crosstenant-authas: Internal x-ms-exchange-crosstenant-authsource: MW4PR11MB5872.namprd11.prod.outlook.com x-ms-exchange-crosstenant-network-message-id: 72d8f511-1044-4209-f524-08dc57b93753 x-ms-exchange-crosstenant-originalarrivaltime: 08 Apr 2024 10:46:58.8344 (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: wdLOwuFXnaCUr0DNjeJd3TvlgtHpvRucqFd/GgmFxkFMi9lFvzQIE9eow2cb5pkK+Hm+UEooq6Yq25pmGsYwWg== x-ms-exchange-transport-crosstenantheadersstamped: CY8PR11MB7799 x-originatororg: intel.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org > > +#ifdef ETH_AF_XDP_UPDATE_XSKMAP > +static __rte_always_inline int > +update_xskmap(struct xsk_socket *xsk, int map_fd, int xsk_queue_idx > __rte_unused) > +{ > + return xsk_socket__update_xskmap(xsk, map_fd); > +} > +#else > +static __rte_always_inline int > +update_xskmap(struct xsk_socket *xsk, int map_fd, int xsk_queue_idx) > +{ > + int fd =3D xsk_socket__fd(xsk); 'fd' computed here is not used in this function so generates an unused vari= able warning. > + return bpf_map_update_elem(map_fd, &xsk_queue_idx, &map_fd, > 0); > +} > +#endif > +