Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751374AbeAAMHz (ORCPT + 1 other); Mon, 1 Jan 2018 07:07:55 -0500 Received: from mail-dm3nam03on0060.outbound.protection.outlook.com ([104.47.41.60]:9216 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751344AbeAAMHw (ORCPT ); Mon, 1 Jan 2018 07:07:52 -0500 From: "Tayar, Tomer" To: Himanshu Jha , "Elior, Ariel" CC: Dept-Eng Everest Linux L2 , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "mcgrof@kernel.org" Subject: RE: [PATCH] qed: Use zeroing memory allocator than allocator/memset Thread-Topic: [PATCH] qed: Use zeroing memory allocator than allocator/memset Thread-Index: AQHTgYQZJcHRbZne0E29cL4v8iKDkqNe5m0A Date: Mon, 1 Jan 2018 12:07:47 +0000 Message-ID: References: <1514648224-6820-1-git-send-email-himanshujha199640@gmail.com> In-Reply-To: <1514648224-6820-1-git-send-email-himanshujha199640@gmail.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=Tomer.Tayar@cavium.com; x-originating-ip: [31.168.140.228] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BN3PR0701MB1329;7:J8qUFTYfJzMtdGJT+DMK+s9TVsi117HxpMh0Zy7mSi2qZnYlOguC/GP1SBZKMwCBtXHEPIRceJ4xjiO/ToRSG5FaqnjOmSE3pNm3NZZZdHXTs9+3ihXhx2M0N0IptYuCoZOFRGpHKuu30cIu4HrTKYBf115WNK0ATUJpLQjjjEPtXtlXNz0JoR/4U3Co5pi4nkhGRFno5oeV+wzitAL68KhuHa6Oh23SVW6zZlp+CIQWZ8fT1YIjjd1jyNxD9jKo x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-ms-office365-filtering-correlation-id: 7ab60dff-9e94-4116-5447-08d5511045f9 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7153060);SRVR:BN3PR0701MB1329; x-ms-traffictypediagnostic: BN3PR0701MB1329: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(5005006)(8121501046)(3231023)(944501075)(93006095)(93001095)(3002001)(10201501046)(6041268)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(6072148)(201708071742011);SRVR:BN3PR0701MB1329;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:BN3PR0701MB1329; x-forefront-prvs: 0539EEBD11 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(376002)(366004)(346002)(39380400002)(39850400004)(189003)(199004)(105586002)(25786009)(305945005)(229853002)(3846002)(6636002)(7736002)(7696005)(6116002)(3660700001)(5660300001)(74316002)(3280700002)(2950100002)(39060400002)(6246003)(54906003)(6506007)(66066001)(106356001)(76176011)(4326008)(102836004)(2900100001)(8936002)(2906002)(81166006)(478600001)(97736004)(68736007)(316002)(53936002)(86362001)(81156014)(33656002)(72206003)(14454004)(9686003)(99286004)(6436002)(55016002)(8676002)(77096006)(110136005);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR0701MB1329;H:BN3PR0701MB1591.namprd07.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; x-microsoft-antispam-message-info: wv5nrrLRGNHXNBfGk4eNDSCUou8DBHxhIlqLUqLjN9YuyO6XhuO8iCcWbjmGFt9T7J8tmvMEMQgOfQ5KeGx35Q== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7ab60dff-9e94-4116-5447-08d5511045f9 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jan 2018 12:07:47.6837 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1329 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Himanshu Jha [mailto:himanshujha199640@gmail.com] Sent: Saturday, December 30, 2017 5:37 PM > Use dma_zalloc_coherent and vzalloc for allocating zeroed > memory and remove unnecessary memset function. > > Done using Coccinelle. > Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci > 0-day tested with no failures. > > Suggested-by: Luis R. Rodriguez > Signed-off-by: Himanshu Jha Thanks Acked-by: Tomer Tayar