From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00084.outbound.protection.outlook.com [40.107.0.84]) by dpdk.org (Postfix) with ESMTP id 942CD1B1E1; Thu, 18 Jan 2018 14:29:46 +0100 (CET) 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; bh=+8m7w4EUEeyDvIaEKiwqQUrzQcTDvUi8pgKyFKuowEg=; b=uA2ldC/S3h5bryZ44TSp4mJK7pXvp9gw9doRIqwJCkeq94gBD8sI3768Z4KwMuuYiZDXHGZhGF2vvTWp3m9posOMhoHP4T1ujuMMwqvlm5kykU2pMS0p0kN1GQNhu7k59KRfXLeyMkD9USEfJkvwY2y9XZ69aE/SrnZkOb4J0nY= Received: from VI1PR05MB3149.eurprd05.prod.outlook.com (10.170.237.142) by VI1PR05MB3246.eurprd05.prod.outlook.com (10.170.238.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Thu, 18 Jan 2018 13:29:44 +0000 Received: from VI1PR05MB3149.eurprd05.prod.outlook.com ([fe80::789c:3f06:bb88:e29c]) by VI1PR05MB3149.eurprd05.prod.outlook.com ([fe80::789c:3f06:bb88:e29c%13]) with mapi id 15.20.0407.012; Thu, 18 Jan 2018 13:29:44 +0000 From: Shahaf Shuler To: =?iso-8859-1?Q?N=E9lio_Laranjeiro?= , "Yongseok Koh" CC: Adrien Mazarguil , "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [dpdk-stable] [PATCH v2] net/mlx5: fix handling link status change event Thread-Index: AQHTkDEyHS6F/qP9JEm9IxI8NbPjA6N5oEBg Date: Thu, 18 Jan 2018 13:29:44 +0000 Message-ID: References: <20180115234800.3316-1-yskoh@mellanox.com> <20180117174413.48395-1-yskoh@mellanox.com> <20180118075303.m2wvfkkcioypxj5w@shalom> In-Reply-To: <20180118075303.m2wvfkkcioypxj5w@shalom> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; x-originating-ip: [31.154.10.107] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR05MB3246; 6:5pJioqTXSf4+ACcufL+3VfkYuKeLI9P7AtyJVu6swsCtnFsfLnF+6JdCteCE3rB5Ds5uHvO1xWzgHejfH29i48NWs47lP49DwOjJ3x5RJjoLPpB8cFoY9eY89w2uPc3xp90R5J/JhS/uD86uPvT9wH9PyyIS/mg698e+ztLYuEqyXi1ToV4jWj597RV+Krz1hFH/ttgEcE4b3IGwzxNJUWNNe9rqaZ10fHV5gejhDWNw3C1LAOA13vDpdqU0JezdehU4tm+mY3oFK9rXdkK3sus4mbKfVa2q2C7QDJhOrQXOofGDoFRqXLrW49ldz8buWiMmbJEW1HTDxHT5CMt4buuBokspsYkZMHG6uw9M/QSulduMftLtXieLcwn6BLpe; 5:j6aaFpqkm3yZ5lnnQH9CwYs8rQu7s9g6y12z/LD0yo5hACfp8gsYimYEOH9iP0m/5ATfC3rLuM+Uf6xuzymFNeC0vZzB5ZXGcqX4J9uqiI2MPhINcA+tE4joehQrosvyCApqOTDdWoaIa/lN0bZW1hBU1P8SW3t8BSHwjmjaHrU=; 24:EShMbezBosXpCV55k1RlR4DpTfH8AYXtYkgbHp0JFSDnCav+ys9Oy2oyntjSVwZFX1UCdkB1qYPDMSIXr/CA/aBkDowMm1Rlkk6jycomwVc=; 7:cQ8J6FQCPzpcMsQSn0cKryS8UuEjEwoGUS4/gqfuwBpQ6ItU87Nte9ZZ4M1/ydwlCeGFzQaXDZqggyd8kKOEz2u/MulEDL0Jsu6ilc2AgmRRaZSlWcIQ6XIe+8+ArhLnVcASw8JijaWmSldHQH+IvkcNQ2PZ89kkoAozL/PuJgwb8ArIFdv/eZ7H50zQy7WoGMFbBqpqWIYpBhexECHZ2Jk/NPDgnOJl4jd1FesRj834LY5OBnbHmKd4NHZDW0Ri x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 0e1c054f-51ca-45da-ab24-08d55e778996 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(2017052603307)(7153060)(7193020); SRVR:VI1PR05MB3246; x-ms-traffictypediagnostic: VI1PR05MB3246: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(3231023)(2400062)(944501161)(10201501046)(93006095)(93001095)(3002001)(6055026)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:VI1PR05MB3246; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:VI1PR05MB3246; x-forefront-prvs: 05568D1FF7 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(376002)(39380400002)(346002)(366004)(39860400002)(189003)(199004)(229853002)(3280700002)(14454004)(6506007)(26005)(2906002)(7736002)(7696005)(3660700001)(9686003)(316002)(68736007)(54906003)(110136005)(76176011)(33656002)(6116002)(3846002)(102836004)(5660300001)(305945005)(55016002)(2900100001)(6636002)(2950100002)(478600001)(6436002)(81156014)(106356001)(74316002)(99286004)(105586002)(81166006)(4326008)(86362001)(66066001)(6246003)(97736004)(8936002)(25786009)(53936002)(5250100002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR05MB3246; H:VI1PR05MB3149.eurprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: vKiH80ZvU5M+MUUGqqsGi9h39e+kIfestQ8J4gvSrWwo1uuurKsAHgfWn2d+AQKlQ6XemAPMe31yhyc1Eu3Ttw== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0e1c054f-51ca-45da-ab24-08d55e778996 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jan 2018 13:29:44.4640 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB3246 Subject: Re: [dpdk-dev] [dpdk-stable] [PATCH v2] net/mlx5: fix handling link status change event 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: Thu, 18 Jan 2018 13:29:46 -0000 Thursday, January 18, 2018 9:53 AM, N=E9lio Laranjeiro > On Wed, Jan 17, 2018 at 09:44:13AM -0800, Yongseok Koh wrote: > > Even though link of a port gets down, device still can receive traffic. > > That is the reason why mlx5_set_link_up/down() switches > rx/tx_pkt_burst(). > > However, if link gets down by an external command (e.g. ifconfig), it > > isn't effective. It is better to change burst functions when link > > status change is detected. > > > > Fixes: 62072098b54e ("mlx5: support setting link up or down") > > Cc: stable@dpdk.org > > > > Signed-off-by: Yongseok Koh > Acked-by: Nelio Laranjeiro >=20 > Thanks, Applied to next-net-mlx, thanks. >=20 > -- > N=E9lio Laranjeiro > 6WIND