From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1CA08A04F3; Mon, 16 Dec 2019 07:50:34 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 735F81C11E; Mon, 16 Dec 2019 07:50:32 +0100 (CET) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10052.outbound.protection.outlook.com [40.107.1.52]) by dpdk.org (Postfix) with ESMTP id A558D1C11D for ; Mon, 16 Dec 2019 07:50:30 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZsdS9QL+epJYfEIscmGn4wBa/FEyr9a1PJDrKvmhZwaxiYuGOteeJk27HrOxbW2kRRnDbBGA5oFupmMWDBcLyVq3nBg/8mK4YiUw2dqnNlVw6GTFCZofgZWoVYNrt2NSd+UbZOUc4vrOi27/27NXG0VrsRi1s7fSIJbQ+v0OKUKMY/kn1IlxZf2WbWWJ86Yw8GLt3pWI/aMg0Ztig6dnuziOokbfiNIYUfvwSeJu2t6bhQwUpGoMTgs0Rmnz7HF1En8IwYof00QsLKldtivIymmEMRuyfJ5kuPwsVL6Q5CP3jdDi2XGX4M4XIqR5z+whPQ5ccxsStCPI5i2BZx0KEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nH3ctQDKnn0uu9E9wjm7cN5ZOp+/+5UOEZKhqaPkLS8=; b=UP7cK4Ht3AjswLQnm1jEbI8qh5DFGi7keDfeGsjW+YT2iDxrH73Nyglhjl7LATFAE3u5GKzKxCLtFO6uNAZ/ecWnaDF1ln+45zW5HbbjX7wtdV2H6Qc2I5k+vOSjjlgFh0QGqBBq+Jg2oPJ65ymKW7g9Ge7KPzmJ5b3/DTqUiM5bvpGFIKPzWbblU/pxiLd6ik/TjwDEPSnRU8Fff09srVjwfCAAED7vG9gh9o8IM2cXDsF8Q+20F6u2Wgt20mmDwYVAveKrmyV+rrOCZKpFHpYLDgbXWmyL9YD0p+oOkOXgIahQziBPlMcz6+F5nrULQF+FojMHpp3T1+WFgC7oRw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none 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=nH3ctQDKnn0uu9E9wjm7cN5ZOp+/+5UOEZKhqaPkLS8=; b=FlU25bKvdetaNsnGC1njCJjEYzFK30mIyHaRfz6BavP/IAcyQahn+7KpQZRIsMrSWWxY4755v3sxNoot4gV2fMBaNgGEK6y2LGOnrMKlEEbh4TmUlAl/Z85p1lnkfE60Bf111r+dMG3OD2twFpVwwrAaX2FG8HqRpDTzbGNv7Gg= Received: from HE1PR05MB3484.eurprd05.prod.outlook.com (10.170.246.12) by HE1PR05MB3385.eurprd05.prod.outlook.com (10.170.246.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.20; Mon, 16 Dec 2019 06:50:29 +0000 Received: from HE1PR05MB3484.eurprd05.prod.outlook.com ([fe80::d44c:cf38:cfac:b253]) by HE1PR05MB3484.eurprd05.prod.outlook.com ([fe80::d44c:cf38:cfac:b253%3]) with mapi id 15.20.2538.017; Mon, 16 Dec 2019 06:50:29 +0000 From: Suanming Mou To: Tonghao Zhang , Matan Azrad , Shahaf Shuler CC: "dev@dpdk.org" Thread-Topic: [PATCH v2] net/mlx5: avoid crash when meter action conf is NULL Thread-Index: AQHVscCoodoPHxrjz0qeli0AZE/Es6e7/QIAgABWRiA= Date: Mon, 16 Dec 2019 06:50:29 +0000 Message-ID: References: <1576246894-31496-1-git-send-email-xiangxia.m.yue@gmail.com> In-Reply-To: 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=suanmingm@mellanox.com; x-originating-ip: [42.120.102.173] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: b8255fc0-486a-4f01-2224-08d781f43d1e x-ms-traffictypediagnostic: HE1PR05MB3385:|HE1PR05MB3385: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:669; x-forefront-prvs: 02530BD3AA x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(136003)(346002)(376002)(396003)(366004)(13464003)(189003)(199004)(7696005)(5660300002)(8676002)(478600001)(316002)(8936002)(86362001)(66946007)(52536014)(66556008)(66476007)(64756008)(76116006)(33656002)(110136005)(45080400002)(71200400001)(66446008)(81166006)(81156014)(2906002)(966005)(26005)(6506007)(4326008)(53546011)(186003)(55016002)(6636002)(9686003); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR05MB3385; H:HE1PR05MB3484.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: BCL:0; x-microsoft-antispam-message-info: Xe1OjlCs/jvaEOiQ4B44GcNF95o+BublkIEUSXZY8uIrNs1tnO4rP6BGiis2j7hfIUMnlPWBY0TSY/Do5EtHoHInkVJa1JbGlPQqfoYMir+qZBD/pS1SU66twJ47mV0fhOx2jy3QRYybS0JgyjTkH1NWCuop6+xb3fgiZSARX648Tk0l6lmAKkLQecdYFZDd3NSbapWAWq59JZYx7xqiq7AVvUjVT135wNl0O0fh7k6kB63O26nvSNJ9dQNltxroRebQfOJ86B4uOhnYrr5u2+3hZo61+KlhxSkKmNj4njKiqg8Yk0hw8lIx7TveJGA91Wiv3ZskN+W//68KY9gdbgnOkYEP1me6uOZ9IW08ZIe6HEt+3FPThjd4NzVmDxBjlBELhhM/yT3TBWIxP1iQn0i47xhtT8uOdzT3QbdavhB50B8mqkunChFQWQJj0mXCx35IjGAm48Iqj92JztvzC0T1Cz1qNAseKv4+O3l5nz/bCXHL5ZLHnL66K16n49Wr 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: b8255fc0-486a-4f01-2224-08d781f43d1e X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Dec 2019 06:50:29.2243 (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: 3NMX/ZZHxLnzhhTTlXicHK5zeafdHZTzM4yzEPS2E1nyUiLewcguG1z+Ja3FdwsUjivUGQEmTl8mfLclwa2QVQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR05MB3385 Subject: Re: [dpdk-dev] [PATCH v2] net/mlx5: avoid crash when meter action conf is NULL 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" DQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IFRvbmdoYW8gWmhhbmcgPHhp YW5neGlhLm0ueXVlQGdtYWlsLmNvbT4NCj4gU2VudDogTW9uZGF5LCBEZWNlbWJlciAxNiwgMjAx OSA5OjI5IEFNDQo+IFRvOiBNYXRhbiBBenJhZCA8bWF0YW5AbWVsbGFub3guY29tPjsgU2hhaGF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ldGVyX2ZpbmQocHJpdiwgYW0tDQo+ ID5tdHJfaWQpOw0KPiA+ICsgICAgICAgc3RydWN0IG1seDVfZmxvd19tZXRlciAqZm07DQo+ID4g Kw0KPiA+ICsgICAgICAgaWYgKCFhbSkNCj4gPiArICAgICAgICAgICAgICAgcmV0dXJuIHJ0ZV9m bG93X2Vycm9yX3NldChlcnJvciwgRUlOVkFMLA0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgIFJURV9GTE9XX0VSUk9SX1RZUEVfQUNUSU9OLCBOVUxMLA0KPiA+ ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJtZXRlciBhY3Rpb24g Y29uZiBpcw0KPiA+ICsgTlVMTCIpOw0KPiA+DQo+ID4gICAgICAgICBpZiAoYWN0aW9uX2ZsYWdz ICYgTUxYNV9GTE9XX0FDVElPTl9NRVRFUikNCj4gPiAgICAgICAgICAgICAgICAgcmV0dXJuIHJ0 ZV9mbG93X2Vycm9yX3NldChlcnJvciwgRU5PVFNVUCwgQEAgLTM0MTcsNg0KPiA+ICszNDIyLDgg QEAgc3RydWN0IGZpZWxkX21vZGlmeV9pbmZvIG1vZGlmeV90Y3BbXSA9IHsNCj4gPiAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBSVEVfRkxPV19FUlJPUl9UWVBFX1VO U1BFQ0lGSUVELA0KPiA+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IE5VTEwsDQo+ID4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIm1l dGVyIGFjdGlvbiBub3QNCj4gPiBzdXBwb3J0ZWQiKTsNCj4gPiArDQoNClJlZHVuZGFudCBlbXB0 eSBsaW5lLg0KUmV2aWV3ZWQtYnk6IFN1YW5taW5nIE1vdSA8c3Vhbm1pbmdtQG1lbGxhbm94LmNv bT4NCg0KPiA+ICsgICAgICAgZm0gPSBtbHg1X2Zsb3dfbWV0ZXJfZmluZChwcml2LCBhbS0+bXRy X2lkKTsNCj4gPiAgICAgICAgIGlmICghZm0pDQo+ID4gICAgICAgICAgICAgICAgIHJldHVybiBy dGVfZmxvd19lcnJvcl9zZXQoZXJyb3IsIEVJTlZBTCwNCj4gPiAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICBSVEVfRkxPV19FUlJPUl9UWVBFX0FDVElPTiwNCj4gPiBO VUxMLA0KPiA+IC0tDQo+ID4gMS44LjMuMQ0KPiA+DQo+IHBpbmcNCg==