Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7004629ybi; Mon, 8 Jul 2019 12:30:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1mCphpnbZiJztU3wHRZbJRL0DLMAxU46MWT4J1Q3i+1cxd2OEBZAWWKzGn79Au0P0QRcD X-Received: by 2002:a63:e015:: with SMTP id e21mr25325423pgh.172.1562614254871; Mon, 08 Jul 2019 12:30:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562614254; cv=none; d=google.com; s=arc-20160816; b=UUaD5FXYmrQ/O8lijyzE2ImxrGe9PgKtFzTVd8KdgK4B2fCSVMNNgDFKSFWrfAchfu NR7esiL5nSekUZz6T8UylzpuXiSRWuplL6nYAgwPCrjhhuMBB5EDN6a++UfGFWrIkoJv haAEZWf6H0m65crr9QqLKo+1EQpWahgoYdCkS5rGy8WhKNcqzwlC/l/HXynCVpoXCNhK elb6A1YaLV1GTab6zt1b/fy7XX1fWBWAS54+ASFjZ+Ks7/unUCXDzdWYCXrLgUa/iij2 QjOBELRn6JVo49Vf9H3A2cFzR0wAG37RbQLm09R889GSI54PUSBCxVO/WCstvWLppANk IYHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=szryYw/ssBwin6LDL6+dPN58gyoZ1qWOAyBDfomEVD0=; b=VyAn9R9aI2691qGDchlE3m1kTCh04aneNPS1XG8qrQw+8Lvu2hZDPsOW01F+JcoM1c W6lKJF0mnz5ounVEMFBazR6nTEktvF933akqbQpczaHKQZIUe1wpEkn9cF8ktsDLoSJP saFrQFUeszae3YWfDF2qWMnaVV5Eff78LwP6Y86YaTWT2EX/GRJNP/kGZu9jHZjIfXXn GSm+MECGbG/lXUn43ZT+bbDVBPu1XtTQLS4t4DAyPof1hnqz0K5DW4gUfD0soYhiorX1 NNJMvHl3VYUKTEK6d7IaRXiPRPYF11A7svlhnTZXP6961+wfMID17han2wWZp6YbXzGe pBZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector2 header.b=j3UMPqQD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a23si17662938pls.189.2019.07.08.12.30.39; Mon, 08 Jul 2019 12:30:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector2 header.b=j3UMPqQD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732596AbfGHPQd (ORCPT + 99 others); Mon, 8 Jul 2019 11:16:33 -0400 Received: from mail-eopbgr70075.outbound.protection.outlook.com ([40.107.7.75]:43911 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732518AbfGHPQa (ORCPT ); Mon, 8 Jul 2019 11:16:30 -0400 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=szryYw/ssBwin6LDL6+dPN58gyoZ1qWOAyBDfomEVD0=; b=j3UMPqQDxppkN86ThovUKWWKwvO5te4Vhpqydi5/TMQKnYGVBR77ZryM2a1FKeDKQw1yqFE5ZJ8QJszmByoCEZXCXqmu9p21xToh/Yb4jm3T9encV0GSj3f0qvkq787b9zPMkm/UHdJ2wxThvb9Z9ozXGD54lRh8J/cuWvaMnPA= Received: from AM6PR05MB5879.eurprd05.prod.outlook.com (20.179.0.76) by AM6PR05MB6325.eurprd05.prod.outlook.com (20.179.5.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2052.17; Mon, 8 Jul 2019 15:16:26 +0000 Received: from AM6PR05MB5879.eurprd05.prod.outlook.com ([fe80::4923:8635:3371:e4f0]) by AM6PR05MB5879.eurprd05.prod.outlook.com ([fe80::4923:8635:3371:e4f0%3]) with mapi id 15.20.2052.020; Mon, 8 Jul 2019 15:16:26 +0000 From: Maxim Mikityanskiy To: Arnd Bergmann , Saeed Mahameed , "David S. Miller" , Alexei Starovoitov , Tariq Toukan CC: Leon Romanovsky , Daniel Borkmann , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , "netdev@vger.kernel.org" , "linux-rdma@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "xdp-newbies@vger.kernel.org" , "bpf@vger.kernel.org" Subject: Re: [PATCH] [net-next] net/mlx5e: xsk: dynamically allocate mlx5e_channel_param Thread-Topic: [PATCH] [net-next] net/mlx5e: xsk: dynamically allocate mlx5e_channel_param Thread-Index: AQHVNYx/Ypx2Y7+f3k6VGsR33x4yYqbA1RmA Date: Mon, 8 Jul 2019 15:16:26 +0000 Message-ID: <543fa599-8ea1-dbc8-d94a-f90af2069edd@mellanox.com> References: <20190708125554.3863901-1-arnd@arndb.de> In-Reply-To: <20190708125554.3863901-1-arnd@arndb.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HE1PR07CA0026.eurprd07.prod.outlook.com (2603:10a6:7:66::12) To AM6PR05MB5879.eurprd05.prod.outlook.com (2603:10a6:20b:a2::12) authentication-results: spf=none (sender IP is ) smtp.mailfrom=maximmi@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [95.67.35.250] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6ffa479e-41b6-4b9b-6991-08d703b73e7e 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:AM6PR05MB6325; x-ms-traffictypediagnostic: AM6PR05MB6325: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 00922518D8 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(346002)(39860400002)(396003)(136003)(366004)(376002)(52314003)(199004)(189003)(316002)(3846002)(54906003)(110136005)(66066001)(6486002)(86362001)(305945005)(4326008)(6436002)(478600001)(6116002)(7736002)(31696002)(229853002)(486006)(25786009)(2616005)(11346002)(476003)(6512007)(2906002)(446003)(64756008)(256004)(73956011)(66556008)(66476007)(66946007)(66446008)(102836004)(68736007)(31686004)(14444005)(6246003)(5660300002)(71190400001)(8676002)(53936002)(81156014)(71200400001)(81166006)(8936002)(6636002)(52116002)(186003)(26005)(36756003)(7416002)(76176011)(14454004)(386003)(6506007)(53546011)(99286004);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR05MB6325;H:AM6PR05MB5879.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: L0jn5JMpDcbM+WJO2PmbDYudQcZtIEXeMpDWrc96peri8CxrYGXhkZtFl6RwVuzsQknISDpXp40ex4RQuW9w5o+b8jYBB4jttPsTXe0oWkHJurkOq+k2M790gqqPrViaabcNwayJTGDb11E25MLmt+hkbTPTYkr1LSma1CgPfMmMa31dCuBA4FRFnrLDG03nvZ5VK/8IQCVGw+OB+wQjnQG+XPn87OkERiwUSglsNwXug2PwUjE7IXnWjH0/1WFlay1Q5qceaaYz8o6k0h9v2Vl01ydyWgqcoBzBbTeBW7ezOq+2fizzG24W+DOHMaaEM3TQxiZoTcm43rH4WCJyGKGOl837wcUmLC5CT/Ocgyp6/3pWwHg6TEX8ELEJSmh9DUcxbxCUneNHFucJQ1QGC+IVk6u70tmmpBXOOe7BD1Q= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6ffa479e-41b6-4b9b-6991-08d703b73e7e X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jul 2019 15:16:26.0333 (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: maximmi@mellanox.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB6325 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMjAxOS0wNy0wOCAxNTo1NSwgQXJuZCBCZXJnbWFubiB3cm90ZToNCj4gVGhlIHN0cnVjdHVy ZSBpcyB0b28gbGFyZ2UgdG8gcHV0IG9uIHRoZSBzdGFjaywgcmVzdWx0aW5nIGluIGENCj4gd2Fy bmluZyBvbiAzMi1iaXQgQVJNOg0KPiANCj4gZHJpdmVycy9uZXQvZXRoZXJuZXQvbWVsbGFub3gv bWx4NS9jb3JlL2VuL3hzay9zZXR1cC5jOjU5OjU6IGVycm9yOiBzdGFjayBmcmFtZSBzaXplIG9m IDEzNDQgYnl0ZXMgaW4gZnVuY3Rpb24NCj4gICAgICAgICdtbHg1ZV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