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 523D3A045E for ; Tue, 28 May 2019 12:24:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B36B94CA6; Tue, 28 May 2019 12:14:34 +0200 (CEST) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40042.outbound.protection.outlook.com [40.107.4.42]) by dpdk.org (Postfix) with ESMTP id B69B0137D; Tue, 28 May 2019 12:14:29 +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=skw7eUs8Q9oKgMSxVPS34ZcYYGXUJQX/KhDclDdYvPqOXWdu4iQdtDuqNNP53E2lOo40Ewipj8RuMwiEEmFZENue3qCMm2UqDj+yo0dUN65/HMh+04Ha8Qq8HfXDCk/d2Norqa1hQI+F35MIJG9hXJhDbhbJSXt+k+VRk5PsVpI= Received: from AM0PR05MB4435.eurprd05.prod.outlook.com (52.134.95.151) by AM0PR05MB4866.eurprd05.prod.outlook.com (20.176.214.160) 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 10:14:28 +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 10:14:28 +0000 From: Moti Haimovsky To: Shahaf Shuler CC: "dev@dpdk.org" , Moti Haimovsky , "stable@dpdk.org" Thread-Topic: [PATCH 1/2] net/mlx5: fix testpmd crash on null-flow drv opts Thread-Index: AQHVFT4ileTq0uOxYkqwfLRYScQA+g== Date: Tue, 28 May 2019 10:14:28 +0000 Message-ID: <1559038447-41184-2-git-send-email-motih@mellanox.com> References: <1559038447-41184-1-git-send-email-motih@mellanox.com> In-Reply-To: <1559038447-41184-1-git-send-email-motih@mellanox.com> Accept-Language: he-IL, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR0701CA0036.eurprd07.prod.outlook.com (2603:10a6:800:90::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.8.3.1 x-originating-ip: [37.142.13.130] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 320b8e2e-d23a-4810-36f9-08d6e355445c 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:AM0PR05MB4866; x-ms-traffictypediagnostic: AM0PR05MB4866: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:612; x-forefront-prvs: 00514A2FE6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(366004)(376002)(396003)(346002)(39860400002)(189003)(199004)(76176011)(476003)(8936002)(50226002)(52116002)(11346002)(316002)(14454004)(4720700003)(386003)(6506007)(99286004)(36756003)(37006003)(102836004)(2616005)(54906003)(256004)(6512007)(7736002)(73956011)(68736007)(486006)(4326008)(3846002)(6116002)(450100002)(446003)(305945005)(25786009)(81156014)(71190400001)(66066001)(5660300002)(66946007)(6486002)(2906002)(6862004)(66556008)(66476007)(66446008)(64756008)(53936002)(26005)(86362001)(81166006)(6636002)(6436002)(71200400001)(186003)(478600001)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR05MB4866; 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: 2bxW0DoI1mlC9m3EpNcUt6HD+0aB+7L5p5nGOV0iH5+SzeR6JCpHJOsw8zFEC4uojhFacmgZD4CjBB/2gYJA4ppHbI5+7bXvBnHHR+8puyXukF94T4KL3TFXudb1l5rxbg7wms2p1aoHmuZOEwW4pMRd6f7fS4w6/pVcxJm9pdxn06YGbcsczflj7jYk8d30lSpRWBG2t8OfGJ2U2wfhgtyhhOOKDybSaLWxkZQi470vefrQtSk15fBJrNlV3dVV+GNUefzkPsKe/egaIJloB6PmScVK5mXvWVQDmR20lDID0BLyXyuikWHrmOSeptV9yM38LmcTj4LJRJygK896YF9bY3ZL4/SkYj8r2SOpK9R66UDiYqj/nZnwLRmFEdehrxPkVRBqZFVCjZRVbay86B6vdrUafgIZgFdk8j3BU0o= 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: 320b8e2e-d23a-4810-36f9-08d6e355445c X-MS-Exchange-CrossTenant-originalarrivaltime: 28 May 2019 10:14:28.1481 (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: AM0PR05MB4866 Subject: [dpdk-dev] [PATCH 1/2] net/mlx5: fix testpmd crash on null-flow drv opts X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-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