From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80084.outbound.protection.outlook.com [40.107.8.84]) by dpdk.org (Postfix) with ESMTP id A7B31239 for ; Thu, 24 Jan 2019 12:16:39 +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:X-MS-Exchange-SenderADCheck; bh=aDuRpENetxHsxZyiz3+zhoy+QNY1KGDbLCHnD5lTrmw=; b=tYjnGZtCR2uupBtNfiD/GcWU5LyyYbj5IMv+fpmdLzdOBOiQBgE6CUzLAINeWNXhAD+Tj01y5aVb5BOhaaf1TPoQfmKOiRVJYHdMo9Wrnf3z0QHEflhP2oEiNE+2zAmYPQLH8iRxGCiDD741G7Cu8nZufG1QkOSdmdnVkyaaDCk= Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com (52.133.47.29) by AM0PR0502MB3619.eurprd05.prod.outlook.com (52.133.46.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.16; Thu, 24 Jan 2019 11:16:38 +0000 Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::3c5d:79ff:4933:c7ea]) by AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::3c5d:79ff:4933:c7ea%6]) with mapi id 15.20.1558.016; Thu, 24 Jan 2019 11:16:38 +0000 From: Shahaf Shuler To: Slava Ovsiienko , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2] net/mlx5: fix VXLAN port registration race condition Thread-Index: AQHUsx5Lol2O4ydkRUm3/WPnvPVl8aW+Ri5Q Date: Thu, 24 Jan 2019 11:16:38 +0000 Message-ID: References: <1548229878-1129-1-git-send-email-viacheslavo@mellanox.com> <1548249558-15783-1-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1548249558-15783-1-git-send-email-viacheslavo@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=shahafs@mellanox.com; x-originating-ip: [31.154.10.105] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM0PR0502MB3619; 6:SAC0RzLCyUbXeuJn5xeKYrF3KkR2Cte2Dyfw7S4mygxzxMImaXR/+X7Ph1+Jj6imzKcr6pOU3woDMpCWBIb/fRtFaUinzfT7vb19N7tt0AKiYLmUlwGMA43n3ZQDSKziyz7RAZ+CXL6sErMEk2vYzYL4E7m2eknwbT+kL3KT/LxMV42+TKtnymI75oe5TK0XryTPy897i9c+qTuAVkojIV5QOesnwIRQ88+B6GOCWMuethq7kxkij4tskPNau43fQLwfsn2jr21g7KxJ1VbSB+VxLUsadyrFyonac1uA4Hu669ZsoBAP084AncWkN2WAGPqQ2Fk5B/xH3bjbgrLTmbUw4+pi/HCHkRbzmed1TFS8y/AHiyutwiiri9c+jBJmhRQsPfkT8+c6r/D2YTwP1dIn6LesyZUu4xa+qMeRuF1QM9kSPSxaAaMJbAjELsQ5rc6Upi9RaaJIdVPRG/n48A==; 5:2iTWmVjR7i3PFCwowGHCA7Auk2mEKEAYShJ50v0+bfh7zJDQ21S7bgiw0QnJ6IxNH4NITtZjhKOZ6K+gwjoJiKglceiU95vHLTDOhGlTE4J9cG3mXaqdv+iRvKvkacLbHlDmcq7D3EKvcPhSmD+GjvveyYAjipyxbkAz9AOMKeUrC9MhUzobW1oSCQq+VlwTlM4eejX0o7Rj6shdcuBpKw==; 7:sUX1T7QF1nN5BqEMMBDNY4PGx9QOFLP19tSn9Mj0SouD/Gq5r+ykg30DobyhsbO4EqDmoEU+3FergfnFl1xaTgkqW3upqtrEvQVPeq6iXFt1JknyVUQlGTFcj50r/30JtGOelV3i7pwH9gLsiUpz4w== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 632ffd9e-5d2d-432c-61ff-08d681ed68cb x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600110)(711020)(4605077)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:AM0PR0502MB3619; x-ms-traffictypediagnostic: AM0PR0502MB3619: x-microsoft-antispam-prvs: x-forefront-prvs: 0927AA37C7 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(346002)(366004)(396003)(136003)(199004)(189003)(86362001)(486006)(74316002)(68736007)(105586002)(106356001)(316002)(33656002)(2906002)(97736004)(6116002)(2501003)(256004)(3846002)(110136005)(7696005)(8936002)(55016002)(99286004)(81156014)(26005)(25786009)(476003)(305945005)(81166006)(6506007)(9686003)(53936002)(76176011)(7736002)(71190400001)(229853002)(71200400001)(102836004)(478600001)(6436002)(66066001)(6246003)(14454004)(446003)(11346002)(186003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3619; H:AM0PR0502MB3795.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-message-info: iD1hITmU3H5v3RLZmPngD4xqRyj29O7syao8ygF04U14305xE0LXHWJAs0d84VVktWSA8u5hEFUJWm8Teg4nRbUqDvgXdIzkaq25brKrY3Zk13P04wRonImXHXHIopGRjbOGWxZLMxf1GUx1/qw81dwD3+b3rrXfZbt2tKQZJ+OSKFWT2Cy3JgRxEEGo9C+0TKc5obfrxw6f+q9VOo5IfQmH+giepWmHgL2n0IX14DN2WXUTeQaWGwlRn3xJ1eSIKg8cy+Uyg3ciMRxavZ5q8uaXQUqh16YHfHV94RA9Xem9Wg90N0JWV7ffHApXliXtRB2l7jlF4hFB6JU4dLvBSsj5S24h24vU2PSUkMZ8k5/4WT1bpjS2QSSnauo25eKCFBfpRRqoWjCmzvAPC24dmUYt5avybHgD6Z//AaGm/0Y= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM 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: 632ffd9e-5d2d-432c-61ff-08d681ed68cb X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2019 11:16:38.3194 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3619 Subject: Re: [dpdk-dev] [PATCH v2] net/mlx5: fix VXLAN port registration race condition 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, 24 Jan 2019 11:16:39 -0000 Wednesday, January 23, 2019 3:19 PM, Viacheslav Ovsiienko: > Subject: [dpdk-dev] [PATCH v2] net/mlx5: fix VXLAN port registration race > condition >=20 > E-Switch VXLAN tunneling rules require virtual VXLAN network devices be > created. These devices are managed by MLX5 PMD and created/deleted > dynamically. >=20 > Kernel creates the VXLAN devices and registers VXLAN UDP ports to be > hardware offloaded within the NIC kernel drivers. The registration proces= s is > being performed into context of working kernel thread and the race > conditions might happen. >=20 > The VXLAN device is created and success code is returned to calling > application, but the UDP port registration process is not completed yet a= nd > the next applied rule might be rejected by the driver with ENOSUP code. T= his > patch adds some timeout for new created devices, allowing port registrati= on > process to be completed. The waiting is performed once after device been > created and first rule is being applied. >=20 > Fixes: 95a464cecc21 ("net/mlx5: add E-switch VXLAN tunnel devices > management") >=20 > Signed-off-by: Viacheslav Ovsiienko Applied to next-net-mlx, thanks.=20