From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80040.outbound.protection.outlook.com [40.107.8.40]) by dpdk.org (Postfix) with ESMTP id DBC305424 for ; Sun, 11 Nov 2018 13:42:07 +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=zzaQA0+OFeNSNtTZ2W1Ij186s8AothyzX8VnYpLWwhk=; b=PKw5hAlpkRsUA3RuJJpFYL0/FwIJQ8D7ji6tJ/c/MkoZic3oxBGyiWJlvS/W9CPAg7w37kmLXIUUOqtLsY0NbS/kl1t7AFr3z1UEdbBprTKWzph1z/S9zUTmVurBNh/yBuf6+bBB+hiBykDky2cR2PRForRDSGB31rLfW86RC9c= Received: from DB7PR05MB4426.eurprd05.prod.outlook.com (52.134.109.15) by DB7PR05MB5113.eurprd05.prod.outlook.com (20.177.195.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.21; Sun, 11 Nov 2018 12:42:06 +0000 Received: from DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::bc22:c2f5:208d:826f]) by DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::bc22:c2f5:208d:826f%2]) with mapi id 15.20.1294.044; Sun, 11 Nov 2018 12:42:06 +0000 From: Shahaf Shuler To: Yongseok Koh , Slava Ovsiienko CC: "dev@dpdk.org" Thread-Topic: [PATCH] net/mlx5: fix VXLAN device rollback if rule apply fails Thread-Index: AQHUeNxr/qrlPQ8rzUGfD1HkAbs8KKVKcymAgAANIpA= Date: Sun, 11 Nov 2018 12:42:06 +0000 Message-ID: References: <1541844105-32135-1-git-send-email-viacheslavo@mellanox.com> <3C3703BE-E995-430B-AB08-C2D86C00CD32@mellanox.com> In-Reply-To: <3C3703BE-E995-430B-AB08-C2D86C00CD32@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: [193.47.165.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB7PR05MB5113; 6:IcZAH0uHJDvM4p+cWMsQ1u700Z8KHJ1qzlojBlpyrEofrm66k9LLVnpaxJa28/cpf3t0KSIRcXM8G3b0F76mWAbO3VBpPh9Xt4x7CtczZXc5sUFzKjDpgnWGTa6jPLPWb2ZJRwTO9C3G8tsGMskSHAzrDBbmlu+PXg3cXfZsnzyKF2rmEW/pIcn2oeTI/0RcpA4SVXg64QzWhRyI8J4oF7VxKH8oTYQhMXAUT0NwOq8z/jJ54PvbiXp7YIzB1zAI1mTY9Yu1WVLY78eYbq4TSAkIIBmjtRiyQE+ZI/V/pP0WyC3Mo+i40wKtJcFCehWfxrci2Uc+dkWimQwVMUwSD+R4DJzIQD+nmd5djsDf+RtQvQZwiR00UQMOd0MkVZm9IdTFdTp5TOoc4yYLpC8fG4/9suLuMPml4rzXlJp0hH2sJ4yyAAVqh9oV+cRhgVELbmWto2vvalcBTFVXlltQZg==; 5:0UHCjfQoXC7fl5khA0aSPw7nVbynELiP3s9+SYRQD8rMKWmOouFIUjqphe/TjuvEV03POXBLbzmlx/PdP6ghyP6LiEmBBLYi7x0wtWwb6/Bv/7EgXEjvxENlY7N21VKeGbVfNQ/D+y6B3d55zpZOWfYFVcFLq2eK3DS1Us6zhq8=; 7:Y2ll46f5JJLkYLmZLTQGuchTDLCAD8I0L3ehFpkO1IGPEkmCbwsL3UUEgj1it8UNEIciUYs8XKk30WZOVGPJzPDgeR6+t0D9V+BZDDT/k2AHK8KSzBin1j7+YKujju1zUW+ASg5txGZ4HrtYx5VLZw== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 944fdbfd-d2ec-411e-591b-08d647d316d4 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390040)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:DB7PR05MB5113; x-ms-traffictypediagnostic: DB7PR05MB5113: 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)(5005006)(8121501046)(10201501046)(3231382)(944501410)(52105112)(3002001)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:DB7PR05MB5113; BCL:0; PCL:0; RULEID:; SRVR:DB7PR05MB5113; x-forefront-prvs: 08534B37A7 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(396003)(136003)(39860400002)(366004)(376002)(199004)(189003)(305945005)(110136005)(7736002)(74316002)(316002)(6436002)(8936002)(2900100001)(5660300001)(71200400001)(71190400001)(186003)(478600001)(2906002)(81156014)(76176011)(8676002)(81166006)(4326008)(7696005)(3846002)(99286004)(66066001)(6116002)(33656002)(9686003)(68736007)(6636002)(229853002)(55016002)(102836004)(53936002)(26005)(6506007)(53546011)(25786009)(6246003)(105586002)(106356001)(11346002)(446003)(256004)(97736004)(14454004)(86362001)(476003)(486006); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR05MB5113; H:DB7PR05MB4426.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-microsoft-antispam-message-info: kWm1t/fHPHeaapoXfPLXWZW8VmjJWLEo5iPwUB5zX/0B2QRWewyY4XFBnXAbWpjoePVujMu69IDxP2qtafxPb6fUPC3zts1a2M5A5FDdE77GOxHXcbdCXRYzeNhNWk+x/jtPWQrT1FAE89Snfi5HzxiP1a4RyRW9Mag5Cri6sBZciyT85z9a4O5SYPXCHlzU87WSqkzIGvNrvNQNf9qc/0UfPEoBU3sV1ff8nj4H8lNIgsASD8hk+wGrqcVPeBIAZ8tS3UF0fXxIRM9dgDOER5f8MzNP164TA3At86dKgMSwgcyY068AJbOMU/aJ1V8GWF/oVjZm3zDlPgJvmgVJQBCg3C3ZHyzyoInY7wiBVy8= 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: 944fdbfd-d2ec-411e-591b-08d647d316d4 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Nov 2018 12:42:06.5565 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR05MB5113 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix VXLAN device rollback if rule apply 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: , X-List-Received-Date: Sun, 11 Nov 2018 12:42:08 -0000 Sunday, November 11, 2018 1:34 PM, Yongseok Koh: > Subject: Re: [PATCH] net/mlx5: fix VXLAN device rollback if rule apply fa= ils > > On Nov 10, 2018, at 2:01 AM, Slava Ovsiienko > wrote: > > > > If rule contains tunneling action (like VXLAN encapsulation) the VTEP > > (Virtual Tunneling EndPoint) device is preconfigured before appying > > the rule. If kernel returnsan error this VTEP configuration should be > > rolled back to the origin state. > > The patch adds the missing VTEP configuration restoration. > > > > Fixes: 95a464cecc21 ("net/mlx5: add E-switch VXLAN tunnel devices > > management") > > > > Signed-off-by: Viacheslav Ovsiienko > > --- > Acked-by: Yongseok Koh Applied to next-net-mlx, thanks.=20