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 2F54DA045E for ; Tue, 28 May 2019 13:18:52 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 045BF1B94E; Tue, 28 May 2019 13:18:52 +0200 (CEST) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80089.outbound.protection.outlook.com [40.107.8.89]) by dpdk.org (Postfix) with ESMTP id BD42D137D; Tue, 28 May 2019 13:18:46 +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=jDCRYJFZsoo2EuXDJ5Qe0UMX2/Galr/4gKMNINBN3uENBAKeguqXhDBja/Zqf/34uHOvG2OuFXk8Tz0J8xhGCl0bJ2FrmdLcHqtM7eahlRwkd0LWZxzOkcFHvdf75/PxF4EN8EQjO4N+46u+PDkEO3M0UpX79gcXQwFVy69z1i8= Received: from AM0PR05MB4435.eurprd05.prod.outlook.com (52.134.95.151) by AM0PR05MB5633.eurprd05.prod.outlook.com (20.178.115.210) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1922.20; Tue, 28 May 2019 11:18:45 +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 11:18:45 +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: AQHVFUcdCM97Lgqwj0+oXUdRUvst0A== Date: Tue, 28 May 2019 11:18:45 +0000 Message-ID: <1559042301-73445-2-git-send-email-motih@mellanox.com> References: <1559042301-73445-1-git-send-email-motih@mellanox.com> In-Reply-To: <1559042301-73445-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: LO2P265CA0318.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a4::18) 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: 3742a8b9-e71e-4553-df90-08d6e35e3fbc 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:AM0PR05MB5633; x-ms-traffictypediagnostic: AM0PR05MB5633: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:612; x-forefront-prvs: 00514A2FE6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(376002)(346002)(396003)(39860400002)(136003)(199004)(189003)(8676002)(186003)(8936002)(37006003)(26005)(81166006)(81156014)(5660300002)(3846002)(6116002)(450100002)(54906003)(50226002)(4326008)(36756003)(305945005)(6436002)(478600001)(53936002)(86362001)(14454004)(6862004)(25786009)(6512007)(6486002)(486006)(316002)(2616005)(476003)(2906002)(71200400001)(256004)(4720700003)(6636002)(386003)(52116002)(76176011)(68736007)(102836004)(99286004)(6506007)(66476007)(73956011)(66946007)(7736002)(66556008)(64756008)(66446008)(66066001)(11346002)(446003)(71190400001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR05MB5633; H:AM0PR05MB4435.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: qgV6hccUuf0L+FQJ/TuaNcAoL+Ta6g6cpwWdTAyce3av6F/cCwDu9ucz5ZcbJ70s3lOqazF/ePCBB9d4QSFTSq+Ob7T6wGfqTnTX8y+z5FamWomKrLKdLOGP0oivBlSH640Zhs9vqmP2kupbU3VUuEToS497OGvm+y/lvabf1i98w772ijoKPkNJcxqWgUJJxze4ZE+q+N7tQND0/z7oZnhlwX+1HrnoPm5Uhrd1BwPyo4fTnAP0mJ8QkbKdF9Gauax3nKgG6zybsZEuep6vcFEi3OgyON0aGXRlGD32UVKCeluf0OlMgIOujpGCcVN5UKTIJmCKuRhPFItd+L9uI8FA6tBOFgkrkYB5ZYs0l6JshiNVTn/VMBgQ0bO+/x7vkiWPcbh4qyPVL4erj1dBfgCtzQPjEqtslELl0iGg554= 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: 3742a8b9-e71e-4553-df90-08d6e35e3fbc X-MS-Exchange-CrossTenant-originalarrivaltime: 28 May 2019 11:18:45.8085 (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: AM0PR05MB5633 Subject: [dpdk-stable] [PATCH 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 bran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