From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from alln-iport-6.cisco.com (alln-iport-6.cisco.com [173.37.142.93]) by dpdk.org (Postfix) with ESMTP id 6526C101B for ; Wed, 20 Sep 2017 16:01:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=5548; q=dns/txt; s=iport; t=1505916085; x=1507125685; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=g7JJ8DyCmFktJcNxquoA/ELfAd4owpxwWmV10ZfoxFw=; b=CD+Q72fWIlg12jEp9ZSlboV3VH75xoratDbw9a8w/4u4OV6RcW+MM3Iu vaL786RjcEEWqqymLNiqCAHu5hYM7G4NC3VrqD6wUiXXt5wbNfqdJhTpP 9nr+DRHDKCu4EuSa41lWa2s+wa0bLlxufFVZwiYuSiUbn50t5f+jmiGcz Y=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0CWAQAgdMJZ/5RdJa1cGQEBAQEBAQEBA?= =?us-ascii?q?QEBBwEBAQEBg1qBUicHg26aFYF0kUGEc4IECoU7AhqESlcBAgEBAQEBAmsohRg?= =?us-ascii?q?BAQEBAyMEDTMSDAQCAQgVAwICIwMCAgIwFAEQAgQBDQUIiiuoDYFtOoscAQEBA?= =?us-ascii?q?QEBAQEBAQEBAQEBAQEBAQEBHYEOgh2CAoFRhQyEZC6CfIJgBaEPApRMghyQaEi?= =?us-ascii?q?JOYsKAhEZAYE4AVeBDXcVhWIcgWd2iAiBEAEBAQ?= X-IronPort-AV: E=Sophos;i="5.42,421,1500940800"; d="scan'208";a="5663105" Received: from rcdn-core-12.cisco.com ([173.37.93.148]) by alln-iport-6.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Sep 2017 14:01:23 +0000 Received: from XCH-RCD-016.cisco.com (xch-rcd-016.cisco.com [173.37.102.26]) by rcdn-core-12.cisco.com (8.14.5/8.14.5) with ESMTP id v8KE1Nxd021750 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 20 Sep 2017 14:01:23 GMT Received: from xch-rcd-016.cisco.com (173.37.102.26) by XCH-RCD-016.cisco.com (173.37.102.26) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Wed, 20 Sep 2017 09:01:23 -0500 Received: from xch-rcd-016.cisco.com ([173.37.102.26]) by XCH-RCD-016.cisco.com ([173.37.102.26]) with mapi id 15.00.1263.000; Wed, 20 Sep 2017 09:01:23 -0500 From: "David Harton (dharton)" To: Ferruh Yigit , "thomas@monjalon.net" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v5] ethdev: add return code to rte_eth_stats_reset() Thread-Index: AQHTMWrGy1csg9/P10mvl9ji+i443aK9zI5Q Date: Wed, 20 Sep 2017 14:01:23 +0000 Message-ID: References: <20170810132952.26974-1-dharton@cisco.com> <20170901022631.19529-1-dharton@cisco.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.82.249.212] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v5] ethdev: add return code to rte_eth_stats_reset() 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: , X-List-Received-Date: Wed, 20 Sep 2017 14:01:26 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogRmVycnVoIFlpZ2l0IFtt YWlsdG86ZmVycnVoLnlpZ2l0QGludGVsLmNvbV0NCj4gDQo+IE9uIDkvMS8yMDE3IDM6MjYgQU0s IERhdmlkIEhhcnRvbiB3cm90ZToNCj4gPiBTb21lIGRldmljZXMgZG8gbm90IHN1cHBv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