Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1423470img; Tue, 26 Feb 2019 22:05:30 -0800 (PST) X-Google-Smtp-Source: AHgI3IbeLqDY0x61A+dekstWM6DRPAn+FKu8FzsXl0URfefLpBsMiuAyF0vCYuUhWALh/Nk88pvm X-Received: by 2002:a62:1346:: with SMTP id b67mr31043634pfj.195.1551247530369; Tue, 26 Feb 2019 22:05:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551247530; cv=none; d=google.com; s=arc-20160816; b=VQ9n+vxaPOkWiA2NfdLzHWnV6xxpfZ4BfJrDT6CpxVV4MYKgQ8P8gY6bni+d2BmkCJ X62FagV3keZh/WWAO4Lq5TiKGIofoO/4CyJOxpRw6i3ZgoeMw7RVbdjp20xc/AuSI5lP wn2tt5F1fefE3x9De/alSjLoDlSwIye53/sgurN5frNzQwvGg1Y+YRfddoDsYnUKKWKH LLCdGdmHrZurjIyCz+PdFG0RF7DztFHmh/EuWVFf7bZf1eppJl4QOICRScXDrO8s5s89 q8yCoBBuQLpBYBzpAMUOiemynnS1JemQY1beicZ1/jndeT5aLx6nIYUQio+cSxWLYZaY tw2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=0yt638jW4EQp12IiJOhGMpFngqFC+Qq8MVhJJyxIdK0=; b=zkMCF20c0kNjFIxlBuuMILojJJcojnuXtcrJBv2nslyOutsKOjlTtBcnGs7FK8fwqd 8w2Nse9sTakwgWzwrR7ENIzbY/eKHX3bGEA2Pntww/fn+e8stLDuQAjZ3eKiEopgdbXb jRF0t0HfPfoEwTPG9RFLeVpt2UaYiHDacofJ5VvruUT8hiY32jGjlqeX9WhazDvSV8im 9iOAnx972z3JGE5b+6ETs4mEegZgEJuxjdE4kCUWzYdjCJu30ZWVvZHCw0qyDdcxC75c SaLTCthW8Jf5cTH6v+PY2q/n9o23uFOexYAXOaYP5K1CZe/qsmIesBlpc5WAFwQ1R9kw qThg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mXFBR0HJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 42si1050304plb.102.2019.02.26.22.05.14; Tue, 26 Feb 2019 22:05:30 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=mXFBR0HJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729731AbfB0GEp (ORCPT + 99 others); Wed, 27 Feb 2019 01:04:45 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:37141 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726724AbfB0GEo (ORCPT ); Wed, 27 Feb 2019 01:04:44 -0500 Received: by mail-pl1-f195.google.com with SMTP id q3so7464079pll.4; Tue, 26 Feb 2019 22:04:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=0yt638jW4EQp12IiJOhGMpFngqFC+Qq8MVhJJyxIdK0=; b=mXFBR0HJCYiHjxdTojmuz7CQ/2EzgTSmOjR9KCE+5ai0nx09sXyND9fgCACKvkUyRT A71Flj0kukkjXCkAT6Xcn9x/g7tqjuck/34EpQuItO9l/EODOsz/s234y+6Zo4zpRdLZ K196RuHQ+SBk517Caocj+wViuYnxBkjLZSty22RbaFvF7CqyejtSAIdmc6A7PVo9NCm6 xWGX4r3d/cZOfN3PHjyyWFdcb89mwNsMYSUUOI8h1FgPfK/pk1xPnf7yRugjGHOC9sjn tWCGIUBk5OI20NyB7FYJ8E5Sfordr1+2xLr5wUtGRvvxKvDdb1PARpTtRNKD0glhzCy7 pukQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=0yt638jW4EQp12IiJOhGMpFngqFC+Qq8MVhJJyxIdK0=; b=TswSYRAyLgaXYNviyy/dV1JP3k6HxjwWhHBYn0zyayorQkyeYNyAxlW4epV6oF/EX5 +6I6Etpn80T0QlS6o5yAc/frVVWyHbJJ9TalL+y6U1QdEY5R809St8FnoyGZdv6wvq1w IEpy7kL6oUQp3CqLIlKKU2XTH0MSOgNZKx+ckLQOFzji1TXs9GOaNf9MUeR854rnUy8P mCAjjlya9PMmguDYP9Gy8/o5bU0zS2ePY9ZztLCpkIU8eAHP0deyXcGTTa66rN9CwlwY HW1COIL2+tYz9rQkVCWaFpifiCJ91fF29yqV8HZtXXuaw7eoEAt1WqStAH7p1WaefITN KNbw== X-Gm-Message-State: AHQUAuZ1YsguyzBA15oibAwpxE9vUbajiQS8X4NGIY49eBD3/j7Kt7Ab Lx0+yj1jcajdA1FLMuvK0u0= X-Received: by 2002:a17:902:6508:: with SMTP id b8mr434758plk.17.1551247484007; Tue, 26 Feb 2019 22:04:44 -0800 (PST) Received: from bobby.localdomain ([2601:1c0:5501:37e2::87c4]) by smtp.gmail.com with ESMTPSA id d6sm1403539pfg.47.2019.02.26.22.04.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Feb 2019 22:04:43 -0800 (PST) Date: Tue, 26 Feb 2019 22:04:54 -0800 From: Robert Eshleman To: bobbyeshleman@gmail.com Cc: "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/8] net: ethernet: reduce calls to memset(,0) Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series removes calls to memset(,0) that are redundant when used in conjunction with a zalloc call or by simple zero-assignment of structs. Robert Eshleman (8): net/mlx4: use kzalloc instead of kmalloc net/mlxsw: use pci_zalloc_consistent instead of pci_alloc_consistent tlan: use pci_zalloc instead of pci_alloc qed: remove unnecessary memsets at12: use pci_zalloc instead of pci_alloc netxen: remove unnecessary memset(,0) calls net: seeq: replace kmalloc / memset(,0) with kzalloc net: ethernet: ixp4xx_eth: remove memset(,0) with zalloc drivers/net/ethernet/atheros/atlx/atl2.c | 5 +- drivers/net/ethernet/mellanox/mlx4/cmd.c | 1 - drivers/net/ethernet/mellanox/mlx4/en_rx.c | 3 +- drivers/net/ethernet/mellanox/mlxsw/pci.c | 7 +- .../ethernet/qlogic/netxen/netxen_nic_ctx.c | 36 ++++------ drivers/net/ethernet/qlogic/qed/qed_cxt.c | 4 +- drivers/net/ethernet/qlogic/qed/qed_hw.c | 3 +- drivers/net/ethernet/qlogic/qed/qed_mcp.c | 70 ++++++------------- drivers/net/ethernet/seeq/ether3.c | 3 +- drivers/net/ethernet/ti/tlan.c | 9 ++- drivers/net/ethernet/xscale/ixp4xx_eth.c | 7 +- 11 files changed, 52 insertions(+), 96 deletions(-) -- 2.20.1