From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 66EA9A0597; Tue, 21 Apr 2020 13:51:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 46CAC1D92F; Tue, 21 Apr 2020 13:51:07 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id A8F741D91E for ; Tue, 21 Apr 2020 13:51:05 +0200 (CEST) IronPort-SDR: I/+43fBWCYNGYSJIfpo4guBNYps4gxlVT+3c7XXSzklhPZ8A65KM3wcQgTpMPCtN+s5d1dcLrF dV+GyBjdDQlg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2020 04:51:04 -0700 IronPort-SDR: hfk3kfVTm/Yi+P/pBqsAQSLcyWXrBGjls7/0I/GGbGQ3BDB40fLLvs11a/D3Svs7ZgAlD83RyD +VC0pQeipmZA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,410,1580803200"; d="scan'208";a="300588206" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by FMSMGA003.fm.intel.com with ESMTP; 21 Apr 2020 04:51:04 -0700 Received: from fmsmsx161.amr.corp.intel.com (10.18.125.9) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 21 Apr 2020 04:51:01 -0700 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by FMSMSX161.amr.corp.intel.com (10.18.125.9) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 21 Apr 2020 04:51:01 -0700 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (104.47.38.52) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 21 Apr 2020 04:51:00 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NMVObgYjD646YdH4yUg7jQmu6hDBsMrf3z0X69aVs3twRykNPWUH7pL9lk7/5Sb8VWTpkcmX2KIMBUb2PaCxnjIQtHHimOvtUqe0+mEA8GS/bA3V0TfOTucRgWXh5/MYnV5KQWaByIX+cetcNqFZbu5aYiW6sT6+8bHIHD3+vmGWY7Cp1MHy7oDa0HmJVBEmhIJb7KNOvzat3ORdKdFIpEpq9MyAlEUJrCwZ5veJ+A9s6FfEedHIdtr9kQcexX9352Fa4X3O6dxgb1CjIihjNQcCp3R8yI+cxJaGAWWrLgdDyYcW5h6tIDRwabobBv19zQfA3tm8EhFpJhg0DyEhSQ== 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=E+NvCVVlBIzrbU6GHVeX3XYmVoggWyKg4vxitXIsjXI=; b=f5m0Zz0cQZlQVnfYfpufDyR7pDodL4hvcSWsTSfBpVty/adQVA3LzHwqWd0CivVBmgsXYKSUEgT8ULblQu/dFbX9Uk1B0v3+ulfu0bemWdH+XrP9s6kO74JGjyI5lY3pI92KfRiz208KsWZA6bTzWVw/Kf6vJPtAElogEHZaAO8RYxGpov0gvv34PaevFPZuOpmfmzJf9+iD7O1uCod8cEo7/Tn4++HkIAVOfQxNTmWd/yK4EmC0zClqyiWDj4YgWQ5qwmjHcta/szaBOatB/z7hnSPVQA8WauI4xXTeVvkzj1G427N3oU3LXxs00G/s7whLttx0mv073q74D+oAYA== 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=E+NvCVVlBIzrbU6GHVeX3XYmVoggWyKg4vxitXIsjXI=; b=p0y3uSTf/qJzkVWcgM7Ub/BQpPHNgImFDGF0lhoAuMfRh+P8bgMVLW346Lqtj8ZX8zY9WsvU2fQlc0SvCnUOaEQvBh8jr24K+04dBR4DJvYTjrD18aPFjrqEx/+ZNmgLYB7tjDzcpclxqzkH4Kj0QZRMqMn0yNESD9iJnzI1h/A= Received: from DM6PR11MB2537.namprd11.prod.outlook.com (2603:10b6:5:cd::16) by DM6PR11MB4363.namprd11.prod.outlook.com (2603:10b6:5:14f::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.29; Tue, 21 Apr 2020 11:50:53 +0000 Received: from DM6PR11MB2537.namprd11.prod.outlook.com ([fe80::7c08:b4ae:e9c2:a4fa]) by DM6PR11MB2537.namprd11.prod.outlook.com ([fe80::7c08:b4ae:e9c2:a4fa%6]) with mapi id 15.20.2921.030; Tue, 21 Apr 2020 11:50:53 +0000 From: "Iremonger, Bernard" To: Lijun Ou , "Ye, Xiaolong" , "Zhang, Qi Z" CC: "dev@dpdk.org" , "linuxarm@huawei.com" Thread-Topic: [dpdk-dev] [PATCH v2] app/testpmd: configure rxd and txd number correctly Thread-Index: AQHWFTPuE9QH3b973kGvJdBqJP48uaiDe4PA Date: Tue, 21 Apr 2020 11:50:52 +0000 Message-ID: References: <1587181478-40649-1-git-send-email-oulijun@huawei.com> In-Reply-To: <1587181478-40649-1-git-send-email-oulijun@huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 authentication-results: spf=none (sender IP is ) smtp.mailfrom=bernard.iremonger@intel.com; x-originating-ip: [192.198.151.179] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bc554535-dfc0-43cc-afe0-08d7e5ea3e82 x-ms-traffictypediagnostic: DM6PR11MB4363: 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:1360; x-forefront-prvs: 038002787A x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB2537.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10019020)(376002)(396003)(346002)(136003)(366004)(39860400002)(86362001)(186003)(2906002)(316002)(54906003)(6506007)(6636002)(8936002)(81156014)(26005)(53546011)(478600001)(110136005)(9686003)(33656002)(52536014)(71200400001)(5660300002)(66946007)(64756008)(66556008)(76116006)(66476007)(4326008)(66446008)(55016002)(7696005); DIR:OUT; SFP:1102; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: IWR9UJk5FsotcdQPRvYYzhSwFriI7LYTUx6lGrIB7Iaw+uQhRRddx8EDAElYIQVsgYUCTpXJglgjrXV8hCy8BuFeZqWi/fveE83A1aVhXvyKZy/oaJqxavqydjVWAU5RP+ycQ2WrNhihs5cXjbt6FvLIjpU1THV5hlbUJSQJfAOFO4mHMpNUvqCofmnhQcIqxNKN0KVjQl39mf6dIwGDCL4bDP86YZ9xHyOwhfTi9U7BGG5L9Pvrr+/I2uXBjOzYunqSc4ACgpVTv8vCi+5dazJeCEINQYSP8kyv8E9l6M+tU4jT218Sy+3K+XP9ny0V2CytUXNtLZ2zcIyLac11q5Kg+sU6Q7/XnIQ+p7r7/i5UN/v1O03JueDUwni7FnFhtjygyOcIPHJp6wsqmm3Rv0/8+ZHnHNV0x9DXs9JHMX6tpDjR/YugXgVJSaxkONWg x-ms-exchange-antispam-messagedata: zLTAPgv+7qNHu9W0ndBY0mDpZzgShVSgB+VrsGiGgUzvno7JDfeHvmp86kYvICQRCxeOWcaqydq+PMpRiRLz2B/HO/VDgXUb2gD5jesHVToCJCu8q7UtLZEh2uzNfv0otCfsjmcDMwJpDqT1HF902Q== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: bc554535-dfc0-43cc-afe0-08d7e5ea3e82 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Apr 2020 11:50:52.8365 (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: 36K0hmQlBVjJS+aNOM/JzYl2GOt1bDrcUh6dVqO7ELvLId7OdgrgoVXfTo1rOi4sTIi+9SZQ228CceuDit1DUxIQMR5jzsILf0xqLOdJH+A= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4363 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2] app/testpmd: configure rxd and txd number correctly X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" > -----Original Message----- > From: dev On Behalf Of Lijun Ou > Sent: Saturday, April 18, 2020 4:45 AM > To: Ye, Xiaolong ; Zhang, Qi Z > > Cc: dev@dpdk.org; linuxarm@huawei.com > Subject: [dpdk-dev] [PATCH v2] app/testpmd: configure rxd and txd number > correctly >=20 > When users configure rxds and txds by used port config cmd based on > testpmd application, it will not be able to configure rxd and txd accordi= ng to > the max capability range supported by the actual NIC hardware. Due testpm= d > defects, it can only configure a fixed range to 0 to 2048. > The final result is that an incorrect printing prompt appears and cannot = be > applied using rxd && txd according to the actual capabilities supported b= y the > device. > In order to solve the above problems, we modify the testpmd. First by cal= ling > the rte_eth_dev_info_get api to obtain the max and min rx/tx capability > supported by the hns3, and then use this range to compare with the actual > value by users configured and make reasonable limitation. >=20 > Signed-off-by: Lijun Ou > Signed-off-by: Huisong Li > Signed-off-by: Wei Hu (Xavier) Acked-by: Bernard Iremonger