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 B8A90A0547; Mon, 19 Apr 2021 05:11:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4487F40683; Mon, 19 Apr 2021 05:11:58 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 9D11240040 for ; Mon, 19 Apr 2021 05:11:56 +0200 (CEST) IronPort-SDR: t8rd92hlppQP5KCDWFF0JAwZIOrNO/6OF11j6sPWE+yM058ANn7MWIZziCjmd4r+nxsxA+9HQI ejrgOi8Ht/NQ== X-IronPort-AV: E=McAfee;i="6200,9189,9958"; a="192072369" X-IronPort-AV: E=Sophos;i="5.82,233,1613462400"; d="scan'208";a="192072369" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2021 20:11:54 -0700 IronPort-SDR: O6J2z/lYOCvJQ+tgNblJdOEQZLqH7H/aWSwFTI8zFLjHmzg9chySFhJPCOANsZ7oMw4ORpm4Oq /87YylTxp3Ww== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,233,1613462400"; d="scan'208";a="400488543" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by orsmga002.jf.intel.com with ESMTP; 18 Apr 2021 20:11:53 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) 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.2106.2; Sun, 18 Apr 2021 20:11:50 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) 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.2106.2 via Frontend Transport; Sun, 18 Apr 2021 20:11:50 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.174) 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.2106.2; Sun, 18 Apr 2021 20:11:47 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WQ3z3wxXXljqDLTUcmG4mge8+Yn62Lk0aVVXvpN9Pg7ajuLar9tFKvU6G3WAItvP6DvGGbEtEmbozwPOp2Znq4uX9PvOAZLGfFB6i+vmA/R3u8DIJhI5q8u2c+U/Re8zZuYgDAWhCMkyza3WRbBMooP81ttaI3rN1UjyCBB6iRNHSdmCvJYwGuKlm7EoVLmRo3v4g2FmZCddK5R1YlqjhLeieq5Ham2dfcsDQa0xnfvxd7obkk/fykkO3xKlCprh5CDt9Pu1zt+G239Slv5JdM2Iv00GIeKi2M155m9jWIJZ+K70nTxI4e9q3VGX39w28hIHN6TBw/l9iZXv3OQD7w== 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-SenderADCheck; bh=I3FHFpgFE+DFtV7ZwogPxMqZR/p0Pk2JQgxxAH/EXNA=; b=SSHorFgEochVqw9b7sUoVPHR4A4NmtJVcg/5tPJYwRUi64zSTD+l2o0xzCuZzFuJ2lI6ZB6qpDaxov+efSiskPaXHs08EAdU5tibMa5nMH8096hLyKd+/plOVf5/oJxSl4Cxk/tHlddqifM3v3tWZYS4TOSWxaSNL+WchjUB0cUjgLDbV8bjjlWrP1hUMVgd6BlkqoxpOnLFAK2rYmpgd0/gDdxpOPSzDMl5a9AiIiAJrVdQr7eBCZeNGVM6e9MXoJ9Tfrva62AIqLuU11F9+LXXbrnfn0oawd1BddbACZnVDTADrypV6f8IRTozEvmPSH9Wmg4v6bGhhJSgYbaQCA== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=I3FHFpgFE+DFtV7ZwogPxMqZR/p0Pk2JQgxxAH/EXNA=; b=khf7mq+Mfuh3lR+Va6+9s1YH05f6DCTgYdRzSmgxQQjCPzBChObahDxdBbsKIyKQ5nDTcasWsqMA607fFxUlWPn19rs2qA4Fe142gR0vekt50yx7wQ7uCUKuVL9cQHMLBFCmOXCkkkkmE0sGD4h3A7e1AS9jRQuu2uIJGzTJI5Q= Received: from DM4PR11MB5534.namprd11.prod.outlook.com (2603:10b6:5:391::22) by DM6PR11MB3690.namprd11.prod.outlook.com (2603:10b6:5:13d::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.19; Mon, 19 Apr 2021 03:11:44 +0000 Received: from DM4PR11MB5534.namprd11.prod.outlook.com ([fe80::79a3:3404:b907:d49c]) by DM4PR11MB5534.namprd11.prod.outlook.com ([fe80::79a3:3404:b907:d49c%6]) with mapi id 15.20.4042.024; Mon, 19 Apr 2021 03:11:44 +0000 From: "Li, Xiaoyun" To: Lijun Ou , "Yigit, Ferruh" CC: "dev@dpdk.org" , "linuxarm@openeuler.org" Thread-Topic: [PATCH V3] app/testpmd: support Tx mbuf free on demand cmd Thread-Index: AQHXL52nsSB3JGeMk0SD2cxJOMUopqq7Mylw Date: Mon, 19 Apr 2021 03:11:44 +0000 Message-ID: References: <1614938252-62955-1-git-send-email-oulijun@huawei.com> <1618233177-50822-1-git-send-email-oulijun@huawei.com> In-Reply-To: <1618233177-50822-1-git-send-email-oulijun@huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.53] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f2a274f7-cac2-4c94-2260-08d902e0dc99 x-ms-traffictypediagnostic: DM6PR11MB3690: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6430; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: uTHURw5wvTmwvEOx35pU/UQVym1Y1R9XDlWc+HqE2EkxT47Ra+8R044vNWbSxBmG5U/N8bfVUoUIyS7T0ip621UHmgjcy34AHxrgW00aR04dUqi6EtGNvFHMLA1WmopEaJ20zs5ApqtcsUiRgHxDxY89EldQISy8CcsLMSkcqYzJh7qEsKqMyREHL9gV7bNdJpEX5WVUwIYki4G04rYpEffVjL51HvknO0O0YA2r0NwHTrptkPR+JB+R+BujnQzW4jPg+eZSsCtu9hlE7X6ffKZaa0pqmlPYnT47RyouAe/aryZy2ABUToPK4GbHsCuKTgl1VH+QgSZBd1vVzSr2qiaQexFSmmVVCasMoClzorr980RJCj6LcEf/QdV8G2RaFamn/Z6qCGEhujIfcKCu+O1KxZk+yyUSvH7YmvMx4lUVoRydST/aX4HBDhGaKTzJFXsfHFwTFYiM9nCoE6rFrJvWTZAZSRR7K6PqIMj0g2Hdi2FdC9nlsbpHHSn53eQeK7FFcklCB66bNeJSJDgCryJuW7A4KzXvnNY1VumTSQP/HWMoEFlL3P/RbWntmG/DNaoy+KqFbt7V8iNS/T1aoTJELWu8zb5f02n+QXKxVBw= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB5534.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(396003)(136003)(39860400002)(346002)(366004)(376002)(7696005)(83380400001)(5660300002)(122000001)(33656002)(8936002)(316002)(110136005)(55016002)(52536014)(71200400001)(9686003)(54906003)(4326008)(26005)(2906002)(6636002)(53546011)(8676002)(64756008)(66476007)(66556008)(66446008)(86362001)(76116006)(186003)(66946007)(6506007)(38100700002)(478600001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?cvNsCP5AFsq5MaPBlo7bxpdcDY8L+rPi0EKV7XqC7rBMZ+/bj7cs0U7yyBIR?= =?us-ascii?Q?cIZOO4bn6+HQ8cg3wW9E7zQCD6GYPIFxwnVbjtPM+sMHJNGkKjnt6MT52Gm1?= =?us-ascii?Q?MALlPgqNB4UdIPbyGM+KlYtcw0h61gXjODPfkbvzUHI4GHl3VAUml9aSF2q1?= =?us-ascii?Q?g6Qy3K+Ip5/IWfrsj1dz2fPYj+TAop+eXys9eXnoT8iEzye1M/7Q5Jdh8SoI?= =?us-ascii?Q?yxYRWMQ3rOH7tVlUf24BKVQpWmV7uVCXDPzmXsbhCvg54gB0fF/WE83XYuNv?= =?us-ascii?Q?dFL0nCCJNSz/DJ3/TDv/zVLv1zvEXDvrEn5GdnlUXR5LLhSiHPDNL3KA8A4t?= =?us-ascii?Q?ngqg+3wFIsVgrfubZFighbRUgl29sRMADYV6CdmYVtQTAIvPGfIKVf3NNXLi?= =?us-ascii?Q?B4/VJ66FK1CfHjy+a3AL7PYry4ouIPKMnfQISnk+9bVTopnmGbcZzy3dlVYO?= =?us-ascii?Q?teayhHqc50K2VB+rf6SFpBjFF7h59T7GV2zmiKs0VUVMJid2ZNqfif0mmO2K?= =?us-ascii?Q?fp1mWOq43y1PPT4FLs9KgLHkSxNcHKCJg92ViLGqpyZ5mzS7/vkbjYFy/sfw?= =?us-ascii?Q?V+dvAaC1R8KCvjFDtB9AvRHjIUwks10vreXx9GHba8G/e4bKfcBreYU793AL?= =?us-ascii?Q?opLp2rhF8lpgow8StGJ49fGEACuB3JHcXYvNTRYJVF9+A2NckX6hefHXLFYh?= =?us-ascii?Q?cJqF+qLV9ZiiIJSDBmpeJjcnM/MajH/DIhyYZL40+OTL3k2eq+Ilo6RCJLlm?= =?us-ascii?Q?jdN+L2yap++CUQ/oF+8y+LFavAqv8hLgi1MwXHY08SzJqr4mxD1JbhjtgLXh?= =?us-ascii?Q?uXml1TKIBR2EmkeviIY8D5uPOx3oqzZyQDkti3vhQTbDkkCVxyI9H/36MWz2?= =?us-ascii?Q?M89VSshCllW+xNN2AZMLQphgdzA3vLkD+M4+VLp5ZFP6WofJQzZtTHaHPzkl?= =?us-ascii?Q?yoO28SF8xZvqQOKveHdaf9QOHf5oVswQIBU8u5wJhq45UEWTAQ2fIKHs3ZSM?= =?us-ascii?Q?8zRdFgtA5D+pzCrLxAT6IGwW3tgre8T6sdViVjDq/QjhQze7Zapn3u59eGgm?= =?us-ascii?Q?Dqk3yaa+iJJEw/PYnhZCRGuasom0ecL99Thfq9C4RWnmTrVH16LqevhGCWBb?= =?us-ascii?Q?MReG0sYWhvuORiA3pBjbScTm7qfdAuE4npTExgxefY8fFWNnoVlf6bTF3SB+?= =?us-ascii?Q?hxPgWd0JEz4wfcyI0yTY/0wIfData/LCFPPS0n1+OubpM/RNeA6E9p5oKyNG?= =?us-ascii?Q?xugwC6ROYRvubMiyxT81oUVabi7axWg61sEQSZ+27kV1QsaLvsBKahXMZM8J?= =?us-ascii?Q?bK7InEIrJJ1Y3AYqIt+OrHfc?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5534.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f2a274f7-cac2-4c94-2260-08d902e0dc99 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Apr 2021 03:11:44.5254 (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: /W5hSY4pAdtJBIsom3tz5m28Y2kgH4sz2cBRN+AoyvB7majYdQE4r7LbLicvkxdtIrYp3jVdl2bqIaCGWBD+Wg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB3690 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH V3] app/testpmd: support Tx mbuf free on demand cmd 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 Sender: "dev" Hi > -----Original Message----- > From: Lijun Ou > Sent: Monday, April 12, 2021 21:13 > To: Yigit, Ferruh > Cc: Li, Xiaoyun ; dev@dpdk.org; > linuxarm@openeuler.org > Subject: [PATCH V3] app/testpmd: support Tx mbuf free on demand cmd >=20 > From: Chengwen Feng >=20 > This patch support tx_done_cleanup command: > tx_done_cleanup port (port_id) (queue_id) (free_cnt) >=20 > Users must make sure there are no concurrent access to the same Tx queue = (like > rte_eth_tx_burst, rte_eth_dev_tx_queue_stop and so on) this command > executed. >=20 > Signed-off-by: Chengwen Feng > Signed-off-by: Lijun Ou As I remember, last comments (from Ferruh and Aaron) suggest you to do this= in an unit test not testpmd. > --- > V2->V3: > - The command implementation is changed so that the queuestate does > not depend on the command execution. >=20 > V1->V2: > - use Tx instead of TX > - add note in doc > --- > app/test-pmd/cmdline.c | 85 +++++++++++++++++++++++= ++++++ > doc/guides/rel_notes/release_21_05.rst | 2 + > doc/guides/testpmd_app_ug/testpmd_funcs.rst | 11 ++++ > 3 files changed, 98 insertions(+) > + > show config > ~~~~~~~~~~~ >=20 > -- > 2.7.4