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 CB3CEA00C5; Fri, 11 Feb 2022 14:32:28 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 582EE41144; Fri, 11 Feb 2022 14:32:28 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 78440410E5 for ; Fri, 11 Feb 2022 14:32:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644586346; x=1676122346; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=KbTRkAEw7HshfMm6UW/QcUVYICyX3L40CXCS24rr37E=; b=OU2C/bEPUMbkz2344jyJldizDCsHeq4IUGS5jrG32Xo+bGnWV7q9JuVz MQLFA+nj2Nh0DBRDAdfBk98xo5bHnUe+ih95NqTeq8VDENzHDsNoaUg90 xbPYEy3xSnnrUiutqeJu0rnAL92HGfqaYWcHIsfWAP1KE3+r83W+us9zF jZPG3URZAofxqOe2qaM10vo8vati+QrmZQoNNrCmQJU+GwyFUFLQHDKWY X++JVDeTWSLmKlHZ+cl14jrEu596zX2rCF5Z9krw9YVDpLRuDYTBet+Ol gq3BndxiQ+3Y3qxSNvHJ+d4P2oGl/2HE2JuCop15AZRkmTcx114sOuzlj g==; X-IronPort-AV: E=McAfee;i="6200,9189,10254"; a="248563027" X-IronPort-AV: E=Sophos;i="5.88,361,1635231600"; d="scan'208";a="248563027" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Feb 2022 05:32:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,361,1635231600"; d="scan'208";a="623219536" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by FMSMGA003.fm.intel.com with ESMTP; 11 Feb 2022 05:32:25 -0800 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Fri, 11 Feb 2022 05:32:25 -0800 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Fri, 11 Feb 2022 05:32:24 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Fri, 11 Feb 2022 05:32:24 -0800 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.177) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Fri, 11 Feb 2022 05:32:24 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J5STOCXCwvu9w+G/7p/KJkjoiBw5wGy/KlVlTN0E0H7vPiA6u4VAv4Rr6PcUoelUUT1ZgbuNKdnp4xZEAIOhMGTl3tTpJ9lGQwQtuRa1XJCjLZDhylzpk5d9r9OwoezrKW+ktSHxh43KfgsTP7dSjxMJ+BPBVGBscTdWHzDZH4KKD9XsVISiyaSQaBlbPjyM1msR9/qIDAe8L3474IircGYL7DCyjHeBDcMR7K9bH0PPSjZHEJOPKIOx1ASNaLNe2M/wfolynpAlmwcShEgzmbvaYU9uEVHpOqa8/EFmLxEpgYQ0dtURbcf1J5R7jufCvbWXlSz2Ml6wPRDgW48bDQ== 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=JxUSryWXwov0Yx43zGqYaXJUFylu+KGPgX9NsUjxLHA=; b=HR+tK4wxkH814ch9CO5C8IcGYnG02oZea+mnssiHWratNvmBf2rlUUx7rhYSJeo7vWqiyQ365mHwONhnio0RxebeGpKDHSZCR6ggyswhlX7X492yCl1uR+dB8HxujzUAGqUYJk8PJle3UiU2sRL/tICx/LnKxSNvrgwO64zdoyZiuo7pKF9Cg4a7FHhlKARTidlhmEGqAmuYepcsVA4I8JH3jU0Ng5RRVvXreI7CzZZhdnN89RhK0Us2J0/jEpbOAuXDegxQlIKwaVRNQ9qXYuFUB7P6pfeiNA3aAQJu28UrwXoqbQH5GLjl4u4eklzWS/0HeHh84Qokf/A/gxMOYw== 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 BN7PR11MB2595.namprd11.prod.outlook.com (2603:10b6:406:b1::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.12; Fri, 11 Feb 2022 13:32:22 +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; Fri, 11 Feb 2022 13:32:22 +0000 Message-ID: <99c06afb-de90-3465-c4ac-51238cc9ecb8@intel.com> Date: Fri, 11 Feb 2022 13:32:16 +0000 Subject: Re: [PATCH v4] net/af_xdp: re-enable secondary process support Content-Language: en-US To: Stephen Hemminger , Ciara Loftus CC: , References: <20220208134800.52142-1-ciara.loftus@intel.com> <20220209094808.41464-1-ciara.loftus@intel.com> <20220209072946.7cc709ff@hermes.local> From: Ferruh Yigit X-User: ferruhy In-Reply-To: <20220209072946.7cc709ff@hermes.local> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0148.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:188::9) 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: d2b403af-8922-4ed5-2956-08d9ed62ef19 X-MS-TrafficTypeDiagnostic: BN7PR11MB2595:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1002; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cbzWPSRfd5JNFAmN+Tc1Gl/OSdxqnnqjdkwlHh1AzcnqIS15QJ63zQiOSibJKtQ1JmNN6NZsnV1/OWE5AnYGkR9jSOtuou6sUpZrd29sLyLh4z81CpHBy724eGbffNtEK0kJKKZfOkegGcYVugyFSMHCIS/lbOLw+YmB0/2fFR8Wsx74TGFESkfkQH4G3drKEM/n2KAnsIejTyLjBuQVdDTt9eXtQgP204J/o92x5VrS7VZrffqRntJ7A6n+CB+DqY7Rb52Txyrf+kfadjZ0LhVsFFjj4fp3R4/YqyYsbLfqFvOZ5ZvyRiIo7BhR/8O5kcuFM+jpfjhQ6tqM6VIIGEgBFDc7oyXNk7nDNaPpsHjxKQbpi7lPnaEpIACy5NaRJZVmkMtH77tnYe1wH/+LN3qFrMS1cdClDBWBtS+N47pP+Cl5V6eBkfmz7LtpRRHAUSm6b8ovxJF3+Mhup/UzRw7aoV5t9BwRtMFerkpqkjzKRONUaFPQD/xeg3gjj6H7O3XGWv80EmLSUqeVMhYcxhIuNrcaC00kitDIGN+AzOMn7v95gjUeBLafTJ+XMKohkHko245bjjDvSTsQl6xfp4hdIf9/PmwuOyYdgkT6uj3d880x/aEsA5hjyeZMUH8ykWACUeHgNWo9UO1+0aXqQsQY2jri/WlDcAodqg4q9rWWunJK4pr89XZGcaXkqVWskH3AYnQNKKNQVvo5AVI7Qg== 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)(6506007)(55236004)(53546011)(2906002)(5660300002)(82960400001)(31696002)(6666004)(316002)(6486002)(44832011)(6636002)(86362001)(508600001)(8936002)(4744005)(31686004)(26005)(107886003)(66946007)(66556008)(36756003)(66476007)(83380400001)(38100700002)(186003)(110136005)(4326008)(8676002)(6512007)(2616005)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VW9SVjBmcysrWklIcGQ0UkViUnFNaXJXTGRzQlVDbHVqU2xBMnNybHNFeEo1?= =?utf-8?B?cVE1WDl2TlJRbUR5cmJaVkVQV2hLanVjU0xLMFFnUzZJdGxtSTM2SlRvdStw?= =?utf-8?B?WkhTL1ZQV1hKWWIxV1Z1bmhVVXlTMGtnZVo1aTNHRk1RbGdBbUFrclI4R1N6?= =?utf-8?B?OS9jUXliZEVWMlZ6OUJReGFPVGZ0OHEybGlTR2UwMlRRMmtxdlpJWTNtRGNQ?= =?utf-8?B?YlplVmE0NGhjNVRzZDRjQWZtZUs5TTVKbUFmQmRsald5d2hOa2ZhOEZTWDRs?= =?utf-8?B?Y2R0ZGZHZlBia3JzM2oyN05TSjJQbWlEYmZ3ZUN1VzF5Qk83RlBYYzVGS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3VvQVRRTUg3UE1CRFgxTzVDaEZLSU5TUE0rMnJXWTZH?= =?utf-8?Q?BckWBdhADdYpExkyZu+HoaA=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: d2b403af-8922-4ed5-2956-08d9ed62ef19 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Feb 2022 13:32:22.6116 (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: Oey4D3LdqJFLZ5n/iH/tIRhjEl7jbpgwPDo4YhonUmkLOv+1jFMO5J+TmSM6fAWZ0BrCzhlQ6HymF4w/TWxe0w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR11MB2595 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 3:29 PM, Stephen Hemminger wrote: > On Wed, 9 Feb 2022 09:48:08 +0000 > 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 > > Acked-by: Stephen Hemminger Applied to dpdk-next-net/main, thanks.