From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80054.outbound.protection.outlook.com [40.107.8.54]) by dpdk.org (Postfix) with ESMTP id CB65E1B120 for ; Fri, 12 Apr 2019 14:29:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XxyHf0M0uAbH1YZh8kpf36ziLr4obFEBDXXUzPDrlMw=; b=FL/C1r+U369k30y16cYOumWaeE1YhF/BXUgFULJB2ihCiOYZ+Gde/+Ze1ZxQkKk3if0NstzMqkKEqQoLcSbEqezYN53v7fNogtqyg+kbNvZSmL0cyZZ945AlLjwZ8uAzHm2bVBIbwo6r5dL9mDS7RYmYCF7G2yBlDm2w3BbRB9Q= Received: from VE1PR04MB6365.eurprd04.prod.outlook.com (10.255.118.78) by VE1PR04MB6702.eurprd04.prod.outlook.com (20.179.235.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.17; Fri, 12 Apr 2019 12:28:59 +0000 Received: from VE1PR04MB6365.eurprd04.prod.outlook.com ([fe80::f5ad:f178:4c55:13e0]) by VE1PR04MB6365.eurprd04.prod.outlook.com ([fe80::f5ad:f178:4c55:13e0%3]) with mapi id 15.20.1792.016; Fri, 12 Apr 2019 12:28:59 +0000 From: Gagandeep Singh To: "dev@dpdk.org" , "ferruh.yigit@intel.com" CC: Gagandeep Singh Thread-Topic: [PATCH v4 05/13] net/enetc: add basic statistics Thread-Index: AQHU8StNSQr0LhBVsEahz6BAn3tHwA== Date: Fri, 12 Apr 2019 12:28:59 +0000 Message-ID: <20190412122840.1908-6-g.singh@nxp.com> References: <20190412105105.24351-1-g.singh@nxp.com> <20190412122840.1908-1-g.singh@nxp.com> In-Reply-To: <20190412122840.1908-1-g.singh@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BMXPR01CA0029.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::15) To VE1PR04MB6365.eurprd04.prod.outlook.com (2603:10a6:803:12a::14) x-mailer: git-send-email 2.19.1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=G.Singh@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [92.120.0.8] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: beabbaa1-35b5-4b10-42eb-08d6bf427040 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:VE1PR04MB6702; x-ms-traffictypediagnostic: VE1PR04MB6702: x-microsoft-antispam-prvs: x-forefront-prvs: 0005B05917 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(396003)(376002)(366004)(39860400002)(346002)(199004)(189003)(476003)(102836004)(97736004)(2616005)(5660300002)(52116002)(6486002)(76176011)(36756003)(11346002)(486006)(446003)(26005)(6506007)(386003)(256004)(14444005)(186003)(2906002)(4326008)(8936002)(50226002)(3846002)(14454004)(53936002)(86362001)(105586002)(478600001)(66066001)(106356001)(6116002)(1076003)(72206003)(81166006)(316002)(110136005)(81156014)(68736007)(25786009)(305945005)(7736002)(99286004)(2501003)(8676002)(71190400001)(71200400001)(6436002)(6512007); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6702; H:VE1PR04MB6365.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: jgwjRHpcrm/r7oBWRVl1KBzAmZsXyeBS5s2gm/48Apo8SoPJmCljYR+XeVboe7QzC3P+TwUX2ht6RnfR6O/Rp80ZxxALcMbRTwcGY3gulwnCQ30UGztXBM/1d9xdsHRYNg6EMaSGwa0io3PZxW1mKeZg7xnH5ulqSFObxBd3AaG3blBI/lKNZ5mGUbo0GvpZ6SG2pwSDwzMDtoMPyZ7ekjXkphgKZ4h/KwoKBIGdXdeZ/sQHtchamZPYh5kCCggoe2cW9IT7v5pkZla5bOm6XZhNBmys4zbF2+UL1jt9I2ni6SDbaXthPhZLuuqbRO0kX4g8TCA1s2kVJ6PxtoPf+/iItywq2Bww5sJaaklPguAZfzTIHpqLN2TWt+VPE5k9CgO8T9tA+Mk4PBASnKIf5P9QCQ2tPR5RKYB3/5fYW4Y= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: beabbaa1-35b5-4b10-42eb-08d6bf427040 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2019 12:28:59.5503 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6702 Subject: [dpdk-dev] [PATCH v4 05/13] net/enetc: add basic statistics 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: Fri, 12 Apr 2019 12:29:01 -0000 RW5hYmxlIGJhc2ljIHN0YXRpc3RpY3MgQVBJcyBlbmV0Y19zdGF0c19nZXQNCmFuZCBlbmV0Y19z dGF0c19yZXNldC4NCg0KU2lnbmVkLW9mZi1ieTogR2FnYW5kZWVwIFNpbmdoIDxnLnNpbmdoQG54 cC5jb20+DQotLS0NCiBkb2MvZ3VpZGVzL25p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cnYgX19ydGVfdW51c2VkLA0KIAkJCSAgIHN0cnVj dCBydGVfcGNpX2RldmljZSAqcGNpX2RldikNCi0tIA0KMi4xOS4xDQoNCg== From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 0D6DBA0096 for ; Fri, 12 Apr 2019 14:29:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0DF7B1B184; Fri, 12 Apr 2019 14:29:22 +0200 (CEST) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80054.outbound.protection.outlook.com [40.107.8.54]) by dpdk.org (Postfix) with ESMTP id CB65E1B120 for ; Fri, 12 Apr 2019 14:29:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XxyHf0M0uAbH1YZh8kpf36ziLr4obFEBDXXUzPDrlMw=; b=FL/C1r+U369k30y16cYOumWaeE1YhF/BXUgFULJB2ihCiOYZ+Gde/+Ze1ZxQkKk3if0NstzMqkKEqQoLcSbEqezYN53v7fNogtqyg+kbNvZSmL0cyZZ945AlLjwZ8uAzHm2bVBIbwo6r5dL9mDS7RYmYCF7G2yBlDm2w3BbRB9Q= Received: from VE1PR04MB6365.eurprd04.prod.outlook.com (10.255.118.78) by VE1PR04MB6702.eurprd04.prod.outlook.com (20.179.235.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.17; Fri, 12 Apr 2019 12:28:59 +0000 Received: from VE1PR04MB6365.eurprd04.prod.outlook.com ([fe80::f5ad:f178:4c55:13e0]) by VE1PR04MB6365.eurprd04.prod.outlook.com ([fe80::f5ad:f178:4c55:13e0%3]) with mapi id 15.20.1792.016; Fri, 12 Apr 2019 12:28:59 +0000 From: Gagandeep Singh To: "dev@dpdk.org" , "ferruh.yigit@intel.com" CC: Gagandeep Singh Thread-Topic: [PATCH v4 05/13] net/enetc: add basic statistics Thread-Index: AQHU8StNSQr0LhBVsEahz6BAn3tHwA== Date: Fri, 12 Apr 2019 12:28:59 +0000 Message-ID: <20190412122840.1908-6-g.singh@nxp.com> References: <20190412105105.24351-1-g.singh@nxp.com> <20190412122840.1908-1-g.singh@nxp.com> In-Reply-To: <20190412122840.1908-1-g.singh@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BMXPR01CA0029.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::15) To VE1PR04MB6365.eurprd04.prod.outlook.com (2603:10a6:803:12a::14) x-mailer: git-send-email 2.19.1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=G.Singh@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [92.120.0.8] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: beabbaa1-35b5-4b10-42eb-08d6bf427040 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:VE1PR04MB6702; x-ms-traffictypediagnostic: VE1PR04MB6702: x-microsoft-antispam-prvs: x-forefront-prvs: 0005B05917 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(396003)(376002)(366004)(39860400002)(346002)(199004)(189003)(476003)(102836004)(97736004)(2616005)(5660300002)(52116002)(6486002)(76176011)(36756003)(11346002)(486006)(446003)(26005)(6506007)(386003)(256004)(14444005)(186003)(2906002)(4326008)(8936002)(50226002)(3846002)(14454004)(53936002)(86362001)(105586002)(478600001)(66066001)(106356001)(6116002)(1076003)(72206003)(81166006)(316002)(110136005)(81156014)(68736007)(25786009)(305945005)(7736002)(99286004)(2501003)(8676002)(71190400001)(71200400001)(6436002)(6512007); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6702; H:VE1PR04MB6365.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: jgwjRHpcrm/r7oBWRVl1KBzAmZsXyeBS5s2gm/48Apo8SoPJmCljYR+XeVboe7QzC3P+TwUX2ht6RnfR6O/Rp80ZxxALcMbRTwcGY3gulwnCQ30UGztXBM/1d9xdsHRYNg6EMaSGwa0io3PZxW1mKeZg7xnH5ulqSFObxBd3AaG3blBI/lKNZ5mGUbo0GvpZ6SG2pwSDwzMDtoMPyZ7ekjXkphgKZ4h/KwoKBIGdXdeZ/sQHtchamZPYh5kCCggoe2cW9IT7v5pkZla5bOm6XZhNBmys4zbF2+UL1jt9I2ni6SDbaXthPhZLuuqbRO0kX4g8TCA1s2kVJ6PxtoPf+/iItywq2Bww5sJaaklPguAZfzTIHpqLN2TWt+VPE5k9CgO8T9tA+Mk4PBASnKIf5P9QCQ2tPR5RKYB3/5fYW4Y= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: beabbaa1-35b5-4b10-42eb-08d6bf427040 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2019 12:28:59.5503 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6702 Subject: [dpdk-dev] [PATCH v4 05/13] net/enetc: add basic statistics 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" Message-ID: <20190412122859.F_vtlUJYVg3s6NzSyuE3OVnl0XlaQJalm1IFriUOFxo@z> RW5hYmxlIGJhc2ljIHN0YXRpc3RpY3MgQVBJcyBlbmV0Y19zdGF0c19nZXQNCmFuZCBlbmV0Y19z dGF0c19yZXNldC4NCg0KU2lnbmVkLW9mZi1ieTogR2FnYW5kZWVwIFNpbmdoIDxnLnNpbmdoQG54 cC5jb20+DQotLS0NCiBkb2MvZ3VpZGVzL25pY3MvZW5ldGMucnN0ICAgICAgICAgIHwgIDEgKw0K IGRvYy9ndWlkZXMvbmljcy9mZWF0dXJlcy9lbmV0Yy5pbmkgfCAgMSArDQogZHJpdmVycy9uZXQv ZW5ldGMvYmFzZS9lbmV0Y19ody5oICB8IDI3ICsrKysrKysrKysrKysrKysrKystDQogZHJpdmVy cy9uZXQvZW5ldGMvZW5ldGNfZXRoZGV2LmMgICB8IDQxICsrKysrKysrKysrKysrKysrKysrKysr KysrKysrKw0KIDQgZmlsZXMgY2hhbmdlZCwgNjkgaW5zZXJ0aW9ucygrKSwgMSBkZWxldGlvbigt KQ0KDQpkaWZmIC0tZ2l0IGEvZG9jL2d1aWRlcy9uaWNzL2VuZXRjLnJzdCBiL2RvYy9ndWlkZXMv bmljcy9lbmV0Yy5yc3QNCmluZGV4IDgwMzhiZjIwNS4uOWY1NzVkMjdmIDEwMDY0NA0KLS0tIGEv ZG9jL2d1aWRlcy9uaWNzL2VuZXRjLnJzdA0KKysrIGIvZG9jL2d1aWRlcy9uaWNzL2VuZXRjLnJz dA0KQEAgLTQ2LDYgKzQ2LDcgQEAgRU5FVEMgRmVhdHVyZXMNCiANCiAtIExpbmsgU3RhdHVzDQog LSBQYWNrZXQgdHlwZSBpbmZvcm1hdGlvbg0KKy0gQmFzaWMgc3RhdHMNCiANCiBOSUMgRHJpdmVy IChQTUQpDQogf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