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 679F7A0352; Tue, 8 Feb 2022 19:56:35 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 277CA4114D; Tue, 8 Feb 2022 19:56:35 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 2683841147 for ; Tue, 8 Feb 2022 19:56:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644346594; x=1675882594; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=8SR8sB8q5qHYBT6eSetbgT/jgdNCN36pTJMe/xLKD5U=; b=NidVjOXymSYSVT4D8KZAu7iwpAYzDXxHZr2e20m0qWGQCWuLsMMi2rgW Y6Es9j/YyoSHKRxMKJpHaj6t+jepzXtLsFlQzuKv2azLKjrYirZiTk5GB ESM4SIuLEomqVnssMlnliIhUbF6ly9DyUMU0c5W8hgxGZzX3ugdEvivaZ RwaG5rGPeDR1UhOPI4GGGcA+uvEvoIPe1u1Ku/djW8wpc0DbFITa3lwG4 CuGhFKKNJAwaYFFS+woaMPHrZhZ/MqCUnCXuikgelFIRWsc3kDiFUzPza NvT9Ekn+2YNNdIqSBLkbGboprb7Jra1keBDDBiB9Ed4n4MvmX5aj2Qi4f g==; X-IronPort-AV: E=McAfee;i="6200,9189,10252"; a="236432660" X-IronPort-AV: E=Sophos;i="5.88,353,1635231600"; d="scan'208";a="236432660" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2022 10:56:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,353,1635231600"; d="scan'208";a="484917149" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga006.jf.intel.com with ESMTP; 08 Feb 2022 10:56:33 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Tue, 8 Feb 2022 10:56:32 -0800 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) 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.2308.20; Tue, 8 Feb 2022 10:56:32 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) 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; Tue, 8 Feb 2022 10:56:32 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.173) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Tue, 8 Feb 2022 10:56:31 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UjV4KovkAZ5B5uvV3STm7DO2U3/F2RheHOiOmXQD41mYpgoluYJ/tsOBntZMOw31QCDZ7nRsl0kX54kwSfNfkpnNGKoRbb80Y/ZWNbzWmExPh+K1SLotHcHK9NJquMVzCgOhRETlGnwcuczrcE63hU9utVqZH70+U+UfCmkOT7f5etE1RwEz7af96WZiB+gdu8uxfj9xeAnPjD7R9tGIGzimPQAVkXCZpVq6qCP3SJ9YtkNtpxNiXH9Yp7UsONTMeNuH3S1GrwDhBQeg961k5ZokyOKL5rdgS9ZlWPYg7dsJ422eKhmZH7vGfdkQAQbvf+6Y7K84RYurrdy3CPwQeQ== 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=PahNQi2lSq0ZI9tKpCb+s/zi045ij4tOvyzQJsdH6p4=; b=NHbJDKIaTGxyzRu2TeoptGHqc6daehUJz0BE7BouztfJ+TSTa2RjMio0/zjdZxfGCcdHSEoBS0vuGRc/VBQN0aQecVKIZWEdp8ySLJdfPptVMvCYwx2/+w/3LQL7kHQidt1nNnRzC3dcPN1y8iF0phNrDUNzaHqoGP/mYHQXN6a7srN8V6JYb4Vk27oc3jekRcwZR+0cBzS1QKI4T3x2H3mzHTmZBYgneQJZySf2Uksn+0rEqz5TLTK6/ogGE4t6Hd+IZ9fBvahEqNq8p8sQ+FJD0k57LnKEki5Iw8bPwWCAcochUvDS3vCIKx2SlfEen5hHzOKEoRtu3xbZ+vvS7A== 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 DM6PR11MB3916.namprd11.prod.outlook.com (2603:10b6:5:5::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12; Tue, 8 Feb 2022 18:56:23 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::5046:8550:928d:850e]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::5046:8550:928d:850e%7]) with mapi id 15.20.4951.019; Tue, 8 Feb 2022 18:56:23 +0000 Message-ID: <8111a253-5eb9-2925-1c17-e37a68381527@intel.com> Date: Tue, 8 Feb 2022 18:56:16 +0000 Subject: Re: [PATCH v3] net/af_xdp: re-enable secondary process support Content-Language: en-US To: Stephen Hemminger CC: Ciara Loftus , , References: <20220204125436.30397-1-ciara.loftus@intel.com> <20220208134800.52142-1-ciara.loftus@intel.com> <20220208094557.1fd90122@hermes.local> <6e2bbf05-102f-f84d-cc51-3663dc270015@intel.com> <20220208104201.6afef73b@hermes.local> From: Ferruh Yigit X-User: ferruhy In-Reply-To: <20220208104201.6afef73b@hermes.local> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0411.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a0::15) 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: 926cb3dc-2e52-46f3-79b3-08d9eb34b334 X-MS-TrafficTypeDiagnostic: DM6PR11MB3916:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EX65U6exjRVP0GSocKBwypI4dvsj+LStl9N876pdDEFHw844kk/1LkQC3/Ozzks6h9AVN0KeG+FRAAPaZb5z/95l5P53CXkS3w18w/k/YKxWSBxO2nwtIR4+QHglH42GNaygkmnXD6qu2J5enpE116SxIwvW7u2SpYrbDPB/QlzEkfWW9TvsbCP/iKQyUGOs3Wtvb+T/GHROlqUytaEmQmiMROJAttNA6acx+B57gVPAE1FjAIVwfCQ5og4een3CcZyADZ/fIAmN/P7blpIVNjGtS+/yjg1xEaNCcJV8tk92bLNg9C6EMQoXxcsnpAbLNgKEQCVfaCME5alw+QxQNS/x9SWCwViRc0xfHXOwPpu3jrUjB74/crnn8G4u3XDP/qDg4k13DSENP2iEqNza/wxOG1qBujfWZ8FjH6PqWkVuDjeP0dyORHUb8uL/HuKp6kFII1eKDxM1hv7akPxsxWP1Xhqk/NGiwT+UQe3cjquuIsb5axwqtcTxeUX/A68IwlWh74a+/3tB08n2iwdd2QIy0E3y5cxo+H3wNAbeOMbsFqir/fnh43C7LHKMfwYQ4BttumCFwy3Bhu5W4ILUsjQKMsIQxIs9XLX6Pt39SKNgdJ1+1WmJwWNZfHsU7aXfPm9Ji4ttF3vuu4zRNh822UQDiiYqlFwJO+vHSKw/uQ9W2KZt4jgO8W9C7/S0TeDu9NXjlQtRqFgfX5Vj5sXxZg== 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)(4326008)(66946007)(107886003)(66476007)(31686004)(8936002)(8676002)(5660300002)(316002)(6916009)(508600001)(2906002)(86362001)(66556008)(31696002)(38100700002)(26005)(36756003)(2616005)(82960400001)(186003)(83380400001)(6666004)(6512007)(6506007)(55236004)(53546011)(44832011)(6486002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?T1lnZGsrWDNLSm9BUDE4RUJGRGFmMzZGSFREOGtDaWo0MVNwc1RTd0ZXaElF?= =?utf-8?B?ZFcvVGZhRG9TY0IxZzhkZXZxL3Vlelk4ajNYb0hoNFVSWElJOTN4OXRDYjhW?= =?utf-8?B?RFZiUkRXU056SzUvVDY4eHZLbms2UTVZSG9ZdkthMCtQazVTT0tGMVV4eU9G?= =?utf-8?B?OElyRmJ1MDBpU0pvMG1VTjhPVE00alVCUmdWWHZhYkpuREdaRnc0c0h5MU14?= =?utf-8?B?TERwRTB6NGkvdFZYMlN2NW1LUHo2UWhmVlJUUFVybUtHKzRTSHlqZjRIRjVo?= =?utf-8?B?eGZBYnd0OEpHNEpBTlZFcEhza2laY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UEyWmty?= =?utf-8?B?ckhScHhDK0dtNURSM3NJQ2Q3TURpVUVJV2lxVlpLM2YySkRVYjFDcDMxNCtN?= =?utf-8?Q?2PMheSzs0pwlyZLF/D7aPYo=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 926cb3dc-2e52-46f3-79b3-08d9eb34b334 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2022 18:56:22.9835 (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: x2XwZlzddgZOHbYEVQwv+w6remFs4VldLqWhhRGBBTzX8oOOkk7lwrqXYfe0Wj6SNaZv8I4ZrU5p6QCGvXcjdA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB3916 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/8/2022 6:42 PM, Stephen Hemminger wrote: > On Tue, 8 Feb 2022 18:00:27 +0000 > Ferruh Yigit wrote: > >> On 2/8/2022 5:45 PM, Stephen Hemminger wrote: >>> On Tue, 8 Feb 2022 13:48:00 +0000 >>> Ciara Loftus wrote: >>> >>>> +- **Secondary Processes** >>>> + >>>> + Rx and Tx are not supported for secondary processes due to the single-producer >>>> + single-consumer nature of the AF_XDP rings. However other operations including >>>> + statistics retrieval are permitted. >>>> + The maximum number of queues permitted for PMDs operating in this model is 8 >>>> + as this is the maximum number of fds that can be sent through the IPC APIs as >>>> + defined by RTE_MP_MAX_FD_NUM. >>>> + >>> >>> This seems like a restriction that is true for most devices in DPDK. >>> Most other devices also have restriction that on queues; >>> the hardware descriptor ring can only be used by one thread at a time. >>> Is this different with AF_XDP? >> >> I asked the same on v2 :) and Ciara explained the reason, it is on v2 discussion thread. > > The wording of the message is what confused me. > It would be better to change: > due to the single-producer single-consumer nature of the AF_XDP rings > to > due to memory mapping of the AF_XDP rings being assigned by the kernel > in the primary process only. +1