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 93373A00BE; Thu, 10 Feb 2022 16:19:26 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2592842704; Thu, 10 Feb 2022 16:19:26 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 19E77426EE for ; Thu, 10 Feb 2022 16:19:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644506364; x=1676042364; h=message-id:date:to:cc:references:from:subject: in-reply-to:content-transfer-encoding:mime-version; bh=PL2J4TnJj/QiomSW0QK2Y7lCfzbJbZfw7kxqetb0dC4=; b=mszniGobuIasemNx3qTv1eb4RLRVxFf+1e455apCDy9R35dryrpYtWI8 ohMqSv88AAM+1KT/HlTDKE0485xbdlKtRrmuKA6Msvp8Ufek/UFcr1j/O gdcku1zjaKpX3HuZOkDQEv2K7srDHPBPhtJ/jYzbx/nX8IvisrddI1nj6 F+8qKfTfkVpd0NCJE5Td/aRfgaIiPh0A4XSzV/Z55C/keUhfRw/4ITZ2O f6EEJDL33IVj2FSUCszAuQ+r3Jlw1RAvrv/uN02tBi41+ekO+fuBIcIqW m1bZXaLxn40lYvU76w8WyhEO9ivAtzGU9p923kKW7suJGqTuSgL0q1iX1 A==; X-IronPort-AV: E=McAfee;i="6200,9189,10254"; a="249263859" X-IronPort-AV: E=Sophos;i="5.88,359,1635231600"; d="scan'208";a="249263859" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 07:19:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,359,1635231600"; d="scan'208";a="622708553" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by FMSMGA003.fm.intel.com with ESMTP; 10 Feb 2022 07:19:08 -0800 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Thu, 10 Feb 2022 07:19:08 -0800 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Thu, 10 Feb 2022 07:19:07 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Thu, 10 Feb 2022 07:19:07 -0800 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.173) 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.2308.20; Thu, 10 Feb 2022 07:19:07 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ddC55oEdueIQbrYfLHIcZSWgNsga0yUHDnq5arTt42xEPc8v4orw61/8sfk0bNdyz/fJ/JNpUMCkVLmk0p2WPphddP5Z9SDnkSUATyQe0f/MgLtxqcrzDid2xQ8wFQhfDmuUfMicSqt4RG5x6JZe651qJS7sY2uBkC1cXQsRX09Ue2uEIIQ0WszoBh92KGV221QGS3QNSWTpRK15pGISmiHpZSHuwIT39A+nr9bqD9kamStCYpiDTMVZ84He6S4SiajxZoPugW9rfSFuoUH6pR2eLor2Ezs+iDp01M4NnESgxAPpMz2RSZRat0A51OehMIqf2vegW8CEAfw9ZKXKfw== 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=CIfwaTpHE1E2iD6aX3vjcxo4hAIhWQu+iUHjPGzeIAM=; b=eJlgmA+O+tlogE6V4jO8JLTV/S7XNICfEcxAeoumAq23kA91DgQdz2q1PGgvugKHeA9amFyRD7LMEqKNkU3wFZZAOv+OqQXKfDLWFIoHcD+WHsEIf8HMEgfzgFpmyU1VDZpMnP0s+TCqf+pIwHR/Z0KixP0EnAPkHU4xCw5ygXfkWSVDK3EP+5scc/0u2G4SmOQ09nXncUcNie3hv2tbmmUa9mTNWnCsGQYr2sJNJZ0Fiq4g4tiuLszfrGlKiwSvpcvvqdVyMEhvuqayB3qW53IEE0b5sWcicW+eXJhBQfUA+EMarKJx/WjlJ2QN/s9XAdnDBKZqo5vaLPF4xTr13w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by MN0PR11MB6036.namprd11.prod.outlook.com (2603:10b6:208:377::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.19; Thu, 10 Feb 2022 15:19:06 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::98be:5506:5020:28a2]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::98be:5506:5020:28a2%4]) with mapi id 15.20.4975.011; Thu, 10 Feb 2022 15:19:06 +0000 Message-ID: Date: Thu, 10 Feb 2022 15:19:00 +0000 Content-Language: en-US To: Ciara Loftus , CC: , , "Singh, Aman Deep" References: <20220208134800.52142-1-ciara.loftus@intel.com> <20220209094808.41464-1-ciara.loftus@intel.com> From: Ferruh Yigit Subject: Re: [PATCH v4] net/af_xdp: re-enable secondary process support X-User: ferruhy In-Reply-To: <20220209094808.41464-1-ciara.loftus@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0431.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18b::22) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 018be035-ee0f-467c-38a1-08d9eca8ad79 X-MS-TrafficTypeDiagnostic: MN0PR11MB6036:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:24; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Vt5WS4fBLZpGMuZcNtGHytz3HqaSRVo+0pXIZs0okHt+9653ILRLP4TqIwuos2Poew5h64wL3clSagDZFaBvP0SAK1rhyJUYD249tliAaeew6JMUYivfsCMyhGd+tseXij3sSuutnOhW6EBehWeBtiTfQ15HI/qOZ1uaBkqKT3IT4QEEJ7aL1K7CQVWwxHbDQ6e59fue7QV4tpfme1UecPDUDVE334f8AKbPaSKklzjD1bJr22tkC1s4s/uyBcuQsJaaDsngdPkRhds8yYgeZGzWgEePVLI2pNmrHPys4gVBGclXAB/M0reHwsdW2jmTCwcmpwYzBvkkNEhjSgR81gehhU/XDu92QPMpxSlbe/fvJBkkaWryFBsKkoC1uzj2h5k/N8xTaq7hp5kEyWa3kD+Ja+UQKkwAVvSl9ORwIQ5dE1SNgkf0XBXNRRTK36ockjRFBsKA+TgdNBVV8FDv7zsVGkdtHrjnOkm5wZp7YpOlcxQ3ZOU6JhegOUDQHtcMwAABq4F/XXXBdCyNYUFmJOksmCmrMwpabe1T1zsO+hKIkC14PwnaD2uOhU8uEZo42Vd+StSMTjijD5knri8Ochz4UGIxcdXIRfvaJkodYD9kqdYYzi5YgI20Q1QbOoUBf4uL7G258VR8xSwBAvQCFoB4pREwihoS9hcMxM2uOh8apRG8riT569YEr9UXHnWWthzFD8w6whsPXSndxsOQjA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5000.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(84040400005)(82960400001)(86362001)(31696002)(31686004)(186003)(26005)(36756003)(2616005)(107886003)(83380400001)(38100700002)(66476007)(316002)(2906002)(508600001)(55236004)(8676002)(53546011)(6512007)(5660300002)(4326008)(44832011)(8936002)(4744005)(6486002)(6506007)(66946007)(6666004)(66556008)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WWFnUktWWHFTZitqcHNPeEVzSlF4TTl0TkJkQUI4Vk13aCtHaVRSUkZaMzcx?= =?utf-8?B?bEVyVmgwZFUrUkliUmtjU3lXUGxVU1FrY25QZDRGZzUrQUFYUC94c0NZa2lm?= =?utf-8?B?bkxRclJCa0FBRGpPcWdteDZYNlVWd2NFTGNZeDVKNmc1RGFjMmh1VmxEdlhB?= =?utf-8?B?Q0J5Z2VxY1o1T1lBSDlzVnFEa0JBbitNd3VNWWhXQkMrMnJhTUJjM2VaOGll?= =?utf-8?B?UjJPdWwrRUJjQzljRmdTMHJTazdYVWcyZXUyczhQNmJBREs1azQvTDNGTWN4?= =?utf-8?B?ZVV6c1dtaFUwYnNLRGJSa3g1MS85VHBZUkdJSmV4eVZ6MXI1a2s5dFo4d0Zr?= =?utf-8?B?MkFPMlgrWVB1WHhpQ0hJNFJOMTBxR3owZDBFUndJMWpPVDBGdFF0QjFNdVox?= =?utf-8?B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S-Exchange-CrossTenant-Network-Message-Id: 018be035-ee0f-467c-38a1-08d9eca8ad79 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2022 15:19:06.1198 (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: t5vbsEWDa0+BK6r5Q2evsV304WMTTAAIeNRpFruTX/vSNS/e3HQlur3G3GTAPYhzZ2tvMR4ZFBYJ7IqvOBdAAA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR11MB6036 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 On 2/9/2022 9:48 AM, Ciara Loftus wrote: > Secondary process support had been disabled for the AF_XDP PMD because > there was no logic in place to share the AF_XDP socket file descriptors > between the processes. This commit introduces this logic using the IPC > APIs. > > Rx and Tx are disabled in the secondary process due to memory mapping of > the AF_XDP rings being assigned by the kernel in the primary process only. > However other operations including retrieval of stats are permitted. > > Signed-off-by: Ciara Loftus > Hi Ciara, When I tried to test the patch getting following error [1], it doesn't look related to this patch but can you help to fix the issue, thanks. [1] libxdp: Couldn't find a BPF file with name xsk_def_xdp_prog.o xsk_configure(): Failed to create xsk socket. eth_rx_queue_setup(): Failed to configure xdp socket Fail to configure port 2 rx queues EAL: Error - exiting with code: 1