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 1305143A43; Thu, 1 Feb 2024 20:41:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 96180402CB; Thu, 1 Feb 2024 20:41:56 +0100 (CET) Received: from SA9PR02CU001.outbound.protection.outlook.com (mail-southcentralusazon11021006.outbound.protection.outlook.com [40.93.193.6]) by mails.dpdk.org (Postfix) with ESMTP id 4850A402B9 for ; Thu, 1 Feb 2024 20:41:55 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lwaxYnCK/ga735+QSIi1ZZnmanscitUjUM0NR9PnCK/Wo6VTDbDjc9PBlx8o31TkleBsbFN6lf/5kqy0pOjrUZTwS9Xo4TX3QOhFdoP1DMHWA6kJT6eaLqf2xAwBmXIINCExOEHPTHZMYqa7T+wq4Zv6V2iGI72mFOkgS1YlYE35BfkDutpdnROZWQVlDlqyvwwSBkktjlj8s3azHtspMNIZaPulDUSVL7JhU4kUlhO2mFfjiOxdBwjJ8K6kCb5/7x1f8du+gv7LLjkrpc9M3OCVvkujT1CSZ2RDuB+L/kSxcPGNCIvb3yQ030dfdWZzkJLX9tr7KJdGMdvsH8rFIA== 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=tloQ2ypKAxYCnMrH0e+ap6gl5aY8ZbLCcUtuXPz/H4Q=; b=eMNWKpi/RZYP7PRzHDTdZ4U32nMLfzN7iv++32H7GHerZ8ma7UvDmS/8xFhp/igixCEVQHyy9ivcfdglHN9XMwse2MfUNWSsz62awQQeTt+ZK4zyx0Qe0mSUMuiEE31YrUCLQ82L/mFCw9FcXU2oIi4v8AImIlNJ+PQX8B13HivG5y9UvQ1PmH8EITUhkjgfxTU7e37/LW6vgci/K1ahdA5BYEBS4hG0E1TvjzR12zdmdY2dkzPv7MPdu2vu5SGleifC+7qNdDMrIEBZ4c4B0Ux+NbsSNZj1SdtZZVVJcPfzSQR8JZclpsYaPuA/p5VqAwHYgaJajS4EYWkAECaICQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tloQ2ypKAxYCnMrH0e+ap6gl5aY8ZbLCcUtuXPz/H4Q=; b=abFgRul8mg9pc436wb8+TzoqFFXRzeaTbEz0gjeZz0CW+wktnDdtfmcVzZ5eYAl9AE6WBw7MgGGQ4NV3k34sJh6lRJgi9u+sErqlBi4luNyZ3OHlMqxLpZskmc668AUxMA7XZRqIDY267rBkFLV86/dblI6dGJrFXtYWGVBUOWU= Received: from PH7PR21MB3263.namprd21.prod.outlook.com (2603:10b6:510:1db::16) by IA1PR21MB3738.namprd21.prod.outlook.com (2603:10b6:208:3e1::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.6; Thu, 1 Feb 2024 19:41:51 +0000 Received: from PH7PR21MB3263.namprd21.prod.outlook.com ([fe80::38ce:7072:976c:bb15]) by PH7PR21MB3263.namprd21.prod.outlook.com ([fe80::38ce:7072:976c:bb15%3]) with mapi id 15.20.7270.010; Thu, 1 Feb 2024 19:41:51 +0000 From: Long Li To: Tyler Retzlaff CC: Ferruh Yigit , Andrew Rybchenko , "dev@dpdk.org" Subject: RE: [Patch v3] net/mana: use rte_pktmbuf_alloc_bulk for allocating RX WQEs Thread-Topic: [Patch v3] net/mana: use rte_pktmbuf_alloc_bulk for allocating RX WQEs Thread-Index: AQHaVMEqJkzJJUFF/0u8xGgof70R9rD1qnQAgAA5SbA= Date: Thu, 1 Feb 2024 19:41:51 +0000 Message-ID: References: <1706577181-27842-1-git-send-email-longli@linuxonhyperv.com> <1706759150-6269-1-git-send-email-longli@linuxonhyperv.com> <20240201161616.GA13514@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> In-Reply-To: <20240201161616.GA13514@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=d426d89f-ddab-4a16-b5f0-1ded6c21f605; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2024-02-01T19:41:17Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH7PR21MB3263:EE_|IA1PR21MB3738:EE_ x-ms-office365-filtering-correlation-id: 95f0bfeb-d8fd-4ede-0812-08dc235dd677 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: M72eqyGKN4mAPdkfB+p9h0hNIhsl45WblGtePmmD7Rjnv0ENH3X4PfMmEl0zuuIYM9DwZqXs98cWOShMvjuyF2hA8d+0/jylI/3GFKZeQl4EaiLXYrrHBX+j7QdXNFlelNbSy01Oi3xRqqJNbwtCOuXBfFNpjypkPJf+D5KXP9j3Q5ggsxpSXuIkXDKw+pFpx4ch8J1GtihcllYtmBKzJsVcCgfwYfPB0693+CFfULaaSWVQXXj2vEwkn5SDaadIklZIniKxEvUoKiJ8ClNODENb5PZdNV9pmi+hyeMKVMmgYRm3kqV1pnyeH9aRR+bslKQZiXyuqrODboAjROWnEjXltx5Foo7LDlKQn3I72TJ50aUv//hptU/kQ5HywB1SXqx91ahXS1nbZZPgcR2KVaszIB4WZxsjJrTY+1CZ7n7bRqjMClLGYFNQ9Jw1JJPhuxxhA41+OsVIcm4MEWq8gsjNDcDTLnBmjDxqGT2SxfkG+oLpL6SwQ1V/jr6iY0mjwEdTOrq5fqPXz6dha/L8/vGvQNpuk4gtyX/1sCqGbFpDdP0RBFaTxUo79SCOPUqGx0SxA8HnTVeegr6kSRXluaYJvGoUSPCeRBRSXm8zL14LEgCcvSzIZ5VBAD91q2RQ x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH7PR21MB3263.namprd21.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(346002)(396003)(136003)(366004)(39860400002)(230922051799003)(451199024)(64100799003)(1800799012)(186009)(55016003)(41300700001)(26005)(71200400001)(38070700009)(8990500004)(10290500003)(6506007)(82960400001)(9686003)(478600001)(7696005)(122000001)(82950400001)(6862004)(86362001)(316002)(8676002)(38100700002)(4744005)(54906003)(66476007)(76116006)(33656002)(66946007)(66556008)(5660300002)(4326008)(66446008)(2906002)(52536014)(64756008)(8936002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?RRBBGwA1lM+oYw8eDEtwS7E8Fe9201kWKeBj5vnfp8Y6pmlzE8CK/3etrgLk?= =?us-ascii?Q?aWiWz+6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Ixt6iVQaG9ne5Efv+?= =?us-ascii?Q?0puz0e9pwvuora1qrl5sxzCqSnYiS2O9f97+uuL0FNhSAPWN8nR7v3TXrckj?= =?us-ascii?Q?HvnKSZwf4VMUpw+XnlR1gzCcATSX6BJ3kXoMgPVZF+TmS/Vf7tAHyxKH7wC6?= =?us-ascii?Q?4J7ocpcTg/stc9m8H5oq/65CPrb6uCRi+UnjLSdZaBazKc02MlzSpakgIGkw?= =?us-ascii?Q?OaLbCQTbuKnsPEItEVQ42SwDx+SgVRok113z/HzRmdB1+XisBNVITezL7iLG?= =?us-ascii?Q?K4x9bXFH60gwRf7KGf9D9TvQrp9kDGbwiLL422Gr3VBRo8TtbTdK+fAB3HYT?= =?us-ascii?Q?y4CCXBgXSzyPWdPPLz3j9UR8CcU8sZGDb+BHvj0bSbdE2FejKRvKT3JtLAOh?= =?us-ascii?Q?9kD368guAZ89jfAWMh9GCNqJo7Bjo2zo4JY61pwOxBgqTJS8vng3qh36Frlj?= =?us-ascii?Q?CtMpqGMKZngdE7vcCGxoQRygkMYf5eV4hqqDh4yr5WgnLn9WvxsyYZAzDW/0?= =?us-ascii?Q?/nUkO21tcnxsg4T1vnl6eEQ5iW6OXPd7wdS1cBi1WnJYWO5IDJafJ03epIkk?= =?us-ascii?Q?LG5KUWJkO7rEKHHtMJctFDHOO9TsfFuhSfN18xdZiK88tLeJLIllqD62Y7fv?= =?us-ascii?Q?d94IwPDqUSvJHcIvuaoNvmz85m0Euc6FtSpbUaCq?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH7PR21MB3263.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 95f0bfeb-d8fd-4ede-0812-08dc235dd677 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Feb 2024 19:41:51.6264 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 2tKX3/9j6HP2HArKpImyjXKQt1GjV+YNY1pTv+lQieTJiKT16+btf8PaZfL1Xbl9Bwf9uELL8141IH/1oG6J8Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR21MB3738 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 > > + /* Free the remaining mbufs that are not posted */ > > + while (i < count) { > > + rte_pktmbuf_free(mbufs[i]); > > + i++; > > + } >=20 > there is also rte_pktmbuf_free_bulk() that could be used. probably won't = make > any material difference to perf though so just an fyi. Thank you! Will use rte_pktmbuf_free_bulk().