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 4B3B0A00C2; Thu, 3 Nov 2022 13:16:24 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CC8894069B; Thu, 3 Nov 2022 13:16:23 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 60E6040694 for ; Thu, 3 Nov 2022 13:16:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667477781; x=1699013781; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=mjAz2Jy2ZxrbtcSMPHQxvkvAi2DzH29A4WjnHhfkVxw=; b=A0Qsk5vuEOcZ8QviBY67dQhipRaUHQXfxxrPLaNNfMng31CVWOQb8h1m gCpkOYHWqc8a32qNrqWtW1EQ8i9nt3G6Ss1ERC49nEnCPDbf7CWxLmwf7 764+RuM5zR9RZ2UfvUwZItG9MV5R/RKvzfYpgkIozSTgA7+koDyOQk+ro VuzPKoRwjTa5z1Wl3Nx91GzpKikskPGPxKs0KOB1u9pnTjxLeLW1wi3/Z X4+uDdQ7Stsma/r6bKBYDFNv4AnbHrYW5cyqQDfnw5lu91NVKyNrqwtvv kZ1vPbLhO/18QeHBLW/8dTAP4Axxlno55TUeVkXZUnodqdvU37VRH4wOf g==; X-IronPort-AV: E=McAfee;i="6500,9779,10519"; a="308382847" X-IronPort-AV: E=Sophos;i="5.95,235,1661842800"; d="scan'208";a="308382847" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2022 05:16:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10519"; a="777282453" X-IronPort-AV: E=Sophos;i="5.95,235,1661842800"; d="scan'208";a="777282453" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga001.fm.intel.com with ESMTP; 03 Nov 2022 05:16:11 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 3 Nov 2022 05:16:10 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 3 Nov 2022 05:16:08 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Thu, 3 Nov 2022 05:16:08 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.174) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Thu, 3 Nov 2022 05:15:48 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FpafF46qCayCIYEkIpSjhHBjoYDJc20h6p7BXNKaXRu8vPFT8wEpjqf93PqJErnE/Ho7sb5YEtXfs428ig5by+v5KCyV8tTPZKzYN0xocCoLiIJoMy2/6oc0/m16/7e02Nug+T6EAUJyE0xrBxtmA0Lh/IxVTDZMOs9+Ne6JpCpSRyDmIcmFA73ym1eZf7k8jMD3lAd7MaThtbVmUNur8g5g3wAkqtyhPw9NNm9l6wJqcAWEBvgdcnptozlmgx0VY1YiFalJnA+dxl+J/9MbMXO7br45QVC9BOATD3jSAQ2TXPUi6wAwCk7ohcY4SCzqivHq2mP85QCXRl66IhpceA== 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=VHbsuK/JzGRQfbJuX6c47Kv9yu9muhecnfdcdNuA2wQ=; b=BNxZZCsv7z650FDxra9x9/3JVhl6nogd6de0RyM4bDVJE5Lk6VEN912rmHrCMFT/b22id6QDeq3hBAX7OZ72Hyd+fG1EiID2HhkZxRpVKbphgvXNr147QGsyVHwEkJPGKw/ey1lvsdG/O3A1+pZO+AwxmFGNJIrB4mujXnaEGi2OdnXPSJ/NG76Lah5X7ZvzPsUHM9D0UoIHooTGPDZ6jJoQDgWerh6TnoEhuIOCeRGNa1E7b7h5s+B8/qiGH2+DENkl+SpMuvUBTDKPMNrRo6A6NAxznNrP2x1fqa8bVCqTyf/foduNAra2RMp33MV2wUqMXX1TMgSj2/pwKtpKRA== 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 MWHPR11MB0062.namprd11.prod.outlook.com (2603:10b6:301:67::34) by MW4PR11MB6716.namprd11.prod.outlook.com (2603:10b6:303:20d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.16; Thu, 3 Nov 2022 12:15:46 +0000 Received: from MWHPR11MB0062.namprd11.prod.outlook.com ([fe80::3ce4:6499:4578:7b93]) by MWHPR11MB0062.namprd11.prod.outlook.com ([fe80::3ce4:6499:4578:7b93%3]) with mapi id 15.20.5791.022; Thu, 3 Nov 2022 12:15:46 +0000 Message-ID: <0069f01b-afb0-aac2-7d63-adc7d55a6ba1@intel.com> Date: Thu, 3 Nov 2022 17:45:35 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH v11 1/1] app/testpmd: support multiple mbuf pools per Rx queue To: Hanumanth Pothula , Yuying Zhang CC: , , , , References: <20221024040757.2012432-1-hpothula@marvell.com> <20221025014005.2054913-1-hpothula@marvell.com> Content-Language: en-US From: "Singh, Aman Deep" In-Reply-To: <20221025014005.2054913-1-hpothula@marvell.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PN2PR01CA0232.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:eb::10) To MWHPR11MB0062.namprd11.prod.outlook.com (2603:10b6:301:67::34) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR11MB0062:EE_|MW4PR11MB6716:EE_ X-MS-Office365-Filtering-Correlation-Id: e7dbcd46-82b9-4806-a89f-08dabd95233c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ksQQ8dACTlp1vkRaflHYJySfY24vpOqmdlHxIH4rDDDmpLaCoC7jerunNrmmxw9PhPF2hlc1XYY3TaN4AUuNfm+BW0uaxix8W0rkQnITdBnYQ1LVKDteczwo7B+V22nRFLD9ALp9+RaZVai8PjtCfY8qPLy0PbexQ3kpfQtwz7XLOHZu0KEf8/+Tw+zn9mH0VzVuZIMpjE+N6MnFbf/6oQIlGkslKy+CCWcrdEXIWwNNTMgtNJc7+yJ0NHu7ABmCqPZ4aXFw/lDlWHhFdZ8fK0IE1K4T+pedw+YZVClWOkaW0289dYem36Z0+7LMHJtoCa2AdEqvAAbIkGpFsAkgYf0ncSQmdcgV9QCw9yIVJCV/8XlIDttRFIrKVn1TGnDKQoCfi9tf7kceAFzjRFk+dQum9XvZbDOQIzWWEEojUoCvFpyEZ/ESUY/RVDuEj+iYOzql7RlbdoHEGQUByayFUy3qkCp8gQw2QzQpaI8qgcyTuZwHDYnFkCRI7kpQ8C/5GTENHtPJEWcgbMJ61nzQYVYC05xL48Ek9yUzSMvWrQTCHreabijC953XmPgZXW5R4sj7G+E1fizKX1u+HGg0ozO2y4rZoLzDiTbC7BpmCEFiihoH+P9b7wB5chQXVAzp6Xdx6hBoB9yRFtr8RTUlMlOcuKXU+s3XlSbY4h/Kpy0yYmz8Xlmt0Ge3HV6v6HEzrhhsDEdrx4nzxtPlip9dlxs5//uhMmCbBDFXzSts2jMaff55MLy6KfQ9RLsqfM2lKK33CSGYWybfSwtyIaHZQ1EwoH0FmwalUXP7XhPPRP8= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR11MB0062.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(376002)(346002)(136003)(39860400002)(366004)(396003)(451199015)(8676002)(316002)(66556008)(6512007)(6636002)(66946007)(6666004)(38100700002)(186003)(110136005)(6506007)(53546011)(82960400001)(26005)(478600001)(36756003)(86362001)(66476007)(31696002)(6486002)(2616005)(4326008)(83380400001)(41300700001)(8936002)(31686004)(5660300002)(2906002)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MXB4Ti9hb1lEYkRvaUlaZFBlYnRUM2RITE1jdWREMWY3QjNvQW05RTRYa1dG?= =?utf-8?B?aE9NSHl4anh2ZExrdzVBaTgzSGhlYTF4elNUWDlhM2N2RnF2TXd0WHViNXRW?= =?utf-8?B?enFGNmFlbzdPTUdDVjdxdDJzcDVyUzdKS3NvZXIzRXBqcEgxWHRlUENxaz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pJT0pmSkZva3FIOFFxNDBoRUZFNHBRcWVuVGtyQ3ZY?= =?utf-8?B?MERabTVibWdzVEgzYXhaeUFTbFJVRjYzRnhUeUlIMlg2bVRhZzZGTFlJWGY0?= =?utf-8?B?eWF1TDE2STZmTnQ5MExkQWlMY0JNRmJnWjZYdjUrRDFwVGdKN2xzbHllb0tz?= =?utf-8?B?aEgxem82SzI4dmZ2ZVZRV0U1Mk4rckYvRG5Ddktua0tpYm9Fb0VFUCtWei9J?= =?utf-8?B?cEE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: e7dbcd46-82b9-4806-a89f-08dabd95233c X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB0062.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Nov 2022 12:15:46.6863 (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: X/nnstCIfEz5ufKGKROi1vD+74TQKbBc3qdaBNIMBTFPuYV+SdWnZdaDk2r9L7qh9bylZgQAPJoIQyzp8nQ3IBLFpeEAgVvytQiKM/dE/5Y= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR11MB6716 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 10/25/2022 7:10 AM, Hanumanth Pothula wrote: > Some of the HW has support for choosing memory pools based on > the packet's size. The pool sort capability allows PMD/NIC to > choose a memory pool based on the packet's length. > > On multiple mempool support enabled, populate mempool array > accordingly. Also, print pool name on which packet is received. > > Signed-off-by: Hanumanth Pothula > v11: > - Resolve compilation and warning. > v10: > - Populate multi-mempool array based on mbuf_data_size_n instead > of rx_pkt_nb_segs. > --- > app/test-pmd/testpmd.c | 63 +++++++++++++++++++++++++++--------------- > app/test-pmd/testpmd.h | 3 ++ > app/test-pmd/util.c | 4 +-- > 3 files changed, 45 insertions(+), 25 deletions(-) > > diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c > index 5b0f0838dc..62f7c9dba8 100644 > --- a/app/test-pmd/testpmd.c > +++ b/app/test-pmd/testpmd.c > @@ -2647,11 +2647,18 @@ rx_queue_setup(uint16_t port_id, uint16_t rx_queue_id, > struct rte_eth_rxconf *rx_conf, struct rte_mempool *mp) > { > union rte_eth_rxseg rx_useg[MAX_SEGS_BUFFER_SPLIT] = {}; > + struct rte_mempool *rx_mempool[MAX_MEMPOOL] = {}; > + struct rte_mempool *mpx; > unsigned int i, mp_n; > int ret; > > - if (rx_pkt_nb_segs <= 1 || > - (rx_conf->offloads & RTE_ETH_RX_OFFLOAD_BUFFER_SPLIT) == 0) { > + /* Verify Rx queue configuration is single pool and segment or > + * multiple pool/segment. > + * @see rte_eth_rxconf::rx_mempools > + * @see rte_eth_rxconf::rx_seg > + */ > + if (!(mbuf_data_size_n > 1) && !(rx_pkt_nb_segs > 1 || > + ((rx_conf->offloads & RTE_ETH_RX_OFFLOAD_BUFFER_SPLIT) != 0))) { > rx_conf->rx_seg = NULL; > rx_conf->rx_nseg = 0; > ret = rte_eth_rx_queue_setup(port_id, rx_queue_id, > @@ -2659,29 +2666,39 @@ rx_queue_setup(uint16_t port_id, uint16_t rx_queue_id, > rx_conf, mp); > goto exit; > } > - for (i = 0; i < rx_pkt_nb_segs; i++) { > - struct rte_eth_rxseg_split *rx_seg = &rx_useg[i].split; > - struct rte_mempool *mpx; > - /* > - * Use last valid pool for the segments with number > - * exceeding the pool index. > - */ > - mp_n = (i >= mbuf_data_size_n) ? mbuf_data_size_n - 1 : i; > - mpx = mbuf_pool_find(socket_id, mp_n); > - /* Handle zero as mbuf data buffer size. */ > - rx_seg->offset = i < rx_pkt_nb_offs ? > - rx_pkt_seg_offsets[i] : 0; > - rx_seg->mp = mpx ? mpx : mp; > - if (rx_pkt_hdr_protos[i] != 0 && rx_pkt_seg_lengths[i] == 0) { > - rx_seg->proto_hdr = rx_pkt_hdr_protos[i]; > - } else { > - rx_seg->length = rx_pkt_seg_lengths[i] ? > - rx_pkt_seg_lengths[i] : > - mbuf_data_size[mp_n]; > + if (rx_conf->offloads & RTE_ETH_RX_OFFLOAD_BUFFER_SPLIT) { In case this flag *_OFFLOAD_BUFFER_SPLIT is not set, but rx_pkt_nb_segs > 1 Will it still enter below loop, as before. > + for (i = 0; i < rx_pkt_nb_segs; i++) { > + struct rte_eth_rxseg_split *rx_seg = &rx_useg[i].split; > + /* > + * Use last valid pool for the segments with number > + * exceeding the pool index. > + */ > + mp_n = (i > mbuf_data_size_n) ? mbuf_data_size_n - 1 : i; > + mpx = mbuf_pool_find(socket_id, mp_n); > + if (rx_conf->offloads & RTE_ETH_RX_OFFLOAD_BUFFER_SPLIT) { Isn't above check already found to be TRUE, before we reached here. > + /** > + * On Segment length zero, update length as, > + * buffer size - headroom size > + * to make sure enough space is accomidate for header. > + */ > + rx_seg->length = rx_pkt_seg_lengths[i] ? > + rx_pkt_seg_lengths[i] : > + mbuf_data_size[mp_n] - RTE_PKTMBUF_HEADROOM; > + rx_seg->offset = i < rx_pkt_nb_offs ? > + rx_pkt_seg_offsets[i] : 0; > + rx_seg->mp = mpx ? mpx : mp; > + } > + } > + rx_conf->rx_nseg = rx_pkt_nb_segs; > + rx_conf->rx_seg = rx_useg; > + } else { > + for (i = 0; i < mbuf_data_size_n; i++) { > + mpx = mbuf_pool_find(socket_id, i); > + rx_mempool[i] = mpx ? mpx : mp; > } > + rx_conf->rx_mempools = rx_mempool; > + rx_conf->rx_nmempool = mbuf_data_size_n; > } > - rx_conf->rx_nseg = rx_pkt_nb_segs; > - rx_conf->rx_seg = rx_useg; > ret = rte_eth_rx_queue_setup(port_id, rx_queue_id, nb_rx_desc, > socket_id, rx_conf, NULL); > rx_conf->rx_seg = NULL; > diff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h > index e65be323b8..14be10dcef 100644 > --- a/app/test-pmd/testpmd.h > +++ b/app/test-pmd/testpmd.h > @@ -80,6 +80,9 @@ extern uint8_t cl_quit; > > #define MIN_TOTAL_NUM_MBUFS 1024 > > +/* Maximum number of pools supported per Rx queue */ > +#define MAX_MEMPOOL 8 > + > typedef uint8_t lcoreid_t; > typedef uint16_t portid_t; > typedef uint16_t queueid_t; > diff --git a/app/test-pmd/util.c b/app/test-pmd/util.c > index fd98e8b51d..f9df5f69ef 100644 > --- a/app/test-pmd/util.c > +++ b/app/test-pmd/util.c > @@ -150,8 +150,8 @@ dump_pkt_burst(uint16_t port_id, uint16_t queue, struct rte_mbuf *pkts[], > print_ether_addr(" - dst=", ð_hdr->dst_addr, > print_buf, buf_size, &cur_len); > MKDUMPSTR(print_buf, buf_size, cur_len, > - " - type=0x%04x - length=%u - nb_segs=%d", > - eth_type, (unsigned int) mb->pkt_len, > + " - pool=%s - type=0x%04x - length=%u - nb_segs=%d", > + mb->pool->name, eth_type, (unsigned int) mb->pkt_len, > (int)mb->nb_segs); > ol_flags = mb->ol_flags; > if (ol_flags & RTE_MBUF_F_RX_RSS_HASH) {