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 EF716A0093; Tue, 19 May 2020 18:40:21 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7920C1D607; Tue, 19 May 2020 18:40:21 +0200 (CEST) Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30069.outbound.protection.outlook.com [40.107.3.69]) by dpdk.org (Postfix) with ESMTP id C912A1D5FA for ; Tue, 19 May 2020 18:40:20 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HVZuN7leT26SFG62O0K7VmMGRb2Ob9ZrXkE0Z0p859AJoQ3JZp0S0s1pAyP1SlUtggQyefFHtjSWwXOYRbNtdcAAX6fwz8l9tTIk0DznGwRyiCAeaHJu8MPZOR3AoLDGmjI9u3bgTmFc818z6x3itCENec+xopeA+vtjCfsOb0Sw2+SR8guc0J/2PyT/7mH1NdIsU+hXySu4KNFlVjut1+6/KXqFg3moivEQZ3d28Ga/0AaQP7DJwqvcly/Hdo86+xVZfrHGNI8Onef081ONqizwZjOXiVWE2hBoqq6f4mvFpGIPNS8TASstEpsH2h24X788fcv9Ho0jPVEmIjg24Q== 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=jd/xfE9J/M5D2gfHRGMJXOal0RQKTkZF9vDYPy6abRY=; b=klNZUVTeZN33nk6Lx1qsBvPz/QtulS9FIC/n7yjySdyroGfsnC3Xw56IG/kmx1HmBmMQIvY8EjVKRMmnRG3gMXabu1R3jse7lLiaUisVZFKmenLV1IJa9wZa7LNJbcXMn8MaX1KFYaWYPHEjAPsCExnC4KdQ5A/ovmasvomLNCt882uVfj/WsuGuZGg8MRYF2KfpR9s4X7kSOnGihsovBV3LbMjUXNdMFdJToZddP4zd6p25ACv2z4JOucMcv8sXM0D1vbCkKbQD63J3EbmYf8laZXLDefupqPrgC9WEzDRknVqyvi+4d3rJkjGhc8xOJyHcUhu+PX/dihsz1i05Xw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jd/xfE9J/M5D2gfHRGMJXOal0RQKTkZF9vDYPy6abRY=; b=agj1rEIIZtHEnDLTJbD5+eshI6XntHME7NMR3dAuyG9bISZgxR7dNmU6XYKScxS6t7CrHvfP5en3LkQwDjFvg4IK1uyZd+PcHDqgfLRlIeZXTumLRTdPZPPUEoxk1guvOHrm3Ndjpz2NkkgOYxGL8wVoHj8xsJdP1aJHRHMzvFM= Received: from AM5PR0501MB2593.eurprd05.prod.outlook.com (2603:10a6:203:f::21) by AM5PR0501MB2580.eurprd05.prod.outlook.com (2603:10a6:203:d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.26; Tue, 19 May 2020 16:40:19 +0000 Received: from AM5PR0501MB2593.eurprd05.prod.outlook.com ([fe80::d14d:cfe0:417c:4c8a]) by AM5PR0501MB2593.eurprd05.prod.outlook.com ([fe80::d14d:cfe0:417c:4c8a%8]) with mapi id 15.20.3000.034; Tue, 19 May 2020 16:40:19 +0000 From: Shy Shyman To: Ferruh Yigit , "dev@dpdk.org" CC: Wenzhuo Lu , Beilei Xing , Bernard Iremonger , "xavier.huwei@huawei.com" Thread-Topic: [dpdk-dev] [PATCH] app/testpmd: fix error detection in MTU command Thread-Index: AQHWLPaU9CeGK8ppeUC5qvvWvs7NnaivgdiAgAAQ/7A= Date: Tue, 19 May 2020 16:40:19 +0000 Message-ID: References: <20200518092704.188832-1-shys@mellanox.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=mellanox.com; x-originating-ip: [79.180.60.219] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 8430773c-8952-4bde-9ac2-08d7fc135142 x-ms-traffictypediagnostic: AM5PR0501MB2580: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 040866B734 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: BJJE9vKUYEIGpKQlUGN+IlsfbOJaRLpNFv4x0od6fIH+z3vFnt8OzCPAds1kXw3HFDvNZbkW80NQw3b4pC5mFJvlnuL5L/LJIbIPu7xry1DtxvMjOLW1+7i3Dn8/KvioNTyq3D7rvrqtAGqZqJRhTYvSkRJqmVq0dVp6RmN6j9muSvpAUxlaZpsXniFBwD836wznmdpb8iR/GoujHSvDoTlMKtWagSM+f/Nn+QS0HAlgxr6nlCzs7Axeun1x3AhghbCzEhH0sMew78PPbDhlgDso0ce1mxN4H9ctff4srnpDuvoTMQjyKD47eZiWoL8T6nmXWiItnUU0gbEx6Salr1qQenCP5WNomp7Gl2fxJAOEfkBgI/tHF3nQfQncxeg5VSvDW0PffwtOx96qz6VUn+Am8chg2BOElCarCU6lhR40d1YIYlsdGClha4zItR9t x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM5PR0501MB2593.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(376002)(346002)(366004)(396003)(136003)(39850400004)(54906003)(66946007)(64756008)(66446008)(110136005)(76116006)(478600001)(6506007)(8676002)(5660300002)(4326008)(53546011)(8936002)(316002)(52536014)(26005)(55016002)(2906002)(66556008)(66476007)(33656002)(86362001)(7696005)(186003)(71200400001)(9686003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: gtxY33IZuyuXVUqZgmd86epMWIHFdpVPzOxtp+sFIpVAxLK94xUyz4yZ3x1hWT7e9YMClINxMPlwMSWVgWCe06rtGTbgNhsJpc7GJDzWQJn+V4FVxJu+6kmrxRxNYQFv8BgApB9kPXcbb2Z53Eq9Sj1S7GKtvT+gSgnmnYUI0WtORxNsHILykOhw0WDf2LicVKO+A1QLZP1dQNeK5UfdWNYYdbG4EWj3M3o3HAB8p+uojC5+ZyAhwhj+y1b6WTGdSvif2610Nvo9gARYIcLfhUlvIa7//wVERO1Xjo9xDPc+a6+CQypCcIoIhZeJk4aNWCD8D1Ko3pdMq5+Sz1UmmW+mcIEu6mb5/BTn/zG8eFOVYvAXVuxIMlIZT6Q1JzEi+BCGj6AU45aJ+x2Kha5+uiAjHtmS1xBgq6EsrHMAIcP7eQjO+t5rEm0l8x0UhnAOXD2MyAD2es+YCdD77jU9mb1nssXcO4LT24yD0gL4on1sF8O/mMk+i11mVJGDeJVK x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8430773c-8952-4bde-9ac2-08d7fc135142 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 May 2020 16:40:19.1873 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: yuZM/qUPp6R25POSsGos327kJ9UzoBR1M0jY6T9bR0/hufUewaKxsibWV7CcIDC06ztRAAlc6tbfVQ4RgwaVEQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0501MB2580 Subject: Re: [dpdk-dev] [PATCH] app/testpmd: fix error detection in MTU command 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" SGkgDQpUaGFuayB5b3UgZm9yIHRoZSBmZWVkYmFjay4NCldoaWxlIEknbSBvayB3aXRoIHRoZSBm aXggeW91IHN1Z2dlc3RlZCwgdGhlIHdhcm5pbmcgd2FzIHBsYWNlZCBpbiBvcmRlciB0byBsZXQg dGhlIHVzZXIgdW5kZXJzdGFuZCB0aGF0IGhpcy9oZXIgTVRVIHNldHRpbmdzIG1heSBub3QgaW1w YWN0IERQREsuIEFmdGVyIGFsbCBpbiB0aGlzIGNhc2Uobm8gSlVNQk8pIHdlIGFyZSBub3QgZG9p bmcgYW55dGhpbmcgYmVzaWRlcyBjaGFuZ2luZyB0aGUgZGV2LT5kYXRhLT5tdHUuDQoNCkkgdGhp bmsgdGhlcmUgaXMgc29tZSBjb25mdXNpb24gd2l0aCBNVFUgaW4gRFBESyBhbmQgSSdkIGxpa2Ug dG8gdGFrZSB0aGUgb3Bwb3J0dW5pdHkgdGhlIHJhaXNlIHNvbWUgcXVlc3Rpb25zIHJlbGF0ZWQg dG8gTVRVOg0KDQoxLiBvbmx5IHRoZSB0ZXN0LXBtZCBhcHBsaWNhdGlvbiBhdHRlbXB0cyB0byBj b3JyZWxhdGUgTVRVIHRvIG90aGVyIHZhcmlhYmxlcyBsaWtlIG1heF9wdGtfbGVuIGFuZCBKVU1C TyBvZmZsb2FkLiBzaG91bGQgcnRlX2V0aGRldiAgZG8gdGhhdD8NCjIuIGV2ZW4gaW4gdGVzdC1w bWQgY2FzZSBvbmx5IFJYIHNldHRpbmdzIGFyZSBhZGp1c3RlZC4gTWF5YmUgVFggc2hvdWxkIGJl IHJlZ2FyZGVkIGFzIHdlbGw/DQozLiBpbiBnZW5lcmFsIHdoYXQgc2hvd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