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 BC445A034C; Tue, 18 Jan 2022 16:52:06 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 950CC42729; Tue, 18 Jan 2022 16:52:06 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 4A9394068E for ; Tue, 18 Jan 2022 16:52:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642521125; x=1674057125; h=message-id:date:to:cc:references:from:subject: in-reply-to:content-transfer-encoding:mime-version; bh=TOCmZnPcriJOAB6yJy3wFMTdltYxq49568I268bKHY0=; b=ls85yp2VGcL7Zp6sNeYbvgP8aVqu8yRJulRXMZ4gTp5A3xwbBTlBf2Jz KPyn7N+pEf8qnajUt4ezcWNpYHdHNeR7r895QICJToBtbp8khTSEe2ZGY 6f5vNyCkd/mRe5RJ9omJ8077HPYiLMm9+skXCApG6Kt6Pabe+OYxll2zV 1kfwPk+PuONu5C8XXPGgNgcHcP4jnm/4D/78MiRjEUG2Z7q1ei3SQ6KI7 wKtNqtLvrrzjDVz9wCoiy70zJphYpDRyiOBkMeNW+yj4n0rhwYXx3qZAD QV2xrKdu8pKp/RlASPXPiO52+tUmtdcGwKAi2ZRiEP29LkdM7k/kYX3Ei A==; X-IronPort-AV: E=McAfee;i="6200,9189,10230"; a="305576665" X-IronPort-AV: E=Sophos;i="5.88,297,1635231600"; d="scan'208";a="305576665" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2022 07:52:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,297,1635231600"; d="scan'208";a="477020653" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga006.jf.intel.com with ESMTP; 18 Jan 2022 07:52:04 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Tue, 18 Jan 2022 07:52:03 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Tue, 18 Jan 2022 07:52:03 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx611.amr.corp.intel.com (10.22.229.24) 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, 18 Jan 2022 07:52:03 -0800 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.44) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Tue, 18 Jan 2022 07:52:02 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F6GGARegDXCtaNCUtEn4cv6gSQK2TgG1GU+bzPnuOCXCvqFRxNj10Ituispxdg5ZYEVEWapMiBoGBq7BZz2lJ3MilcgGhcYYbBHlmTSuFtg+clvXEm926FCd1Mu+1ISC55nZHrtOmTJR6YUWnJU1V/8Jqhuxr/5r3eZgTBx3+l0p5lY2NTownLupqsu+6EzvihI3L8pDHXhXpi3jYGsWdmunzna0IgrWnZyneQ9kHgt6Ifn3YvV/y+m0fdjaNk++jF2OQmYe1YLkJIGvq1brAqAEB5NDunHKrtCjHOdCB2lDvY6ex1RLgQkSMNWXZEi7DHi1ud/71ZHwWTI09BYNGQ== 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=ahoBiBScPtOmCrCNCdxbII4qnDyAmc/PPTdsa3fPHhs=; b=LPV3YAerLa4ILAWOCdM2nv479nlEWIAQ1do35En4Gsa+VxRsl+ONlYzDrY1Y74+ZIKjp27wL4OdmWMR/CDZI7qRsnVGkWMlKcF+b6hkK9PEcEHfDMEPbCEW86KF4z09aIbnmn1p9bhDTwETmhrWMyueKBrRzOS4FoNjrovutQyqFbOyjmqiSTtti3JMbT6tPuqcT5iWaLUHs622gbtcNOm7iUbFhcWHYEYCxZZQYdUb1UBqsDXcggdORX4BemJEPDRDM5Xn5mJQf0hALD5/3umPmIyvZN2Ub54cZzxKwR5U3Upi257J93QiQ7HTsiejpup6XlYjZCWgUGLtjJ467ow== 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 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 DM5PR11MB1804.namprd11.prod.outlook.com (2603:10b6:3:114::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.11; Tue, 18 Jan 2022 15:52:00 +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.4888.014; Tue, 18 Jan 2022 15:51:59 +0000 Message-ID: <996c2239-1a3f-2fbd-d8af-40c3e17f375a@intel.com> Date: Tue, 18 Jan 2022 15:51:53 +0000 Content-Language: en-US To: Feifei Wang , =?UTF-8?Q?Morten_Br=c3=b8rup?= CC: "dev@dpdk.org" , nd , Thomas Monjalon , Andrew Rybchenko , "Qi Zhang" , Beilei Xing References: <20211224164613.32569-1-feifei.wang2@arm.com> <98CBD80474FA8B44BF855DF32C47DC35D86DAF@smartserver.smartshare.dk> From: Ferruh Yigit Subject: =?UTF-8?B?UmU6IOWbnuWkjTogW1JGQyBQQVRDSCB2MSAwLzRdIERpcmVjdCByZS1h?= =?UTF-8?Q?rming_of_buffers_on_receive_side?= X-User: ferruhy In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO2P265CA0088.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:8::28) 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: 2dcb34e0-4306-46ef-dd06-08d9da9a7629 X-MS-TrafficTypeDiagnostic: DM5PR11MB1804:EE_ X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr 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: 8xxIhneojrT08qEmrPweyiCCJarftu4lq8IvL2H6SNWIgUQea9zqns1VkMrlKIDizkhUltLE4X+gwBdmMa7UebmrZKWt/f/a9/NIGIWgtK2zSJb8vj4PNCHdG1UEj1PlIlSz68uGEWmoyZsWnZhvnjwDfr0OuIPu3kOkvc/9ozl9MmFhE1dNqqYLJTS81p/F/biBFPmmofJmf8vhval7MonPUFAbjYmuLIvwh2Rqt4cvshkvtGOnW5VCJC55y137l7pXKPVC9Oj19Dz81EP5O/3bQ2LjzqjDaQN0+WJp5ZnGVoal3H2U+H/NFfrRm6AFAbSk5F5yFXU/41SjYTS/Z8Hl1wClnowljenFs/3fSCMmaOxPKnmqraJ1z8yP8x72QdTvN5y7/VKMsvaLG572DZI4n4I1AOmZd4vLEnzo9KKMYvdEcHsBXd5hWdzhqJJ5Oo7kWUTzx9/bu2X4Sfho0KQEyM7UrX0ZjCl2UPg12nHegQWsEKGblMcW9EVEVTxdEHSFDzDopKAJG8F0l1TusWLu54DxZ4LEbp7GogLhe1pRrAofZCCnkivNookoej0FgVj9i8d1+FYPH3ZWAwv/WJ8UKeMYDVARNIQOf3hnnL2F+ssAfNZ8sbBL2DTQUEoZghz7WLsj5rSD7PuzhHRLdaCv2IxL1vXAPH88aR+zMWKkcslCf6I+8vZdLeZqYtgsYFBpaSi8+t2vbruSRdKSUb0zx24uUBXtemhhwH1GSZZH3akkB1ZhDkiAvPV9R5phJ2CcvnQG9JpjdSwr66kfeyAQ88f77jbJfInlxfCtqqgHyPgdxpG6mzsIPWhyQQ0lbuLxZJqZ0jWx2W8tooXIVXkgF0XBkHKz+MXaJMRg9vM= 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:(366004)(83380400001)(8936002)(6666004)(31686004)(26005)(66556008)(53546011)(66476007)(31696002)(6506007)(66946007)(224303003)(107886003)(38100700002)(66574015)(966005)(5660300002)(4326008)(44832011)(110136005)(508600001)(316002)(54906003)(6486002)(2906002)(36756003)(86362001)(2616005)(186003)(82960400001)(6512007)(45980500001)(473944003)(414714003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Y3NFQ1VoQmYxMC9lNzk5SFUyZm5NNWJPL0NIYmE2SFkxYU5hUlp0cThvN24w?= =?utf-8?B?OHd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XK3ptbzlxWU95T1Y1?= =?utf-8?B?UDVSaGc3aGlhQlhVNmgyc01LdWpKVFl0azcxQ0dhVzJJS3luaEN6TTVxbGxt?= =?utf-8?B?ZXQzVjJSbitqK2w2ZmdIWm9IK2Zsa0FNM0JFcEVPclNTRWlJcjcxcUlDWVNC?= =?utf-8?B?QjBWa3NWbStKN1F6bUY4cDJ1V3JGMG9oUjdUZ1ZsVkxCSkZxeUd3Y0lTODJC?= =?utf-8?B?aHVob2pibDZLRWViSDN5bzdiS2hLM01QWjh0V3ozZ3phNnZ5YldXTFRCN2RY?= =?utf-8?B?Z0l4Q2pCRGdVSkwwSjMrMzJQTmJlcmlmNWh3d2pkandaT25WQW1EMzN2eVBO?= =?utf-8?Q?NXgf9A8sS0V0n2zOTLGYFck=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 2dcb34e0-4306-46ef-dd06-08d9da9a7629 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2022 15:51:59.4751 (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: S3WOMQ7TW+TM0DExyGlyyXyAWy9Zl7pLhgt2OOQp1Xxt1ESkpXzAaoM9JxaKqDR+C357fy8QXZW4yS5IDb/85Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB1804 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 12/28/2021 6:55 AM, Feifei Wang wrote: > Thanks for your comments. > >> -----邮件原件----- >> 发件人: Morten Brørup >> 发送时间: Sunday, December 26, 2021 6:25 PM >> 收件人: Feifei Wang >> 抄送: dev@dpdk.org; nd >> 主题: RE: [RFC PATCH v1 0/4] Direct re-arming of buffers on receive side >> >>> From: Feifei Wang [mailto:feifei.wang2@arm.com] >>> Sent: Friday, 24 December 2021 17.46 >>> >>> Currently, the transmit side frees the buffers into the lcore cache >>> and the receive side allocates buffers from the lcore cache. The >>> transmit side typically frees 32 buffers resulting in 32*8=256B of >>> stores to lcore cache. The receive side allocates 32 buffers and >>> stores them in the receive side software ring, resulting in 32*8=256B >>> of stores and 256B of load from the lcore cache. >>> >>> This patch proposes a mechanism to avoid freeing to/allocating from >>> the lcore cache. i.e. the receive side will free the buffers from >>> transmit side directly into it's software ring. This will avoid the >>> 256B of loads and stores introduced by the lcore cache. It also frees >>> up the cache lines used by the lcore cache. >>> >>> However, this solution poses several constraint: >>> >>> 1)The receive queue needs to know which transmit queue it should take >>> the buffers from. The application logic decides which transmit port to >>> use to send out the packets. In many use cases the NIC might have a >>> single port ([1], [2], [3]), in which case a given transmit queue is >>> always mapped to a single receive queue (1:1 Rx queue: Tx queue). This >>> is easy to configure. >>> >>> If the NIC has 2 ports (there are several references), then we will >>> have >>> 1:2 (RX queue: TX queue) mapping which is still easy to configure. >>> However, if this is generalized to 'N' ports, the configuration can be >>> long. More over the PMD would have to scan a list of transmit queues >>> to pull the buffers from. >> >> I disagree with the description of this constraint. >> >> As I understand it, it doesn't matter now many ports or queues are in a NIC >> or system. >> >> The constraint is more narrow: >> >> This patch requires that all packets ingressing on some port/queue must >> egress on the specific port/queue that it has been configured to ream its >> buffers from. I.e. an application cannot route packets between multiple >> ports with this patch. > > First, I agree with that direct-rearm mode is suitable for the case that > user should know the direction of the flow in advance and map rx/tx with > each other. It is not suitable for the normal packet random route case. > > Second, our proposed two cases: one port NIC and two port NIC means the > direction of flow is determined. Furthermore, for two port NIC, there maybe two > flow directions: from port 0 to port 1, or from port 0 to port 0. Thus we need to have > 1:2 (Rx queue : Tx queue) mapping. > > At last, maybe we can change our description as follows: > "The first constraint is that user should know the direction of the flow in advance, > and based on this, user needs to map the Rx and Tx queues according to the flow direction: > For example, if the NIC just has one port > ...... > Or if the NIC have two ports > ......." > >> >>> >>> 2)The other factor that needs to be considered is 'run-to-completion' >>> vs >>> 'pipeline' models. In the run-to-completion model, the receive side >>> and the transmit side are running on the same lcore serially. In the >>> pipeline model. The receive side and transmit side might be running on >>> different lcores in parallel. This requires locking. This is not >>> supported at this point. >>> >>> 3)Tx and Rx buffers must be from the same mempool. And we also must >>> ensure Tx buffer free number is equal to Rx buffer free number: >>> (txq->tx_rs_thresh == RTE_I40E_RXQ_REARM_THRESH) Thus, 'tx_next_dd' >>> can be updated correctly in direct-rearm mode. This is due to >>> tx_next_dd is a variable to compute tx sw-ring free location. >>> Its value will be one more round than the position where next time >>> free starts. >>> >> >> You are missing the fourth constraint: >> >> 4) The application must transmit all received packets immediately, i.e. QoS >> queueing and similar is prohibited. >> > > You are right and this is indeed one of the limitations. > >>> Current status in this RFC: >>> 1)An API is added to allow for mapping a TX queue to a RX queue. >>> Currently it supports 1:1 mapping. >>> 2)The i40e driver is changed to do the direct re-arm of the receive >>> side. >>> 3)L3fwd application is hacked to do the mapping for the following >>> command: >>> one core two flows case: >>> $./examples/dpdk-l3fwd -n 4 -l 1 -a 0001:01:00.0 -a 0001:01:00.1 >>> -- -p 0x3 -P --config='(0,0,1),(1,0,1)' >>> where: >>> Port 0 Rx queue 0 is mapped to Port 1 Tx queue 0 >>> Port 1 Rx queue 0 is mapped to Port 0 Tx queue 0 >>> >>> Testing status: >>> 1)Tested L3fwd with the above command: >>> The testing results for L3fwd are as follows: >>> ------------------------------------------------------------------- >>> N1SDP: >>> Base performance(with this patch) with direct re-arm mode enabled >>> 0% +14.1% >>> >>> Ampere Altra: >>> Base performance(with this patch) with direct re-arm mode enabled >>> 0% +17.1% >>> ------------------------------------------------------------------- >>> This patch can not affect performance of normal mode, and if enable >>> direct-rearm mode, performance can be improved by 14% - 17% in n1sdp >>> and ampera-altra. >>> >>> Feedback requested: >>> 1) Has anyone done any similar experiments, any lessons learnt? >>> 2) Feedback on API >>> >>> Next steps: >>> 1) Update the code for supporting 1:N(Rx : TX) mapping >>> 2) Automate the configuration in L3fwd sample application >>> >>> Reference: >>> [1] https://store.nvidia.com/en- >>> us/networking/store/product/MCX623105AN- >>> >> CDAT/NVIDIAMCX623105ANCDATConnectX6DxENAdapterCard100GbECrypt >> oDisabled >>> / [2] >>> https://www.intel.com/content/www/us/en/products/sku/192561/intel- >>> ethernet-network-adapter-e810cqda1/specifications.html >>> [3] https://www.broadcom.com/products/ethernet- >> connectivity/network- >>> adapters/100gb-nic-ocp/n1100g >>> >>> Feifei Wang (4): >>> net/i40e: enable direct re-arm mode >>> ethdev: add API for direct re-arm mode >>> net/i40e: add direct re-arm mode internal API >>> examples/l3fwd: give an example for direct rearm mode >>> >>> drivers/net/i40e/i40e_ethdev.c | 34 ++++++ >>> drivers/net/i40e/i40e_rxtx.h | 4 + >>> drivers/net/i40e/i40e_rxtx_vec_neon.c | 149 >> +++++++++++++++++++++++++- >>> examples/l3fwd/main.c | 3 + >>> lib/ethdev/ethdev_driver.h | 15 +++ >>> lib/ethdev/rte_ethdev.c | 14 +++ >>> lib/ethdev/rte_ethdev.h | 31 ++++++ >>> lib/ethdev/version.map | 3 + >>> 8 files changed, 251 insertions(+), 2 deletions(-) >>> >>> -- >>> 2.25.1 >>> >> >> The patch provides a significant performance improvement, but I am >> wondering if any real world applications exist that would use this. Only a >> "router on a stick" (i.e. a single-port router) comes to my mind, and that is >> probably sufficient to call it useful in the real world. Do you have any other >> examples to support the usefulness of this patch? >> > One case I have is about network security. For network firewall, all packets need > to ingress on the specified port and egress on the specified port to do packet filtering. > In this case, we can know flow direction in advance. > I also have some concerns on how useful this API will be in real life, and does the use case worth the complexity it brings. And it looks too much low level detail for the application. cc'ed a few more folks for comment. >> Anyway, the patch doesn't do any harm if unused, and the only performance >> cost is the "if (rxq->direct_rxrearm_enable)" branch in the Ethdev driver. So I >> don't oppose to it. >> >