From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60065.outbound.protection.outlook.com [40.107.6.65]) by dpdk.org (Postfix) with ESMTP id 6163D4F98 for ; Sat, 15 Sep 2018 07:20:39 +0200 (CEST) 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=qSASev3f3FCltRsW1HRVNFLuANUxRRpr+2IxINK/ntA=; b=CwXP6bQLCBGs38nQy3QVR8x1tKnH+il2Ty3ZEsihm4T8reBNWOepEmBgNyZcd/+lsyQa5QRYAU4tYfC7JISLGNcwP3+58qQrX5Tkp23NLqujEStriTjLCBu7uP3TKa3TDD7By4Fz6XPQpyBwtE/srPpNJIc7RC07DfZwSPKgzkc= Received: from AM5PR0501MB2420.eurprd05.prod.outlook.com (10.169.149.146) by AM5PR0501MB1988.eurprd05.prod.outlook.com (10.167.214.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.18; Sat, 15 Sep 2018 05:20:36 +0000 Received: from AM5PR0501MB2420.eurprd05.prod.outlook.com ([fe80::95f2:ed0b:1da3:106e]) by AM5PR0501MB2420.eurprd05.prod.outlook.com ([fe80::95f2:ed0b:1da3:106e%10]) with mapi id 15.20.1143.017; Sat, 15 Sep 2018 05:20:36 +0000 From: "Xueming(Steven) Li" To: Yongseok Koh CC: Shahaf Shuler , "dev@dpdk.org" Thread-Topic: [PATCH v2] net/mlx5: fix representor port xstats Thread-Index: AQHUS/Tmo0HIoJ8q3kqJMjggJguIVaTv/jyAgADQzoA= Date: Sat, 15 Sep 2018 05:20:36 +0000 Message-ID: References: <1536229686-81003-1-git-send-email-xuemingl@mellanox.com> <1536906807-118827-1-git-send-email-xuemingl@mellanox.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=xuemingl@mellanox.com; x-originating-ip: [180.174.142.249] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM5PR0501MB1988; 6:48blcl1eLgTr5HoxSrL7K7JAuoh+Ytxemzt5qTQ2dIZBUrfVxaRW3e4zxTxVreQt3nMzYwG3GrOD6qpGz8kDyQIZC+El/9McXiWJO9MWJUWtJcK8UaoTpfla6bCTJGEAklFL1ZCfxt5nzDyC88H8O++YVZ+U9QLMm7tVC5VH+XdqgvtXqaedd20XBd6nLCPaNH4GlI4lUeUMq1ehSg6Rb9lEEDtxSSy/Bx/W9qCDkKEhtQ01ZZR4HHZbbQ0Cz90lO/VPnCHa9RI75EFphuj+DFO30Y7RDq2VE2aTMqMahpwL5D/e2E7CPvV1O8ZwNd/kdFl1MicfiCeWlQFCKCaHRO1Eca2ZRG71Z/ZRwx3pTuygt5NFMlJ2/YlaYiYL2MlILFtyVuU1H/+qLIqFQWyWpnBXmAtcOU98pMML8vvtGJ+/u6NIb1+nOLgDs6Oxd71JeiUVyh9MuPKJGPFh8zNpRQ==; 5:VM3F+6GUWBx4j2wqgzHcGZo060Ta6ab6QLDiZGVcG4mLVmjFJ14UHQ0RZr85rqAnob7kCK+rIt1PkjVcZJBX5PAYsRvLdYJx0uS2/cWasBFZdP03+SijUhYJMC26nFOUBpRaSrmUL/ENbOkTbDeKavXos4VNgWd2zGJr6EANgCA=; 7:c9EuLzYvnk1E5vI6UbTxXNv/5Fs8vqdc8Ox/SMfLAfVSgKTjaZUydRA7D8miMOedyAUiFGLL3L2VdvJyGEZwJ652GLkHxfYdVQ8SN3pvB+LlLxnpOqxDt0JrfNMysoTiV52V0U2es/t7/4IZre3OAVAy4tY0qEReBSiXemppL90dS7vO2R3NsOazJRVwEODGu8K0wQjgaUhtKtTbyioNWvAqQyCLZprjBfyQ+gsQsNInkZ9EJGgVGIUiWTAgtQay x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: a8a3a348-d20c-4a23-0b62-08d61acaf7f1 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM5PR0501MB1988; x-ms-traffictypediagnostic: AM5PR0501MB1988: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(93006095)(93001095)(10201501046)(3231355)(944501410)(52105095)(3002001)(6055026)(149027)(150027)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(201708071742011)(7699050); SRVR:AM5PR0501MB1988; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0501MB1988; x-forefront-prvs: 0796EBEDE1 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(346002)(376002)(366004)(136003)(39860400002)(13464003)(189003)(199004)(7696005)(229853002)(6436002)(6862004)(99286004)(478600001)(53936002)(6246003)(9686003)(55016002)(4326008)(14444005)(33656002)(6506007)(53546011)(76176011)(5660300001)(54906003)(316002)(97736004)(2900100001)(6636002)(5250100002)(25786009)(14454004)(86362001)(68736007)(2906002)(8936002)(8676002)(81156014)(26005)(81166006)(476003)(486006)(3846002)(11346002)(446003)(6116002)(256004)(66066001)(7736002)(102836004)(305945005)(105586002)(74316002)(106356001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR0501MB1988; H:AM5PR0501MB2420.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: EazDqsgy7Mu8umzgyFHBpZSq44fQVuRZp/QZUg6Vw6o8Cpjccivia9FLD8slHDwomtzX2mDs95Gmn6HHRiPq5Cp+0a7O3Edxs5o/OCCAEgzrixeAooIBzlDq2aPzvG1EIe2DWoLhuhIVwE6xhoTZ3gpHLkQt3hMLMJxkiXKDbiZV/v9LmRw/pP0NJzTx3fIKatpmGer4De9pUj8gCzL+o9iHGL3nuUvi5EA/nKQPyJlycpWoarJ5DKdGwIJCEMcmLXiteFrJA8zZudzUHJU3uJlyUTCSQRs/cgawe6sx36IH0aFh9JnG/nJB3cs1Q1R2h3ZihmErPAIGuwPEGlNW+x5mHEfyGrYlbNY56lMGzC4= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM 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: a8a3a348-d20c-4a23-0b62-08d61acaf7f1 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Sep 2018 05:20:36.3387 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0501MB1988 Subject: Re: [dpdk-dev] [PATCH v2] net/mlx5: fix representor port xstats 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: Sat, 15 Sep 2018 05:20:39 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogWW9uZ3Nlb2sgS29oDQo+ IFNlbnQ6IFNhdHVyZGF5LCBTZXB0ZW1iZXIgMTUsIDIwMTggMTI6NTEgQU0NCj4gVG86IFh1ZW1p bmcoU3RldmVuKSBMaSA8eHVlbWluZ2xAbWVsbGFub3guY29tPg0KPiBDYzogU2hhaGFmIFNodWxl ciA8c2hh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