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 98550A328D for ; Tue, 22 Oct 2019 15:30:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5590D1BEED; Tue, 22 Oct 2019 15:30:09 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140050.outbound.protection.outlook.com [40.107.14.50]) by dpdk.org (Postfix) with ESMTP id 508E11BECD; Tue, 22 Oct 2019 15:30:05 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hP+Ja7Ogyt/7hJTqM9sOCs27QWB/ErcZqj6DbJHwuq/1I45yI9wLm3koaDAWuyjK7cXckGLN6kX9Y4XyW/Zx31wCkpdtHfNPlN8VYC3pZbngojGZSu81rbrCnuq5fyiLTxoevdvHRH6Al1TFiIPufHLwAFVej4He7aaz1BRLwczXje5WajXgh3+t39Ne4TZuXqdRsE6tk8ffH+UN9BIRg3/Sx7+v6WtVWhlYpU27fsEucnpPoYYAyd7uf6vDgC2dZm6cFTL6Vraj+1mppYithhTH0kPnu23rRukwS/IQxJGTPNLG56s1ppTYj9nNHaE0JJTdzGR+rjBQIbC8Ry9cuQ== 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=L7KWw4Q3naIDXF2HMEAwrGzVXf2OZWO3iHCJdrfNAos=; b=R2CazEXbMcuDbcWb+muDXqQzgTNeKCwaz/PP64nwChebUSUGKaGx/0lMJxkDiJSTUa7yhvPWX9J6P9szuF0Gr67CxDRpQoUaTiVbgxVKFqLydfSRrnrHFCYpT48OY81cr7WLSzGfm0rhJPY04lTZwDfLaar8KhBhus71Z3Hr0okahZEcBqdQ9hL8H6i/E8p4eMuqiFl5Wfrj69M7wvjM9k29xI5zOpaPqQcnJ546Riw1bcJ2z/m20nrQoaQjDARDi8w2YOefuHlIGfWeMBQ3bd0elOiMlNHYr4jCs7JpEkdaemr1U1FLYbwICR1LzF7yi8KbcaeZPZy4RFyFlUf0PA== 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=L7KWw4Q3naIDXF2HMEAwrGzVXf2OZWO3iHCJdrfNAos=; b=nZgkvqvBfeqiMWf2NJgkaK8oYXd7QO4Y56hZ+2Aj9o6YKa0oLHbk3OVGLv8Iku4aet+7+ZeDiazf3PSLCeMN2UOczJDnvsIKgOgf4jb5NF9vA/x3WI2jfXKGZbj6tmyUkUatH1pt3SaxVZHmg5xAuJwlnLqJSPlRv9Wbngr1clo= Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com (52.134.65.161) by DB3PR0502MB4041.eurprd05.prod.outlook.com (52.134.66.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2367.20; Tue, 22 Oct 2019 13:30:04 +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.029; Tue, 22 Oct 2019 13:30:04 +0000 From: Raslan Darawsheh To: Matan Azrad , "dev@dpdk.org" CC: Slava Ovsiienko , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] net/mlx5: fix DevX event registration timing Thread-Index: AQHViKsUuJm44hUb/kallleDh5+j5qdmp6eA Date: Tue, 22 Oct 2019 13:30:04 +0000 Message-ID: References: <1571729615-22925-1-git-send-email-matan@mellanox.com> In-Reply-To: <1571729615-22925-1-git-send-email-matan@mellanox.com> 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-ht: Tenant x-ms-office365-filtering-correlation-id: 1be438b2-3c0d-4e9a-e608-08d756f3f294 x-ms-traffictypediagnostic: DB3PR0502MB4041:|DB3PR0502MB4041: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3383; x-forefront-prvs: 01986AE76B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(13464003)(189003)(199004)(186003)(446003)(7696005)(25786009)(76176011)(305945005)(229853002)(99286004)(8936002)(33656002)(55016002)(7736002)(81156014)(8676002)(2501003)(86362001)(64756008)(66556008)(66446008)(66476007)(6436002)(81166006)(476003)(66946007)(11346002)(76116006)(486006)(54906003)(110136005)(26005)(53546011)(6506007)(3846002)(71200400001)(450100002)(71190400001)(102836004)(6116002)(2906002)(14454004)(4326008)(6246003)(498600001)(66066001)(74316002)(5660300002)(256004)(52536014)(14444005)(9686003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB4041; H:DB3PR0502MB3964.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-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: fBTQD7H+AS2yFifuOGbc/y3w4snYEJf2jbAONbbVw2ccZX647ExGDi+ofxVNcQ6+LwfiO7w69lk7pBFaM+UyGadH0iiq6k2pirtIc9Rvpa39I0RNbHhbDPcpYnUcdEWB6AHtgsER4PENnqJB5nFLBEXrrwBQvuqGGjioRfTB/QAyBPLWC1QuL4Nz/tAJ2beKo0TE8y3rNWGX5sEM2btV/zQ23bbPMbkB2nGXjt/Ovja+2sKwSTvoUCm3WfwG6WgGZRjobkvesCsu5HyAe2J1h+0SLlwyew6l4PpR4/MEi/0O+hDhv9nJy2fEUGnYxvuq0Ejwwq6rh8FYH2hqwEECxOM6ak1sxbfHvEidf9vjvh3PMdRlNJWCgC7OuNymn6ClLkmPKWJQoGtHXcRVxd9SNgrI3BwC9fvQSLrFb1aRRsq7bWwIxPS5GuXI9Z48Cd7/ 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: 1be438b2-3c0d-4e9a-e608-08d756f3f294 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Oct 2019 13:30:04.1911 (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: Adwz4B4u6iuyLyZKt8GIN5/q97UbHM/8K7Z2lCWII03s/znsQkvFWRCXm9VrVlbz19RGBNlTf6ItdBRMn5eu2g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0502MB4041 Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] net/mlx5: fix DevX event registration timing X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, > -----Original Message----- > From: dev On Behalf Of Matan Azrad > Sent: Tuesday, October 22, 2019 10:34 AM > To: dev@dpdk.org > Cc: Slava Ovsiienko ; stable@dpdk.org > Subject: [dpdk-dev] [PATCH] net/mlx5: fix DevX event registration timing >=20 > The DevX counter management triggers an asynchronous event to get back > the new counters values from the HW. >=20 > The counter management doesn't trigger 2 parallel events for the same > pool, hence, the pool cannot be updated again in the event waiting time. >=20 > When the port is stopped, the DevX event mechanism wrongly was > destroyed what remained all the waiting pools in waiting state forever. >=20 > As a result, the counters of the stuck pools were never updated again. >=20 > Separate the DevX interrupt installation from the dev installation and > remove the DevX interrupt unregistration\registration from the > stop\start operations. >=20 > Now, the DevX interrupt should be installed in probe and uninstalled in > close. >=20 > Cc: stable@dpdk.org > Fixes: f15db67df09c ("net/mlx5: accelerate DV flow counter query") >=20 > Signed-off-by: Matan Azrad Acked-by: Slava Ovsiienko Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh