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 18F18A0547; Mon, 19 Apr 2021 04:53:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 906E940683; Mon, 19 Apr 2021 04:53:36 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 2E70B40040 for ; Mon, 19 Apr 2021 04:53:34 +0200 (CEST) IronPort-SDR: mY4pt7Y+6OMcqRL5IkmB90GSzfp027t1Ghjb5fEDYvLcPYL7uTBRiRUOxbBGPjk31XZNtFQUnH 1oawGQoipW/g== X-IronPort-AV: E=McAfee;i="6200,9189,9958"; a="259218097" X-IronPort-AV: E=Sophos;i="5.82,233,1613462400"; d="scan'208";a="259218097" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2021 19:53:32 -0700 IronPort-SDR: PYgVU3+uOlAZHp6jG1DEh5HmqYQLwp7ssmXZM0F3msNwjGSauPqM4S+eIEa9Y/DbHiD7Y+/oJi 8vdc4MOZFI+w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,233,1613462400"; d="scan'208";a="613260121" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga006.fm.intel.com with ESMTP; 18 Apr 2021 19:53:25 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX601.amr.corp.intel.com (10.22.229.14) 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 19:53:25 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx601.amr.corp.intel.com (10.22.229.14) 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 19:53:25 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.171) by edgegateway.intel.com (134.134.137.102) 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 19:53:24 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bnXexoR79zjFD2tLPvwdyoT33h/Hj0vFEQkbRIaQ4DIfq4u/tJG+qdAxcroAYtBfJXtxXti06ibVmzJiTlA/9yVpVXVX2KToAeaiR2dq1+QsEMVYJ2LPjNFG2I5TPd2ezMuuzMFskzBahR8JDHCUvvp0NTcJne1RByGmyZpNc0Y5XcTt95OVnmR2IFb+0EVh5HPjxyyf377gIS8cZ2RPaq+zd1wTxzmA6BiCNa42NkE9l67N1YLDzxbSV+7+hpuV/p6m0FeB2gc7KOdNIwjLZripxr95kUHgm2/b3kjckGdfAfKQjO/Ku6JwzwSTcfOmmbFa5NFk05iu4MdrZnl8Uw== 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=nVzXpO1yllGtvkR/EfZwz7i2N0bFANuv4GYVkXWx5jo=; b=ayfoGTKoTYaXdPQm9YxPUYmg8IJvYOjoik9GZMjunSZjPfK9zMkS5wRZP+YnjIB1yfxxvqcG6fXgR2n0MTcr++AIrZre1oOmuA53LRp8jbge+qrxQMnnLAE3h3gA/iGsJgrLqP0ewe4SaupjNLCkpBw825PLutY76WuRgX9a4GipQlqazhuE5uwFBRYvQdyzM5j7lYoDEXlIB2J4ZjMNL1y59oW421/9JEjaOV0bruYjwfTJrnUmcUV0yOHzCuSaO76GTlDoVp0kv162wlxZ4Pg3chIZIYp2h6z45ekYpcnMUebTqPvMXpUks+6gMomaqUfoZIt8+el5NsBSIyYSSw== 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=nVzXpO1yllGtvkR/EfZwz7i2N0bFANuv4GYVkXWx5jo=; b=ujk3Mmf4XARP+gayQ4byz8T4DSAijkOzaCROPxowXCRQCy6ZR1LIIuVfA4v+I1tJKncyyO1ZsvVoivLXGde/8ycssfKvk6p1mOHweTwBB/R6XT9JcMiWjP9+QIb0fS6yLm3mBeIRvwBdLr9WMvdbTrMAtSBncyxF2UM1nJhRpZU= Received: from DM4PR11MB5534.namprd11.prod.outlook.com (2603:10b6:5:391::22) by DM5PR11MB1755.namprd11.prod.outlook.com (2603:10b6:3:112::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.16; Mon, 19 Apr 2021 02:53:21 +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 02:53:21 +0000 From: "Li, Xiaoyun" To: "Min Hu (Connor)" , "dev@dpdk.org" CC: "Yigit, Ferruh" Thread-Topic: [PATCH] app/testpmd: support the query of link flow ctrl info Thread-Index: AQHXMcNZTP6BuWtQnU+BRLAEp7/s8Kq7J58g Date: Mon, 19 Apr 2021 02:53:21 +0000 Message-ID: References: <1618469214-35316-1-git-send-email-humin29@huawei.com> In-Reply-To: <1618469214-35316-1-git-send-email-humin29@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.55.46.54] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b9dd6185-5ba1-487c-7ecb-08d902de4b16 x-ms-traffictypediagnostic: DM5PR11MB1755: 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:813; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: NSTn8lPpvZnupIe19PjYnj/1VqhAaXcJNjGtIvSK29N8H2RQec3hYFcXT2PAbns1ZOYDX1reBOsxT4EG5faB6RnpRvEuzslw4HS+rOaz8Az23aX0mFi7nVazXMDnh9YzsEaHpXKq+k523OXa7vEXN6qaPn2Q2AD6QOhIYNxte+6H4GJAoDKvGO/eHp8PriRh/s/2yQu7j3OxY5KsJNwuWAn2HBau3VWSPZXCIkE2DVgFa+iSbRn78pSIZzVTR6hzHLoFJ5VkIXebVnMcg2amU/m41x0tYKgMOd6D1VOFtWoVDloeCQsR/HSAzKm5hpv4uu9VlW766gS/QOsuNnzms8WM/U8Isaf1xc3Giw03UyKHciEkHJ4fDZ2BZKV+iRh4GUw5es3bIyqU6GfaP0/4+2WSH0+YdTEnttdpXS6El0zJFxSJ6H25PFBzharGQ2sqWp98jkwMkKUKHThYqXCFx0HVr6dmoooEPmguCKdEe8rJcX9gMrhrt3FVzlCadSbNG0SUUDV2jeOFZLs+UtZRsociOUrucskJd6uxaU4Bf1SDHBMG9IOXuSRbptaB+ncPGYl0imhFjeSXGtRcByNe1Vy/CjxpwmR6T8Un0dUwuvM= 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:(346002)(136003)(366004)(376002)(39860400002)(396003)(4326008)(83380400001)(110136005)(76116006)(86362001)(26005)(5660300002)(478600001)(186003)(71200400001)(52536014)(316002)(53546011)(66446008)(8936002)(9686003)(33656002)(6506007)(66556008)(8676002)(64756008)(2906002)(7696005)(66946007)(66476007)(55016002)(38100700002)(107886003)(122000001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?1g+Pa95U+5TyC15I2XYVeZd/xFPBFzbwXEx1LFVM0gbmXCUjQMnn1+2j9BLB?= =?us-ascii?Q?IhsSQt79yLHVMsFfMo+U0+W/rOFchA+PsHAcs2LWnF/LnMsfdgzvNpFElS/h?= =?us-ascii?Q?FQwwi+aoX7ZXTYf+PIxbSpkKTKoB4QpsXxPJ3T0hXVUhIjbiwLyor0FZRnEC?= =?us-ascii?Q?6jLcTwm54WerojjJysDVAgtex9JVToEUc7gapkIFii0TE6G7o9IzeaKQ8MZ4?= =?us-ascii?Q?J2g/SYTn2d+yXibA49zyVUm7j0Mw4wnwmxuWPTjo/hVn2zxpzcU3HMC+VY+g?= =?us-ascii?Q?3lbOAkDugbcJMZc8w5y6FSVbMs8tPv4ua3Qh9szQ2GapHcTNVQfBk08vwTZp?= =?us-ascii?Q?X5LBFvxB0el5C29moo9/DPveTEdp+aesxsHu6HKs9YiQlllgi3hK9XNj8inA?= =?us-ascii?Q?XF8x6Y6+xAUVMW3v0nicO0hoZ30Eth7LuBgY8joWH34BAB4QLZWNY+8rho1y?= =?us-ascii?Q?mR/dSRsizQrmxt3CYi2K4A3vXoh3TqEIOqsoB+aREycMyKCGZN4yB2PAyopK?= =?us-ascii?Q?nQ211bIkKhJ3SGkWL0+3wMNb1mmfFq5aH1Ll5IQWVoBYHct80xEg7G8Ggz36?= =?us-ascii?Q?cliAoEksFjjvSYokKcCEAT3zbr9zNLBeZSUUAZ3w3+svb9iHcLJoYARI2W8T?= =?us-ascii?Q?0JZbIFufS7nOw6NOz/KRDBPi0jVs+5leK9w4ucyx94cUGwAI/8OJWl4hsFNH?= =?us-ascii?Q?H2W5BS3j/yGGTRRPQ+EjAf3ZugEOCG2m8tW6Bypf3SCrArkL3xhuNhi+h+tD?= =?us-ascii?Q?1rJAGXS/Y8IGRut2z+4WHtS0zAeVKXqRv5WC5dlA7czprZeppTlX6vu1bBev?= =?us-ascii?Q?ZMewBlQAr5NuxFMt1Va18IFLaX7bvX6V0gY32D1xCjnI/gjh9S6LG61ounJj?= =?us-ascii?Q?4WeIIheVSY+st6644KCg3odyi4e3UdGEbjvHxE3WVZr6dca6TrT2bQ00uYTL?= =?us-ascii?Q?peqKGtYvJeih6HUReNCIVCIdSQb6J7fL2o4Q02tzJH3YjxPm8rSGRDLwHz/0?= =?us-ascii?Q?8BbDbvarZXZREuA9S9BHqSDm2+vhvSzyvBouTGIDepmtu1rQqyjrQo37ziAe?= =?us-ascii?Q?kT2iN4LeCl/mzKhvAO4xmc3jQ44+3p3mSMhOxfaR2C4f8rfZz8ApgwMmdPGD?= =?us-ascii?Q?B/Wewvtun+cVgpHudnvaYR+ncuBj5UB5rTbmxgl/i9HX/412Q8U+XRzGOI9p?= =?us-ascii?Q?peKNGb6aNMqYWe2ix2HpU8OmvcJtfHTFk3EZBbPIPQdvMol5byh/sva59Fqi?= =?us-ascii?Q?zLfXOZ0dl3rDaUHs7sb3MQV9cekdaRsCuaadBC0+vzQsPcvrQ+ehAQUA3NSh?= =?us-ascii?Q?3BA=3D?= 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: b9dd6185-5ba1-487c-7ecb-08d902de4b16 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Apr 2021 02:53:21.4669 (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: cNhbIdOeiFJIcnp9wECJg014TP0gCbSpSSNKuSlHVX19RyI0zaCSR84kVACL7j8DprEQwulMesfiaJUZEUnUDg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB1755 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH] app/testpmd: support the query of link flow ctrl info 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: Min Hu (Connor) > Sent: Thursday, April 15, 2021 14:47 > To: dev@dpdk.org > Cc: Yigit, Ferruh ; Li, Xiaoyun > Subject: [PATCH] app/testpmd: support the query of link flow ctrl info >=20 > From: Huisong Li >=20 > This patch supports the query of the link flow control parameter on a por= t. >=20 > The command format is as follows: > show port flow_ctrl >=20 > Signed-off-by: Huisong Li > Signed-off-by: Min Hu (Connor) > --- > app/test-pmd/cmdline.c | 83 +++++++++++++++++++++++= ++++++ > doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++ > 2 files changed, 90 insertions(+) >=20 > + printf("\n%s Flow control infos for port %-2d %s\n", > + info_border, res->port_id, info_border); > + printf("FC mode:\n"); > + printf(" Rx: %s\n", rx_fc_en ? "On" : "Off"); > + printf(" Tx: %s\n", tx_fc_en ? "On" : "Off"); > + printf("FC autoneg status: %s\n", fc_conf.autoneg !=3D 0 ? "On" : "Off"= ); "fc_conf.autoneg ? "On" : "Off"" is enough like the others in this patch. > + printf("pause_time: 0x%x\n", fc_conf.pause_time); > + printf("high_water: 0x%x\n", fc_conf.high_water); > + printf("low_water: 0x%x\n", fc_conf.low_water); > + printf("Send Xon: %s\n", fc_conf.send_xon ? "On" : "Off"); > + printf("mac ctrl frame fwd: %s\n", Follow others' format will be better like "Send Xon". "Forward MAC control frames:" > + fc_conf.mac_ctrl_frame_fwd ? "On" : "Off"); > + printf("\n%s************** End ***********%s\n", > + info_border, info_border); > +} > + >=20 > -- > 2.7.4