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 F042AA04FA; Wed, 8 Jan 2020 10:17:16 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0F7801D946; Wed, 8 Jan 2020 10:17:16 +0100 (CET) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130043.outbound.protection.outlook.com [40.107.13.43]) by dpdk.org (Postfix) with ESMTP id 154851C0D9 for ; Wed, 8 Jan 2020 10:17:14 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QZhlUfKoXHs85VBo+in24hdEDOiH7tiPj5PQtxPax70rg59hk+b6kvKYiPZpBfmzkXSP2UPIaI9ObKUdwIa6K0SZTAUF3aa3Zt3lQOD5MuzqiiEUW8pQcXaEvYlFUHcLvzGlIcGfrHz1cH4e7NqPnSvO3JpvwNcInRoHi31i1FNfYQ916HwNAq6BXySTLd5ugPnjCAZ6AgAm/vueTOzDbTxYfyl7foXOJlwXdFvz4249wic6sSE3NDppiMfumzne3fkwO2qwDAes8/a3nHkTOQr4N9cKOLaLsGyvddZ9WI8a377Dp8I61Wc7Ar5SL5Rg2EQxrpoTVRuMYKGbgrhKLw== 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=zXPavbrDebn38cZ+5/kgnhhwSlJXcywebKyvn1kWCgI=; b=eetY0H5aztGtfAUQiGUIiMIIQUCITr4sVLY95SIDyez0aVEPhgl8w88oWnkzvVQhAbYu/gU1xfvSP5B0HpL7ullcNCtPjEnOsoIme7g2f9dtfI2Jz9m+oV/LnlfbiKi/IHa5Q0yM/nVYr0U5KFDDfUk2GXT89uwsosKCN+ctO4bL8gUKB7YD4cVu4wXA2kILrHE+PGZO6NDTbCK9gTu2LIvsMmfg0I2gpnPG2Qq6z/Su2/N9YLer7xQv+0N9h+v7pNT6quINXN9uZPrR0TtUTmid1jGQztp9B/kheZF3+96ncFglE2J+PqMF4Bdj6nzhwi1Ri+i1TMDulWqqnAEFJA== 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=zXPavbrDebn38cZ+5/kgnhhwSlJXcywebKyvn1kWCgI=; b=ntbRjHOV/AAe0jmq+YuT/8GaS71w0JRGcwm6CoTpp/E1yTy4ZOY09O7IpY4jLBGXSd1/6nSlzB8ScYWL7hqt6NxpyF5cRkfRdmCwQhuvDlu6fU0wFbe2WRYlA1WFNc2bYtuGGqoHoQDKHZRnfE546qD6YQvUMA+j46sKCz87zvc= Received: from AM0PR05MB6707.eurprd05.prod.outlook.com (10.186.174.145) by AM0PR05MB4370.eurprd05.prod.outlook.com (52.134.93.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.9; Wed, 8 Jan 2020 09:17:12 +0000 Received: from AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::95ff:bfb2:7f11:87b2]) by AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::95ff:bfb2:7f11:87b2%5]) with mapi id 15.20.2602.017; Wed, 8 Jan 2020 09:17:12 +0000 From: Raslan Darawsheh To: Tonghao Zhang , Suanming Mou CC: Matan Azrad , Shahaf Shuler , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2] net/mlx5: avoid crash when meter action conf is NULL Thread-Index: AQHVs7Bf499j5yO+JEObT9X/FJIAF6e8UtSAgCKQFACAAb3hoA== Date: Wed, 8 Jan 2020 09:17:12 +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=rasland@mellanox.com; x-originating-ip: [212.29.221.74] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 61cff731-7149-4d00-a3a1-08d7941b8be8 x-ms-traffictypediagnostic: AM0PR05MB4370:|AM0PR05MB4370: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1303; x-forefront-prvs: 02760F0D1C x-forefront-antispam-report: SFV:NSPM; SFS:(10001)(10009020)(4636009)(396003)(39860400002)(366004)(136003)(346002)(376002)(199004)(189003)(13464003)(33656002)(76116006)(316002)(9686003)(66946007)(64756008)(186003)(66556008)(66476007)(66446008)(26005)(110136005)(54906003)(5660300002)(8936002)(2906002)(86362001)(52536014)(81166006)(55016002)(7696005)(4326008)(966005)(45080400002)(478600001)(6636002)(6506007)(53546011)(81156014)(71200400001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR05MB4370; H:AM0PR05MB6707.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: BCL:0; x-microsoft-antispam-message-info: FmCAudZsOy+8MqmuoAxaRZeB+n+uInz+R2FtG7lIv7k6YSJyBjJA6DRfsVehZV6CTTvyXy9cttECxhHBGthVMu64TyiUFi7rRtzqbVT2eTNgIL/9+OvUUm41B3oLnjGXTuwGTcFhcMsOM0lgEwx57AdHiJf6aMGmIZRRAit86LUmdTdNwrHjDG2dvaCxAuDMHW/OtdwDhxSfpFFEk4WOcCKrUI8rrYzXYOhgqOKQW4S4FpR8e//7xDwbY+CpaYUGpYnFX8gRmAu8qcyJYBwydW3c8ji9bMlW0P34GqwGkdS6S08/Q1pDJQboxYIoCdfSV4cNBQrLLMHNAfSAg/hr1WDuk1+9t7ihld7j30kL2y0/YPjL1WS/tJMjGjdpusoDjYgIqqiQ23lGaYtGKAcB4NDNtkUo8+kRpmVW308MAxQhnYEWjn/cd8iXwOUCFDiqwkb3hMKkj8XTFEsOMs0ylUJQxj3XSbB/EVJLg14MXC6e6MrHqsKY9IqVKaXFYVQFFd/kHLKkpR+Lk2ZfudfqmzOuUNYZ1Qy82GsSdpZU5B3/3WAo6Xl5FTDYQo1cWsdThYMWnDF56sjteatAThoAqMcFHSVvnzrzE5D56yNAAnb5BE9SnO0KnnwShjveKEfeRGqdP1V1W+p2cnWTcOxoPw== 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: 61cff731-7149-4d00-a3a1-08d7941b8be8 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jan 2020 09:17:12.7287 (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: Kf9F/pyDjSIabezTYtCUSfAnbx4OBpIfzAdxRm+fZgBwYYuHF0XAGZnm6jZ021dijkdns8vqHu6YtXAKeMe4xQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB4370 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" SGksDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYW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4NV9mbG93X21ldGVyICpmbSA9 IG1seDVfZmxvd19tZXRlcl9maW5kKHByaXYsIGFtLQ0KPiA+ID4gPm10cl9pZCk7DQo+ID4gPiA+ ICsgICAgICAgc3RydWN0IG1seDVfZmxvd19tZXRlciAqZm07DQo+ID4gPiA+ICsNCj4gPiA+ID4g KyAgICAgICBpZiAoIWFtKQ0KPiA+ID4gPiArICAgICAgICAgICAgICAgcmV0dXJuIHJ0ZV9mbG93 X2Vycm9yX3NldChlcnJvciwgRUlOVkFMLA0KPiA+ID4gPiArICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICBSVEVfRkxPV19FUlJPUl9UWVBFX0FDVElPTiwgTlVMTCwNCj4g PiA+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIm1ldGVyIGFj dGlvbiBjb25mIGlzDQo+ID4gPiA+ICsgTlVMTCIpOw0KPiA+ID4gPg0KPiA+ID4gPiAgICAgICAg IGlmIChhY3Rpb25fZmxhZ3MgJiBNTFg1X0ZMT1dfQUNUSU9OX01FVEVSKQ0KPiA+ID4gPiAgICAg ICAgICAgICAgICAgcmV0dXJuIHJ0ZV9mbG93X2Vycm9yX3NldChlcnJvciwgRU5PVFNVUCwgQEAg LTM0MTcsNg0KPiA+ID4gPiArMzQyMiw4IEBAIHN0cnVjdCBmaWVsZF9tb2RpZnlfaW5mbyBtb2Rp ZnlfdGNwW10gPSB7DQo+ID4gPiA+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIFJURV9GTE9XX0VSUk9SX1RZUEVfVU5TUEVDSUZJRUQsDQo+ID4gPiA+ICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIE5VTEwsDQo+ID4gPiA+ICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJtZXRlciBhY3Rpb24gbm90DQo+ID4g PiA+IHN1cHBvcnRlZCIpOw0KPiA+ID4g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