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 7A6E8A00BE; Thu, 10 Feb 2022 17:07:01 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 08B394117D; Thu, 10 Feb 2022 17:07:01 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 46B7041176 for ; Thu, 10 Feb 2022 17:06:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644509219; x=1676045219; h=message-id:date:to:cc:references:from:subject: in-reply-to:content-transfer-encoding:mime-version; bh=WVlB1JzKGpWVes4/uIIjQYUak0VF7ApDKUe/M5SPw64=; b=XfMsJNf8lCuYrnBBSH6+nJCEL5zkObeSvbZOVsLtD5aSlrateRsjCgWz bqE6WjH93m3/EE4N8lgChNiaz8ltdJzH7HR84H15L395BMoY9mmrkUy/C xWhI9ugFH2KhT7W7zoRK3EFrzkud4HPwyp7H0C7HddCFixkVOrBO4u6BA JveFy5zcpVQRQxWy0tDllM2GvEqr48d7pPgJW+qjEYI0gl4dGneiZEx5O t+NxJ40H0mtADNBoGd1ZiUAGtX9ediG8PxoPv3q3EDlgiu18rzxpQM6aC ap1crOJno8xZkFvKnXKCeQkG9qUyPHOYgmo/o2TIPnzVYj0DivAPDMXT2 A==; X-IronPort-AV: E=McAfee;i="6200,9189,10254"; a="249275987" X-IronPort-AV: E=Sophos;i="5.88,359,1635231600"; d="scan'208";a="249275987" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 08:06:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,359,1635231600"; d="scan'208";a="485731500" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga006.jf.intel.com with ESMTP; 10 Feb 2022 08:06:43 -0800 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) 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.2308.20; Thu, 10 Feb 2022 08:06:42 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) 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.2308.20 via Frontend Transport; Thu, 10 Feb 2022 08:06:42 -0800 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.100) by edgegateway.intel.com (134.134.137.103) 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 08:06:42 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gwy/LYpA4/urUxtZeqSVhLB281kip1HJopBydbJV/fkLiYcZdsn96h7SEPYa/O+5afnLxs9Ee+UonjgSDlppiXG0lX3X5mjrZhf+TJX5i/rZlWqPQrPjzsQ0abmhw7ioPxHYZcWAk7GSVBfqAawwelOQJMg/BK1PlPK4Ifvf1J5qms4htM+G2KCiItQQu/8Sk70u6E09Y1v8/HLOR1zSIXgj6NilI7d0ND+VpOnG2aITOt1h1VRfNK7doPATsFo6WX7q0XKzxNEFpGLHUS4TgTWFQT4JdkVYCaqZWQac9Y6VWG8KRcFJ7rTjCI3rbH1g7ZILbSC4wny7l/04g0KiFg== 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=Z2JfWf4DBTI6KLF0IvgGBuF6AtCGCQv6XYaX5v+VVD0=; b=cQZ7aJ8XuQvg+epBNbutVLkTn8k09uW/pRMphG2RV01Mw2O8ziC/6V7+tLbIstxW4exDBV7qVEfJVjtai9jPljE/lPz5i9aPcQRgbguamwabNQv3T0fYMxci0EtJo1vOz9dZfQClOhqRAH0IdxcsNK3cSlSChhFAOZBlops72jCIuGm2DZzKGhG0WK5+MX+7Udpb4Dlit3qm0+0cjt9kBzvHGuEsOJ72DOw5E7eW97T8lcCTPiZVd9cY15zZjuKpDPslc3nsp2pTWwVCvDxOKLlwaqJaLc/t/g5MMYQeQgn3NRQ6AzUPPxNK0Evg9p7SRLYtlmAoGu27cyokqRAwjw== 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 DM5PR1101MB2075.namprd11.prod.outlook.com (2603:10b6:4:5a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.18; Thu, 10 Feb 2022 16:06:41 +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 16:06:41 +0000 Message-ID: Date: Thu, 10 Feb 2022 16:06:35 +0000 Content-Language: en-US To: "Loftus, Ciara" , "dev@dpdk.org" CC: "stephen@networkplumber.org" , "Burakov, Anatoly" , "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: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0357.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:d::33) 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: eb4a5302-da2f-4a07-0674-08d9ecaf530e X-MS-TrafficTypeDiagnostic: DM5PR1101MB2075:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:46; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mfrWZ1LfuSJ1YRPPNxux4nvndKRkL2Kwe7lu+b/shHKDyLkH883Z0FOoYRKpsqdAkLGLCeWDbj67HRxNsY3IWEX+mU3/L8xx0GsbYryY6yZs79aBFyyZjhebnf1eGBnxNRt8N5ul0soZGES69J3io7vrEaNSVf4YZFiXcQGMu53P736NHC5XgJK2K/naxo1oRZAXIh//TsPNfdubf+dFKbD0IshAb+hc3D24ptA8LB1dzy+EYuRG67TJ/sETXcbTSYJWST5gDckCWIbY41RQDlSCo0cy8qLj+5CgzoptNKJ/OYle57ZZgMyeWbmO0vfW3VYYUc0s4GFSirLk9Lknd56Uv8bJXj8uDtfTUKnOfbNmV08mfXQ4JMcC+eLJrHHFJNqkry2j32d9CmNkl0MWSTCAunHesG/rLBMx8BCWxAljjDyQZlL1XgOFvS6sa7gHVEchFBuhNkKpNNZBCB8Jay5boWnvVwdbpruf+8Pto1JESnftjYlOWiDUZlP6CVfsYTDYZDJsfSTNuid6aJntiYIvDRU7tJ4GfE5KFYJ5KMC9mjTwyfRMRFS/KdTrQMOlPfHum75PG7JgQ2pOGJj5ySZ7M0oUitFcvDUDQsKJy3OKqlK3okQ8nPAK7S7tUyBp7fKsHE9wfXdiUBZP3gVeeeIfqgQI7bFcsIXWkGk9logXCXYNX1J00zUHst55DsyVqFUE9Y52AYKasaRUkBc23Q== 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)(38100700002)(82960400001)(31696002)(107886003)(36756003)(8676002)(4326008)(66556008)(66476007)(2906002)(8936002)(186003)(2616005)(26005)(44832011)(508600001)(110136005)(53546011)(6506007)(86362001)(31686004)(6486002)(5660300002)(54906003)(6666004)(6512007)(83380400001)(316002)(55236004)(66946007)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?YlViTFlKY1VzY1I3TEJ0ZGo5a3VCUzlUT1FDTFZ4by9VcFpLUDVSWWRhZVJX?= =?utf-8?B?UldBM1BRdEtPd1BCdTFQUjNUWU9lcGU1Vml5ZUZ2M1V1ekEyYVpmS2liempw?= =?utf-8?B?bTZva0o4dU1kNU9xaXRidFZLWGtBMTkyZitrT1VCVWZESklBK1drQWVQM0Ft?= =?utf-8?B?S2h4YXE1bXJkNHQrbEdpNkJJTGxSVVhsM0RiZk9nY3ZOR3ZycUJlaXhFaDBw?= =?utf-8?B?ekFCd1lBMWNrNHA2UmJWeXkwc1dkaXdweHBlalJIc1VzVFMvR3FQWDd4cjdX?= =?utf-8?B?ZVgwL3AyQ0NmSG5vSVI4Yms3ZGZ2WTZsRzF6REVraDVjdXZnTFJmVTFQVmJY?= =?utf-8?B?M2toemZaS3BiY1ZjTFZXK25aV1lTOGljTy9mYWF3cnV1UEVyUGRZS2dhdnJF?= =?utf-8?B?T29LMHFCTnkrazhwSTloM0JvTDdsNEY3N3VXRzNYUVAvY1ZsYjg1TG1YT1p2?= =?utf-8?B?Z2hMV0NNK3RtQi9kQ25CcndtUC9ZaDBNTDFGYm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com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2022 16:06:40.9477 (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: 1RPwGyRN5A1tmjfzoNZtr9aUkwD/10vPjDLdlluvkw0x+28t0w4GRaEORQQIkFntVrj61r8Sf1aM/0VG8SQVnw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1101MB2075 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/10/2022 3:40 PM, Loftus, Ciara wrote: >> Subject: Re: [PATCH v4] net/af_xdp: re-enable secondary process support >> >> 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 > > > Hi Ferruh, > > This file should be generated when libxdp is compiled. > Mine is located @ /usr/local/lib/bpf/xsk_def_xdp_prog.o > Can you check if that file is there for you? It could be in /usr/local/lib64/bpf/ on your machine. > What kernel are you running on? > It is in: /usr/local/lib64/bpf/xsk_def_xdp_prog.o I had to compile libxdp from source because OS package version was old to work with af_xdp. Is something required to point location of this file to af_xdp PMD? I run kernel: 5.15.16-200.fc35.x86_64