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 B0DACA00C2; Thu, 10 Feb 2022 09:56:36 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A26F340140; Thu, 10 Feb 2022 09:56:36 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 3D86540041 for ; Thu, 10 Feb 2022 09:56:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644483395; x=1676019395; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=DB6B6RqA3WvlNCG3BvAFJhGLQV8pLuMaQcWM++YSgWA=; b=BJ7bN234odwQEjFy/ye3OZzvOI2QG/KdqJlq8cjrzro3PEIt2lVtcalY ci/eOzJiMuvkmg9BbKjUyN0oZKRogJdK8o7xt0FftGuYlNmUGzMu7cXMO Ra22DU+8aaUz0SYobVCaaP54wp4YxCvnxJAVhAzNnG3XKchJLnPDVmPHN MwToPRtnitTRCDsShdhB0KqRPY6Ryh0YMHAScKce/dhRuyyfF6M9XE/L5 ciOEGuJUVLYs/n+52NmB2A3rodynCf38mBfX0ZSqxY2PwZaSI3v5iWYwH YXYI0CxT3wQQawZ9KnhBlNE7Hq0vwo8zcsk2rdj62dvRFzOflTeI79cWT g==; X-IronPort-AV: E=McAfee;i="6200,9189,10253"; a="249390849" X-IronPort-AV: E=Sophos;i="5.88,358,1635231600"; d="scan'208";a="249390849" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 00:56:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,358,1635231600"; d="scan'208";a="541520991" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by orsmga008.jf.intel.com with ESMTP; 10 Feb 2022 00:56:34 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) 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; Thu, 10 Feb 2022 00:56:33 -0800 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) 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; Thu, 10 Feb 2022 00:56:33 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) 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 via Frontend Transport; Thu, 10 Feb 2022 00:56:33 -0800 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.108) by edgegateway.intel.com (192.55.55.70) 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 00:56:32 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RVPko7uBgzRP0SPXrEGdp5AL/JVdVnHzYxofMcrpvoDmb6zFsAmGh3nEaPjEsEcJr3fS5y8FCyqWpSAJcYZdpbbxXRWDl67tJy8MTxnBg6gSm92LjI8KhPVADJf0o26qjJNLY5z0BwIxni1j6yQjGjPH2N4uBWt7uRbTbDYeBBKvQ0U3OhiPVF4nz4Vc3qtaQcKAE5K6B+dLQmwFTnQogm3WYlTqFkaOXpLcborMg4k/iMV5BRFH872V22RrMK8gxL6vBnPzTlUHjg2o/M0rz1SOHKgja9newPeJk5PNPc4VXcPHZ558mPWusSnFIG4qSzOlx307UuXwSqSMX+plBw== 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=dYTCm6FpCz5r+nSwPBNlENWR4uC34/gl8m1rqAc/SPo=; b=lVIYWWrp3sbWl7FsNMXrR1jAIlgLsFCqf5TtYXSg4SeP0PdHIO3djEjCyv3HfdKArlNdUeWQzNlTAE5LFP6qHyuBDvWu5lbLTevyCZiBAt2NNBeE5XEaS0PZOYF63lE0uH+D3AHdLRnkYC5XHNjmlO1DnzlicrCKcvGOomcnWeVG4/XgskyfK4qDhKFcuremryKgLO7oVSe/3j3IgCvnLah3OHmRlqA8tmyCDiIusfKatFdW/+LCCw81GFJzZzICeaYvaKqpI9zPSt9WYBx2KXP8ytv+Q3jGeL4OeUW+PpswEkheC5hxpKl1u5+oos97OcxJmX/N/HHlmm1G0j0eIw== 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 DM6PR11MB3724.namprd11.prod.outlook.com (2603:10b6:5:13c::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12; Thu, 10 Feb 2022 08:56:31 +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 08:56:31 +0000 Message-ID: <7dccdaf8-10d0-69f2-2a91-791dde993cee@intel.com> Date: Thu, 10 Feb 2022 08:56:25 +0000 Subject: Re: Can I use rte_pktmbuf_chain to chain multiple mbuffs for calling only single tx_eth_burst API Content-Language: en-US To: Stephen Hemminger CC: Ansar Kannankattil , References: <20220209144617.79834bd6@hermes.local> From: Ferruh Yigit X-User: ferruhy In-Reply-To: <20220209144617.79834bd6@hermes.local> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: DB6PR07CA0168.eurprd07.prod.outlook.com (2603:10a6:6:43::22) 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: 8b495d32-f948-44da-ac6e-08d9ec733b4f X-MS-TrafficTypeDiagnostic: DM6PR11MB3724:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zS9Vvq6okXc+YR6Lo8AuUY4yr/8GNiNP2+YLA0/8tsnkPcN/fPizhyOSG47VL72jukLu9Qy30ZceI4i29N01e2kpjw0lmT5XmyRC1p/b13ZxmkVE5lDReN3ckH9keP7fc0rrewaLh+20r/VuvrewW2aH3eiVMU8Oy9h0xtDrBanJKSvPae8wTT4Cc53sBelBEC9qjnc4G+QD8awNwHWJCGYFrSVU+HC3fwFVsGFvSnQybuUQRMyNMfoIOL9c/TlvbidNTO5FyEFYoShGqklKKdsuzePIUt8wSY1m86fj7XmuImZ7eyvadRgjQqa93deR/gZb6O7K9db/zOWmT8aSGvZQgQ8sfulVG4p2TBK2WuFoTdFmOreGLo37J03RX4FnEcOXu2J3I76uKzE4NCL400KBkYchvC5cnhspydNv3r8mCPqHnf8f8ggyHo3XXsvX4JrKvQH06cpkVyrh7jSdIFCx/Gk/6GUoIglD6Wll9l25ZCrQheNc+CoUvSxYcHqQB34B+8PzBwv8mRac9yKXcz7oxANKH5ACOFB6FaOnOoQe5n5SnNjt2PYyZVCP1jl0ZKsWQXHCaGhubbBggrKzb9MOs7e+ZeFNuBDW3fuJbEyz+u0nSLEYEjsDveUHg19a7hjqa+LOQJQ7VajCOKE1DsubkTsTYleMOma53Uv0H0DZtCOKgPYhBUDdhUMgna3mZQHr7FoY98HgvJcIuggBxw== 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)(26005)(31686004)(6916009)(2616005)(55236004)(508600001)(36756003)(2906002)(316002)(186003)(82960400001)(6666004)(6486002)(5660300002)(8676002)(44832011)(6512007)(4326008)(66946007)(38100700002)(8936002)(6506007)(31696002)(53546011)(86362001)(66556008)(66476007)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UnNvRFo4YnVJZTluR1pyV1RTSFBhREsyZllqYkhmS3kyVEd3cnpXcXcrREdw?= =?utf-8?B?NFBST21hMit3R1RDdDBoaFppZ09hTVI0YXNwbE9LM3ZIT2FOQlhsQkVLd3Ja?= =?utf-8?B?eHlmSXovbDR3QnV3TGhkbzNmMEZ2NXBMOU9oQTA0OEZ3V3o4Nmh6SVdUWStR?= =?utf-8?B?ZHRKcXVRZnE0TDhJQ1Z3bFc5OXpvelBMNVJ4L0lrbG4ySnl0Mi9TRUZpMWY3?= =?utf-8?B?dGllMHZWdmk0TUJGd3ZQekIzZG5uUzZ4cXl1OW9DWUN1blpTZFBlU2MxbGl2?= =?utf-8?B?L0hTMkcxOVBCZk0vaGRiMUFpdXpybk03STNqbTdObzcycFYzeHBCRGxzVWpW?= =?utf-8?B?K21sdFc0eU83aFIwVzVUSFhrUDJTNTNQVjZnZ2RrUlllUWR1WEI0Tnczaytl?= =?utf-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ossTenant-Network-Message-Id: 8b495d32-f948-44da-ac6e-08d9ec733b4f X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2022 08:56:31.2762 (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: O2EzrygYb3iGeGvSQYV5ByUYQP38lABKzmN0m6GHjWG7bslTO/C1dGeRxTivQ5LeSP0Eo7IaHNt3uH2wc5MCBA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB3724 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 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.