From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id A80B4A045E for ; Tue, 28 May 2019 14:10:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3C92F1BA5E; Tue, 28 May 2019 14:10:02 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140047.outbound.protection.outlook.com [40.107.14.47]) by dpdk.org (Postfix) with ESMTP id 5A50F1B94C; Tue, 28 May 2019 14:09:56 +0200 (CEST) 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=jNQYdlJOwAAmjjLwhUSMDiWzG1uDiEUqDFJTFnVdrPM=; b=EHI9qi89Oq68xBcMqa38yCsdDPX43kwgY23Xegf1WbgOC6S2uQBPfZie2ZzAGvI09Bl6xej9iuvij3U9qN1VmTkPEGexmX/gHnLOuB80EoVMXfTPtnPYde2yZv3426UWmAC00uofaa4XMwZaUtVjBbibrOV5YNz70hNBaUYoaJY= Received: from AM0PR05MB4435.eurprd05.prod.outlook.com (52.134.95.151) by AM0PR05MB4385.eurprd05.prod.outlook.com (52.134.126.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1922.18; Tue, 28 May 2019 12:09:55 +0000 Received: from AM0PR05MB4435.eurprd05.prod.outlook.com ([fe80::c40a:d6fe:1246:7278]) by AM0PR05MB4435.eurprd05.prod.outlook.com ([fe80::c40a:d6fe:1246:7278%4]) with mapi id 15.20.1922.021; Tue, 28 May 2019 12:09:55 +0000 From: Moti Haimovsky To: Shahaf Shuler CC: "dev@dpdk.org" , Moti Haimovsky , "stable@dpdk.org" Thread-Topic: [PATCH v2 1/2] net/mlx5: fix testpmd crash on null-flow drv opts Thread-Index: AQHVFU5CTyi7+syG+ki0eQoNzvYsqQ== Date: Tue, 28 May 2019 12:09:55 +0000 Message-ID: <1a0624fff1738b1e1c158bc276324a554c5b8b0d.1559044929.git.motih@mellanox.com> References: <1559042301-73445-2-git-send-email-motih@mellanox.com> In-Reply-To: Accept-Language: he-IL, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR0602CA0012.eurprd06.prod.outlook.com (2603:10a6:800:bc::22) To AM0PR05MB4435.eurprd05.prod.outlook.com (2603:10a6:208:61::23) authentication-results: spf=none (sender IP is ) smtp.mailfrom=motih@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 1.7.1 x-originating-ip: [37.142.13.130] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 11d57f27-0276-4ddd-8ab7-08d6e365653e x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:AM0PR05MB4385; x-ms-traffictypediagnostic: AM0PR05MB4385: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:612; x-forefront-prvs: 00514A2FE6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(396003)(376002)(39860400002)(346002)(136003)(189003)(199004)(68736007)(66066001)(26005)(102836004)(6862004)(54906003)(14454004)(66946007)(8676002)(50226002)(6636002)(53936002)(2616005)(186003)(71190400001)(8936002)(316002)(81166006)(37006003)(71200400001)(6512007)(446003)(11346002)(81156014)(52116002)(25786009)(256004)(5660300002)(7736002)(2906002)(478600001)(476003)(305945005)(64756008)(6506007)(486006)(66556008)(386003)(66446008)(6436002)(36756003)(4326008)(66476007)(450100002)(73956011)(86362001)(6486002)(6116002)(3846002)(76176011)(118296001)(99286004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR05MB4385; H:AM0PR05MB4435.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-message-info: uJMrLLdek7tVZOjEwxcczp4CexDgDlml/CTyr7B7dLe3m/S8jBajxushjcHenwwr9On3BR4yZ5xHicAiME3WTDXqKKA0yIHnkI8hORO6xqPXQRfckv9gNsqIVS5lTsP7tQ36nadTtdmZjjkkJxYzWHj7drb6LWTP7vsrhZJJid/TPQUfgcae/amaHjCW/K83x1WcHzKr2d0Q/GJ7l64T8Bu0EckLAfnPO97Z0zHwReBEJeJxU6TkaWV/x2WTwbZ104XUT2aI1gEstkx+9MY/mBcVTUFG877eqGnyV+pCdK8F3DvcaYCUq/GWrEKYsEixKhzjQ2SJTgi61Xj9i7E0Oi+pqTLp00WT3mB92ognPil2gVz3mvdh3CFbpC7DandrOiCYzml+v0t6riK5zFCPJL07JM8T0Rg+l6sfN1Uk0xY= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 11d57f27-0276-4ddd-8ab7-08d6e365653e X-MS-Exchange-CrossTenant-originalarrivaltime: 28 May 2019 12:09:55.3171 (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: motih@mellanox.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB4385 Subject: [dpdk-stable] [PATCH v2 1/2] net/mlx5: fix testpmd crash on null-flow drv opts 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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