Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5182952ybi; Sat, 6 Jul 2019 23:49:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7s7/Wa0W8bJ407eYaWuy3BJ1fuoijBDxAHzUk7vEfMcjRZkGDnoX69IsBeC3SPsvNHnsY X-Received: by 2002:a17:902:2be8:: with SMTP id l95mr14281732plb.231.1562482144993; Sat, 06 Jul 2019 23:49:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562482144; cv=none; d=google.com; s=arc-20160816; b=pOGwrIHJBtwbZAaoXi2mYkTybEfIfm/a4SQgQ0jkqc/hM5yZQLa0k4ne6yRtLY69TO I8OfYEFL4VeqXW3mekTHqTVFCBNsWJxo2cufkxm76CTQdLUR6Utrmt9lxM8xNh3Yp9Vl 48uXrIXq1hRLX0aRmJb8+e75z8Tvm3AaoLDP2vg/olIqBgEIT9zUwONPu6RLlaKhn2x3 Jsz65okIUETlw8CdSq5mIDxQpihbgUurI1I9EXENlxuEa/tpRq7AX4/G2ccwMkOGd4pO 6Pi6HL1P+8oyj/2Kxo+wN5mo4F0hSUS0Jn2TS1h6IPC75lPo0ylR/MJPV2x1Q1fQEmVT fTDg== 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=W90KICyB3rwD4ZsKpdefCAtWljpF/ewH+MPOnFtNB+k=; b=cajBKrdOu72AKyri59GI1uE80pxpCct1TEY/lc1d3ep3sviLWXOGi8CaarCWPIT5/O 3PsLRqUNmz9AMFbRdl0z4NolAwuBNib+1UctFqoWppXNF5uJrEGd177f/qjGl/SgnW/g jof+GkwCcGqQSRPqRNAHpzx1FG9Ufr5o+m+pce0VX1wh6Ax70h4t9aC/YxQn1THlJsBW QyOGqGQMELRvl8mi0/M5a9HPrwzH2KaZRiBZs4wbeBCojhcJ4g632AoNXJPB1dLWN1nx 47sbClHTMPoCY4Uro8yrkk6ig+1dKW2W6d7mOFJiDowKjr39aay56QTGwQOmnpUCb8Cb RFLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector2 header.b=HyU6xCWl; 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 l14si15383784pga.567.2019.07.06.23.48.49; Sat, 06 Jul 2019 23:49:04 -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=HyU6xCWl; 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 S1726806AbfGGGpz (ORCPT + 99 others); Sun, 7 Jul 2019 02:45:55 -0400 Received: from mail-eopbgr40076.outbound.protection.outlook.com ([40.107.4.76]:54757 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726133AbfGGGpz (ORCPT ); Sun, 7 Jul 2019 02:45:55 -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=W90KICyB3rwD4ZsKpdefCAtWljpF/ewH+MPOnFtNB+k=; b=HyU6xCWl97qf6ngBvXZOkBY1A+QfR0mpOHJBqgDpO8w4JMjFEjPhvwS/kJCT9+/3BX0wRndiA0t9aY39gMGc7QdGU/wOlmzyoGk1hFdqdj1a3vcH1KDUld8MP/SwTinmBeg8vLJdwPPY8FyeKdwHVZsc8b6I7c+uEVvtQ0qvwGk= Received: from DBBPR05MB6283.eurprd05.prod.outlook.com (20.179.40.84) by DBBPR05MB6490.eurprd05.prod.outlook.com (20.179.43.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2052.19; Sun, 7 Jul 2019 06:45:48 +0000 Received: from DBBPR05MB6283.eurprd05.prod.outlook.com ([fe80::2833:939d:2b5c:4a2d]) by DBBPR05MB6283.eurprd05.prod.outlook.com ([fe80::2833:939d:2b5c:4a2d%6]) with mapi id 15.20.2052.019; Sun, 7 Jul 2019 06:45:48 +0000 From: Tariq Toukan To: Fuqian Huang CC: "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 15/27] net: use zeroing allocator rather than allocator followed by memset zero Thread-Topic: [PATCH v3 15/27] net: use zeroing allocator rather than allocator followed by memset zero Thread-Index: AQHVMKwDHcmxh450fEGB9jiwsXIZ3Ka+vdyA Date: Sun, 7 Jul 2019 06:45:47 +0000 Message-ID: <35de71f0-5307-d831-8d1c-f7948523b97d@mellanox.com> References: <20190702075842.24212-1-huangfq.daxian@gmail.com> In-Reply-To: <20190702075842.24212-1-huangfq.daxian@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: PR0P264CA0217.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1e::13) To DBBPR05MB6283.eurprd05.prod.outlook.com (2603:10a6:10:c1::20) authentication-results: spf=none (sender IP is ) smtp.mailfrom=tariqt@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 87b241f7-1f4c-42af-36e0-08d702a6be5a 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:DBBPR05MB6490; x-ms-traffictypediagnostic: DBBPR05MB6490: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:76; x-forefront-prvs: 0091C8F1EB x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(39850400004)(396003)(136003)(346002)(366004)(376002)(189003)(199004)(4326008)(229853002)(2906002)(5660300002)(25786009)(64756008)(66476007)(14454004)(66446008)(66556008)(256004)(73956011)(6916009)(476003)(486006)(446003)(11346002)(66946007)(2616005)(316002)(68736007)(14444005)(3846002)(6116002)(8936002)(66066001)(36756003)(478600001)(99286004)(31686004)(6436002)(6246003)(86362001)(52116002)(76176011)(305945005)(6486002)(31696002)(71190400001)(71200400001)(6512007)(186003)(26005)(8676002)(53546011)(6506007)(386003)(7736002)(53936002)(81156014)(102836004)(81166006);DIR:OUT;SFP:1101;SCL:1;SRVR:DBBPR05MB6490;H:DBBPR05MB6283.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-message-info: T8HmgeMRbs6NEFPs2v8K0LjCjjopRvh863yaMNUlXTpuaPfO/EZGfm9qHrHklwlr2XMzqUSQqJ/Egq6M+6no46vZUeuRtWR2YkF/FQXSTU2IY7UWfH+AH7UUXwY+AnqoTexxUsoZEUA07Czrx8IkSL1EyqDKGtjNNNZ8ZE0CYW2Sfllns+1da1aVDrE3LdPPnbqCm2/TufEToN6/Z9IBO17sBx1IB9JtBkP7v/5lA8xNH8d5OdHQMnBvefAqOPrc4JFpgqGHR38nbkFjO7c714EOK261b0YWSfXf7EZg0tn8el8R9TmP8NmSSw5cwi5Qea5N0h7CUyPSrvHrMGo2BHCN0lHJu9F/tbIFqBVXM6RPv2eJ9BogOI7FwBXV2KznEh0LdOrB4zoXfwiYxhwT8l95pk2nUq3kLy+C/dhWtnU= Content-Type: text/plain; charset="utf-8" Content-ID: <12EB7193AB211D468D76CF23CB936D26@eurprd05.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 87b241f7-1f4c-42af-36e0-08d702a6be5a X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jul 2019 06:45:47.9323 (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: tariqt@mellanox.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR05MB6490 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDcvMi8yMDE5IDEwOjU4IEFNLCBGdXFpYW4gSHVhbmcgd3JvdGU6DQo+IFJlcGxhY2Ug YWxsb2NhdG9yIGZvbGxvd2VkIGJ5IG1lbXNldCB3aXRoIDAgd2l0aCB6ZXJvaW5nIGFsbG9jYXRv ci4NCj4gDQo+IFNpZ25lZC1vZmYtYnk6IEZ1cWlhbiBIdWFuZyA8aHVhbmdmcS5kYXhpYW5AZ21h aWwuY29tPg0KPiAtLS0NCj4gQ2hhbmdlcyBpbiB2MzoNCj4gICAgLSBSZXNlbmQNCj4gDQo+ICAg ZHJpdmVycy9uZXQvZXFsLmMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8 IDMgKy0tDQo+ICAgZHJpdmVycy9uZXQvZXRoZXJuZXQvY2F2aXVtL2xpcXVpZGlvL2NuMjN4eF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