From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80052.outbound.protection.outlook.com [40.107.8.52]) by dpdk.org (Postfix) with ESMTP id C3A592BD5 for ; Sat, 15 Sep 2018 07:23:27 +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=SmRJYiBMq8LcjMpVFTZzn5wYEnLOC5ah8jRnvHIjFXs=; b=gx6oRIEv7AbHZUui9F5OGm/bx19lhNktlKsUDPlSW+SswNevmqTJYn87BAO3bCiuJjRN39l3+igvPyKq28xJnW4MbjgH9wTsfN4Z5kA7qhcokMS2UnsyFkKQXnUkh8RQwI8chT9s/1ggcuCKSgRAo9bM4FiC48GUhI11kKv6fk4= Received: from AM5PR0501MB2420.eurprd05.prod.outlook.com (10.169.149.146) by AM5PR0501MB2467.eurprd05.prod.outlook.com (10.169.150.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.15; Sat, 15 Sep 2018 05:23:25 +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:23:25 +0000 From: "Xueming(Steven) Li" To: Yongseok Koh CC: Shahaf Shuler , "dev@dpdk.org" , Adrien Mazarguil Thread-Topic: [PATCH v2] net/mlx5: fix wrong representor port link status Thread-Index: AQHUS/QeoSgUbOvnE0K43jxLu1y6FqTv/BYAgADT7SA= Date: Sat, 15 Sep 2018 05:23:25 +0000 Message-ID: References: <1536216636-15673-1-git-send-email-xuemingl@mellanox.com> <1536906477-118136-1-git-send-email-xuemingl@mellanox.com> <2413B4CB-1001-4F58-9F08-CCA446378571@mellanox.com> In-Reply-To: <2413B4CB-1001-4F58-9F08-CCA446378571@mellanox.com> 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; AM5PR0501MB2467; 6:XB0LACRkz4eF2IoGmJAGqPkGGdqZOc35oTw579IU6P+RpHXo3FEQqbdEWGFUh7G1oWq4FpfsEF1VPNp2omaM7n16vXbvEcBkkQH5eO0v5tTCZkUBPK1DoMOoqsspqy7lqzzk7yMMquxrWeP/X8XZW5T6xj8QG2WJLLrsL6RRnvyP1NAhyg9oTH06cWcQLe3WTkEg+AMp5KIrriZTkRMRR82kq2EFLWI2qdSJj8pBK4lmSLwvNwotuRI/onF1Wiw1BoI1ntOtYE9UiNHgidPjQ74i1ywhFWc26qrlov3lPHfkdLO+kS9G2iaUyHlx2iECCv3zkZ5Wy0IuZ7lk0j4L1+/rPrZ0fn+HlcrSHGFT+StpVyWMM3sOrjkFYvJJQo6rqBaEROnLBXf77/VBs9FWL0fnx2XgpEhEYYB5mSndjAjukbjs+GalB2qDdY98z0lpYKCyJKSaR6q4FuE1QVyNFA==; 5:hruJIpLXg4m1ejn69R81s6cl/A7Xc6uhQ1BD8gmn1calgfYLp8ygyla0vUCmHp98Civ3A6xrdGX8FFQh0nbRxmk/JF1hPxWAD0+uOuGFXifysGkkXwdNZRLHDeq2IcRav/7rQLDkp88IPx6nJ2+pUjzilsSmfGetKAqZiFUYNFU=; 7:PxqShGm0t/DrF2nxxLTw+vqPnnIn1QsOqq1WFEtbJeIvMYqACQAqcKpRzooVI4h0IeAg6AkMrd0l0OAqBCyNqy+dC6egp2N67C884r+AvDJiqMiwuHZ88igEM3QgYkIcsOnMXfrh5L70OtMYivnXg1w4ATIHtu2slAjLkbghCuB/FrYh/KlJQ1dV3GnzcfVnGGTOERmHRrCgEyXqdwls3Frz6zrhG4T8+rbTIvPp0ihckq2/H0n+RTdFUvDOL36y x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: a664b9f7-9302-4295-e045-08d61acb5cb6 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM5PR0501MB2467; x-ms-traffictypediagnostic: AM5PR0501MB2467: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr 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)(3002001)(10201501046)(3231355)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123562045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699050); SRVR:AM5PR0501MB2467; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0501MB2467; x-forefront-prvs: 0796EBEDE1 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(39860400002)(376002)(396003)(366004)(136003)(13464003)(189003)(199004)(26005)(14444005)(229853002)(105586002)(4326008)(53546011)(478600001)(6862004)(102836004)(256004)(99286004)(9686003)(6436002)(5250100002)(55016002)(54906003)(68736007)(6506007)(6246003)(7696005)(53936002)(33656002)(5660300001)(2906002)(76176011)(97736004)(316002)(106356001)(7736002)(11346002)(25786009)(476003)(2900100001)(486006)(86362001)(305945005)(8936002)(446003)(6116002)(3846002)(8676002)(6636002)(81166006)(14454004)(66066001)(81156014)(74316002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR0501MB2467; 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: q/ZSxhB2Xdnt/Fl5sLeEtktr/4gqhheIPtpgO5Fu5OfQAF/avjwQIHyFaEXXX2CIHtpRt/o33xgVlrk67RsoQXULWDhaP4BJ8sdr60Cp82klnPPtxzVT8yVkDLGf5TNrjmHxDttOS5evuj7Y5Whp24k//YOC+Yoq3mEWmFrZL1BfA/uzXdDe5UlOBPTX64rR0NB1KrrjvSKBmXJJWUI80GhLg75JQ5lQ8rvbDAjZGakdYk2870waUw0xL2GyYtff93YfEufMRI9KEGLhg7QSl9MXEvZ7d2DV5WEp2TPWTidjmv0bfoOEsnGM8xj6WO1J08Zy8WrtVWiYVvHJFsbu9U00LNv4fzNGmEm+9iBZ8C8= 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: a664b9f7-9302-4295-e045-08d61acb5cb6 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Sep 2018 05:23:25.4875 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0501MB2467 Subject: Re: [dpdk-dev] [PATCH v2] net/mlx5: fix wrong representor port link status 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:23:28 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogWW9uZ3Nlb2sgS29oDQo+ IFNlbnQ6IFNhdHVyZGF5LCBTZXB0ZW1iZXIgMTUsIDIwMTggMTI6NDMg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