From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C3440A3201 for ; Sun, 20 Oct 2019 12:07:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 73DB21BE3D; Sun, 20 Oct 2019 12:07:58 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70077.outbound.protection.outlook.com [40.107.7.77]) by dpdk.org (Postfix) with ESMTP id 912D41BDAE for ; Sun, 20 Oct 2019 12:07:56 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YywaUjTw4zEg0aZYPp7z3h2Nw9NCH021KQxDN5ujZABgSI/d1MacxB2TnpYhHGRyA9MnS4Pyfby/0pJtgr/jBS+SI9zZbMvdgJXx3IyFPXMDfFeZ9NRq1Co+yxHBDqMch7zZ5Xwg/k9Zo+V4Cuy2GQnypEHS7L8uhY1E0JbtvwKuPI6tPNaYv6V1G2ZAWK/TLuRCRVjB2++FHqg1RYral+LGaK+5+7ip8/LkRzVh1aHAeb7bxbD724x17kQbb6dsjU8snT5PvCQPfCAFYuBfmQamWQ3EKtOv9Ms9eG9yf8ISlmo74MiiyldoAftBqQAOUnVAcQI+2NRRmP/oYwBKag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=x1V2Hi5FyP3bpCax+I7f6DlB53QHI7AzMZZsZD3G5iQ=; b=OaK0zbW1jFsXJUYPIfN1CPP0Kp5+VOewWDI1a/FSudL2zrZ8Ivr49VxnaE/NKIzddr40xC8W8cm7v7CmsOZOiGzpwRGjOAEgjE3VfIPVg5ks+4bCYo67gRUhPcn9QOYTgEZbr60UmS2TysTDg9uuENGvNqw0SoEJanlPwBPTYZsHzVI6ZMikJlZvmJ6WinYiTRTSMvfwU2bF8v+vBv+jvoWnbLc2WCiw7IuyDFC72rO9d9haSEd4r6PiSGgE2ZLTc0MCsLyATT2o6o/+kmQLT5+kg1QR16ZXJoKscNyIOWUZycAu1t05HHh+kR5pCj3r255syLKLk1mirT96pe6eNw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=x1V2Hi5FyP3bpCax+I7f6DlB53QHI7AzMZZsZD3G5iQ=; b=PitT0BSj5P3JS1H/8xWi1xRstbX1ZflP+RwDwlsEhBNJhmEqiUj7GF9n7Oa7LNJaUgqKlXMqAnBgrRNOKQq9piQzoQglX032pSPy2/YEVCcveWaIM7ZbTmojbi94V6KaTSf6ejpqX5yB9OCXQotSF/Ff0HD+JFULeoCYiI/qQHY= Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com (52.134.65.161) by DB3PR0502MB4074.eurprd05.prod.outlook.com (52.134.72.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2347.18; Sun, 20 Oct 2019 10:07:55 +0000 Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com ([fe80::1528:69ed:ffec:764b]) by DB3PR0502MB3964.eurprd05.prod.outlook.com ([fe80::1528:69ed:ffec:764b%5]) with mapi id 15.20.2347.028; Sun, 20 Oct 2019 10:07:55 +0000 From: Raslan Darawsheh To: Moti Haimovsky , Slava Ovsiienko CC: "dev@dpdk.org" Thread-Topic: [PATCH v2] net/mlx5: retry when link update fails Thread-Index: AQHVg/QZYfFv0Zh1E0mgDq9P+EXCUadjVF5g Date: Sun, 20 Oct 2019 10:07:55 +0000 Message-ID: References: In-Reply-To: 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=rasland@mellanox.com; x-originating-ip: [212.29.221.74] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 060ee963-fa6f-4d41-6737-08d75545608c x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: DB3PR0502MB4074:|DB3PR0502MB4074: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1284; x-forefront-prvs: 0196A226D1 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39850400004)(346002)(396003)(136003)(376002)(366004)(13464003)(199004)(189003)(64756008)(66476007)(66556008)(55016002)(33656002)(8936002)(4744005)(316002)(52536014)(5660300002)(71190400001)(71200400001)(14444005)(256004)(76116006)(66446008)(66946007)(110136005)(446003)(11346002)(6116002)(476003)(102836004)(3846002)(26005)(74316002)(486006)(25786009)(86362001)(53546011)(76176011)(7696005)(6636002)(81156014)(81166006)(9686003)(6246003)(478600001)(66066001)(2906002)(14454004)(8676002)(186003)(7736002)(305945005)(6506007)(229853002)(6436002)(4326008)(15650500001)(99286004); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB4074; H:DB3PR0502MB3964.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: phcNQiiO8BXbTU5ecU7pP0ywWYpPjc95KT2l8rQB1LR1P6rlcf42hQ4/1Hao1CyyEKrqRaNQTLni7UPjZx+PYvuF6YUXJFEvoKdCI5mXUmBIPFs/j/hJaP03p/jZdoH6DOy6PjTJHFXyZlqVHlC2g63KDXTBXf1DTmQxNpKrjQf8h1LcdBNQ28xT6xn/RB+RxJh4g8CVT1oKjvLTCebY9OmdLS0ODn/G7UmteHSf3r5zik/dtpKJZg1zINYFUcgBZAiqAtV+E7eUS8lnmaK149ld+NG7Mjlz7SWF80S9zFnvJOWBg9Q0B1EMnDF7jMOuOD/DH04t1hsmKRMfPqH4cdnF20Ed857M6dEpX9r3jQuEP4LM+9jAZ0fMaaDoCuXxcacRT4t27mmMUma57q6Nhxx9g1+f+y/6inPApcem1Eg= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 060ee963-fa6f-4d41-6737-08d75545608c X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Oct 2019 10:07:55.6593 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: KBvjdtCv3i2Spo0zQs4LlEEv28xow6Mm37joi3i01jjCHb21nhtAYRJEf1fDfvYg4mabWOb4gjVA2tGdM7QLXQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0502MB4074 Subject: Re: [dpdk-dev] [PATCH v2] net/mlx5: retry when link update fails 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" Hi, > -----Original Message----- > From: Moti Haimovsky > Sent: Wednesday, October 16, 2019 10:34 AM > To: Slava Ovsiienko ; Raslan Darawsheh > > Cc: dev@dpdk.org > Subject: [PATCH v2] net/mlx5: retry when link update fails >=20 > mlx5_link_update immediately returns when called with no-wait parameter > and its call for retrieving the link status returns with EAGAIN error. > This is too harsh on busy systems where a first call fails with EAGAIN fr= om > time to time. > This patch adds a (very limited) retry on such cases in order to allow > retrieving the link status. >=20 > Signed-off-by: Moti Haimovsky > --- > V2: > * Code rebase Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh