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 2D29AA00C2; Thu, 10 Feb 2022 11:43:17 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F0EC840140; Thu, 10 Feb 2022 11:43:16 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 2C3994013F for ; Thu, 10 Feb 2022 11:43:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644489795; x=1676025795; h=message-id:date:to:cc:references:from:subject: in-reply-to:content-transfer-encoding:mime-version; bh=IRO5h1RSSzBI+B0b8cga/iQk2ySJDswI3bPYpvFSxzs=; b=gW8GAVEwi44tTKJpzKEpMJraiGjGRCBeOk6WxWQETvlS753hvap562zz DFfDe6U4TcI4sbwFOtYOfnv6ckODfQaNJ3eEKnjHKUmswwR8RwP9j+fkK CoFRyc/thqvRE0VdkY/RKFYfiaVdvhjahq99AJwQjlJn3Nix66my6nvWU jJuwhK18HFj+XRRMHNO8WDSAg9ATq5BsuDf5AoWA8L3z1c902mhQxqqje X1KC9lmxLuNtcHqNaWyrw470+NVQOa73iYyPl6qj9WHk8oHiflIgJ9udl IuhROxRfl/1DeSYDkh0gp+O37qTcUu1TOBrGySTqy+P7JFaw9jMxL2FCs g==; X-IronPort-AV: E=McAfee;i="6200,9189,10253"; a="248294836" X-IronPort-AV: E=Sophos;i="5.88,358,1635231600"; d="scan'208";a="248294836" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 02:43:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,358,1635231600"; d="scan'208";a="679104296" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga001.fm.intel.com with ESMTP; 10 Feb 2022 02:43:14 -0800 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) 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; Thu, 10 Feb 2022 02:43:13 -0800 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx607.amr.corp.intel.com (10.18.126.87) 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 02:43:13 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx601.amr.corp.intel.com (10.18.126.81) 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 02:43:13 -0800 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.100) 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; Thu, 10 Feb 2022 02:43:13 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=baRz2WrHc902CQUzihk+L2JKfEZknYknI5jm+ysiQnjPVmuTMyCQNWmwpNLbjUaJEKXwe/LKFS/0EmpjBMXjPX3OllxWqLEYx8YVKQXVYuRFMsfdAXgZocmk6NKL3+TJ/hwmXE0fySYA6I1+uXGSWwHGHF2ucL0x295rfUSFofHYdMi9UfgzHUBvzdbo6/9itBx/cTi4O0X50xsMxFR/OKUFdy/3J6lIEG6/rJ+h+whwdAZ7t7b8vTSRpR2588+ROGsa/j//g9jLQGQNT0T8kNuPzWMj9Nr4UsZj8ruiqHG8zCmgRdyerA9fDSdAL8sv7WzDrMyQN2Fcz9C/wZJp+g== 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=czsxMs0cLXBptDD9oFOZLWR0Quxw1M/ttUT1NO9qaYw=; b=SYyU33fRzIDgVNqO9kkYnqLFRhROOSXo3t3+1jKl1egWGyYc8IE6pkfr9wpsVy5fbsWnvV8q9SdvJ7rJw6uOQnPktOfc4BvocH4BXEk/Oh+xaiSu2Z8+T7RBBpfTQDPW5WRmUGqjzIGA3auZzWzl0gWcZCKQNsNjxhLmgbM224I3AHiSm8GggHLdAYBYRVS8FLqKDqa1pm+k1VNUr++BZ748316wQbKckDiOdY2iNgbP1ukSEdSjnF9cw3DgfCUgl/On/Dct6zqJTjMPHh18yFCAX5yT/UVYBXByXu+Xxv6AKOqTzD4d78HSew9iJkVs8yMO2OZf2VkRRHYdV9984g== 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 CO1PR11MB4802.namprd11.prod.outlook.com (2603:10b6:303:96::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.14; Thu, 10 Feb 2022 10:43:12 +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 10:43:12 +0000 Message-ID: <1a04cc13-8201-4c10-fcb0-bae86c18b4b3@intel.com> Date: Thu, 10 Feb 2022 10:43:03 +0000 Content-Language: en-US To: Ansar Kannankattil CC: Stephen Hemminger , References: <20220209144617.79834bd6@hermes.local> <7dccdaf8-10d0-69f2-2a91-791dde993cee@intel.com> From: Ferruh Yigit Subject: Re: Can I use rte_pktmbuf_chain to chain multiple mbuffs for calling only single tx_eth_burst API X-User: ferruhy In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO2P265CA0222.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:b::18) 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: 48d444d0-9f69-46ab-db0e-08d9ec8222a4 X-MS-TrafficTypeDiagnostic: CO1PR11MB4802:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3GSbdre+LVIfR72siRbcFyVopY+9r55kA6LGL81Gqe+sPzKowuqPiV128OSN/qmOjVlzzzfQWglalt1Inblr++v5uqnDEfYGZ/DNYXZ6dx/yklJ92AQSV/XtxYfbnYFkxNlu9+3Mk/x4rIYLTAJ1KSuCeZjIzgQZDbyGXOrzZ4eid+vE9Iin91juJWEsOK5hrvX28VjK+Ok12qAvep8QktUZnxPNSCtYfIu2Hg17oQiaobJ+/lt9XkphVTwzM1zvuqdZSvde4P7N9iRyC7hcb2Q7Dqs4QhnvhkceyormFbRbtZdRgcpXr4zrUn+o/0AzXCO0WBUDlm7wJ3dQTjAmV6YlYEJhS6MiCFxJt+7NCvSgg8hnN6ZJtVoSy7zijDCWftDsyXnJycXgo3M4EgOYz66FrEvJuPYCBUZ00YxCODXunh9IBSRNS+VHR1+YWOKZW+aA4wytCFrZqb8N+rqLFlTITY3/7w33HnduOiBDQPEe40AZbCOehfaWlYUUsHPa1FSSTvTgeL+gXVD5RIr8km2cTiWf3RMBAUbVadp7hb1xrQ3aj9zCpgFNj8wV2pxXdhI7xbU6DBY6cp/3igpAO9cHt7y9K0baUqqIQDkquT7RsATWY7sNGLDUd0AkVl0AHnGbOYBahJ48mJ+O0krYuVyD65FGWfV0Vd5itN20ZdQPxKP7EqzSyzgIb6p5j44nRqYjtRwFX5DnKcTg63W9Xg== 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)(6916009)(6512007)(2616005)(55236004)(66476007)(5660300002)(44832011)(6506007)(53546011)(2906002)(82960400001)(86362001)(6486002)(31696002)(6666004)(4326008)(83380400001)(8676002)(38100700002)(316002)(31686004)(8936002)(36756003)(26005)(186003)(66556008)(66946007)(508600001)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SC9CdnMwME1MYnN3WlpJZzVabWNaTjlmdGZ3bHRuUlVuUFUyQjRMeXVkbTNp?= =?utf-8?B?MXVHdG5TcXY0L1YxOUF4S0VYR2ZNbzk3OHFlV29Gd0hoMVhwUUhxTGVaYk44?= =?utf-8?B?RkFPNTRac1RNSm9QN1pOOXJYbWNQRUFhNWJPU1J4S3JpUVhZbG9DWTUyVmdO?= =?utf-8?B?eUhQdnIzbExONFJLSWt2UWFTSXpmNXMxaXNheXE3VmNVdFFpQjYwSURkUklG?= =?utf-8?B?Vmgrc29YUGdYQ1F1QUJ3bG5TMVdleEFJRStuSzZZbm43YjF6bVZvVHE0a0Jj?= =?utf-8?B?VlFaOTQ5L1V5d0QweHNZVXdjZ2dUWmVMbWt5Y1A1Z081UGIzdlF3V2MvQ205?= =?utf-8?B?ZElRendsUU9mTGIwWVFkTmVh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= =?utf-8?Q?dxadlqj8/anxPc+jUxZv0Ww=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 48d444d0-9f69-46ab-db0e-08d9ec8222a4 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2022 10:43:12.2953 (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: d7Qrszvrzkx5p3eEF5ozlzjPLyPb2uoEF4HOvo9eYhf2004ScybxGbaE0mY0hg7yYEzLCcHDsmynTpccUV9bdg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB4802 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 10:37 AM, Ansar Kannankattil wrote: moved down, please avoid top post > On Thu, Feb 10, 2022 at 2:26 PM Ferruh Yigit > wrote: > > On 2/9/2022 10:46 PM, Stephen Hemminger wrote: > > On Wed, 9 Feb 2022 22:18:24 +0000 > > Ferruh Yigit > wrote: > > > >> On 2/9/2022 6:03 PM, Ansar Kannankattil wrote: > >>> Hi > >>> My intention is to decrease the number of rte_tx_eth_burst calls, I know that mentioning nb_pkts will result in sending multiple packets in a single call. > >>> But providing nb_pkts=1 and posting a head mbuff having number of mbuffs linked with it will results sending multiple packets > >> > >> If driver supports, you can do it. > >> Driver should expose this capability via RTE_ETH_TX_OFFLOAD_MULTI_SEGS flag, > >> in 'dev_info->tx_offload_capa'. > >> > >>> If not, what is the use case of linking multiple mbuffs together > >> > >> It is also used in Rx path (again if driver supports). > > > > I think Ansar was asking about chaining multiple packets in one call to tx burst. > > The chaining in DPDK is to make a single packet out of multiple pieces (like writev). > > > > DPDK mbufs were based on original BSD concept. > > In BSD mbufs, mbuf has two linked lists. > >    BSD m->m_next pointer == DPDK m->next  for multiple parts of packet. > >    BSD m->m_nextpkt                       for next packet in queue > > > > There is no nextpkt in DPDK. > > Right, chaining mbufs is for segmented packets. > > > Thanks for the responses, > Then what is the advantage of chaining mbuffs over using the mbuff array? > If you have small packet buffer, mbufs can be chained to represent a big packet. Or scattered buffers can be used to represent a packet by chaining. Array is used to represent different packets.