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 11E61A04F3; Wed, 8 Jan 2020 16:11:56 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E0D541DA75; Wed, 8 Jan 2020 16:11:55 +0100 (CET) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20053.outbound.protection.outlook.com [40.107.2.53]) by dpdk.org (Postfix) with ESMTP id 189D91DA71 for ; Wed, 8 Jan 2020 16:11:55 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TGspfklC4nEW1s41EAuQSJ+p20M2LRdjRVUlsRt0sbA0UCHrxdI9zd0Tu9CbaCzbNhUdvlu0uOct6+UMg/sm6Hk5Nm2TlkBoj9/rCQ6Fdv2VeIRQpM+UuReuycTLSkl3K2xPVyPNwwttbRHtAh9pzufnbfLvuEko6AcAFkslAl6ppYv+GYGdWLvDTeO1RR/eOI1QxiHgkqir+JYy/DnBCR7Aa+uuZ6j5cZ/U0AAJkLpuVUwZ5apPMXIxwSMVqmElrfb5KTPWL4ap/ZcXGc35C5QcDtrR84eD9tOqEiVMGLBUw7kshlQyXvuT+FgO7EGhDPrS3f0RFA/BZa5xMpbPSQ== 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=ZmQARw+U5ECbZknoxoP9XKxayXkqdmbxonn+CLvi5xU=; b=FJ/glhGMqtmGnZfo8wdyt0bg6s1fS2Fv3Akw3Y77z1UskmG0+g0ARff+MApwkVZm6AgU7csjJD9p4VZ2qAb3qgB9x55mfzMwATRzcVaJ3OMrVEutOFg+gdxDebG5arv7TvuAZ80QCZWYJiLXs86++VrtZkYAQFK8lZcFCsISRw3J0uywVk9u2F1+Jtuy/dt2o40p29/FDyoGX3SGvVw/Z0Hiw2ZPoPELVpp68e+pnBVYLzfMkKavQJGtrhc/xPOrjyBXLnJ9bVEwo5xZQqKF1xjQDLobsoGJY/dd9pzPCzUbDUzbdqvBl1x15MN1xJSNtNfgoU9LTsvfkrYPZFg4Nw== 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=ZmQARw+U5ECbZknoxoP9XKxayXkqdmbxonn+CLvi5xU=; b=Ddx1rDlpFIxvYhPQeChk3Xs2E8EJFl0GqO53x899rd5nOuib1Xa9nTJFTE2OZlnBVAdUYPfKadCAPxPgiyYNrW4Kpiv/ar0ferynJZYwZ9Wts3IEupXD5EvibSQG8Ygz73kgO5loZ1hlhu++TGHdJEF1JzM9gQoRf1mg07HcjjE= Received: from AM0PR05MB6707.eurprd05.prod.outlook.com (10.186.174.145) by AM0PR05MB4772.eurprd05.prod.outlook.com (52.133.57.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.16; Wed, 8 Jan 2020 15:11:53 +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 15:11:53 +0000 From: Raslan Darawsheh To: Ferruh Yigit , 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: AQHVxjFXyxf7dco/B0S6JgKgEYRXLKfg33DA Date: Wed, 8 Jan 2020 15:11:53 +0000 Message-ID: References: <1576246894-31496-1-git-send-email-xiangxia.m.yue@gmail.com> <6eeae27d-afe4-a72b-584a-20c9e7fb39a5@intel.com> In-Reply-To: <6eeae27d-afe4-a72b-584a-20c9e7fb39a5@intel.com> 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: 0682728f-f5f9-427a-a415-08d7944d184e x-ms-traffictypediagnostic: AM0PR05MB4772:|AM0PR05MB4772: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4941; x-forefront-prvs: 02760F0D1C x-forefront-antispam-report: SFV:NSPM; SFS:(10001)(10009020)(4636009)(136003)(346002)(366004)(396003)(376002)(39860400002)(13464003)(199004)(189003)(53546011)(6506007)(6636002)(71200400001)(8676002)(55016002)(9686003)(5660300002)(81156014)(81166006)(66446008)(186003)(64756008)(54906003)(66556008)(66946007)(76116006)(8936002)(110136005)(26005)(66476007)(7696005)(52536014)(2906002)(316002)(45080400002)(86362001)(478600001)(966005)(33656002)(4326008); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR05MB4772; 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: hNgFQAvEu1QsPcM8QDTKN8JK7i7WKMBky6PqEDsngJDTHENgj3I7nCpRzXPCPH9KWwYj97elmWD0zTz0uCBlXhfx9LOs5iDXXdSKrGUfiA8zsgTDqG9XeuIW0Kt410bCBYSwQy1xPkH0AxSg5lwLQIPe5Ro0isHuumCpsZCW6wps8AGIquUV0AoCMdsJFa5+WOUJ2fWSg6Ugf1euesD6bwav5EHsKbkNyTQeNck+pPK27fZSp3z9502rMVPT5V3vuzxE4p9OA5VvyuppYqREO9WeImGWCZoplDjT6s8tmyWOcxjzjytdMLSyovy/RtEsYVgoxp3JGRX2bCGH9TrpjoGu+ztoQU8QTOW+hacCTdioGxdOss/PeJFWi/ncLgQ+K8zzgDaEOO2nkO5ebutUOLaibmYSlSlZDZ+TyCUPXRREZFR/SfGmCFAuG+CPW0P3OwkAtoisWT2dOjNOyJUUOgIpsiZFcB/fsOOkAf8UFUaEpL/AmD7vf898zk6eAM56wkjjCS8Zx6A6UNi9OOkzcFpxxs81uY6lxYgSvAoqZHXccq9q5PefTqdkis7JYebwsJqM9fdIr6mdYOUaiSGjYmfh9Ke77ngG3j4JuIwQfSiurLuirGFZGRrkBRqfBl4P1+2HhE24uVF7dZ9tJSTY5A== 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: 0682728f-f5f9-427a-a415-08d7944d184e X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jan 2020 15:11:53.6249 (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: zP1y4MNmza79ps5DWQUkE7NtI5F5taMby+3dzTMd2t3DMKNRT82DaKBvH1jj4aFcVZ5x9/qSZhzNh3fw58nZrw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB4772 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-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