Skip to content

net: ethernet: reduce calls to memset(,0)

Robert Eshleman linux-arm-kernel linux-rdma lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8net/mlx4: use kzalloc instead of kmallocdrivers/net/ethernet/mellanox/mlx4/cmd.c drivers/net/ethernet/mellanox/mlx4/en_rx.c+1 -31 reply
2/8net/mlxsw: use pci_zalloc_consistent instead of pci_alloc_consistentdrivers/net/ethernet/mellanox/mlxsw/pci.c+3 -40 replies
3/8tlan: use pci_zalloc instead of pci_allocdrivers/net/ethernet/ti/tlan.c+4 -52 replies
4/8qed: remove unnecessary memsetsdrivers/net/ethernet/qlogic/qed/qed_cxt.c drivers/net/ethernet/qlogic/qed/qed_hw.c drivers/net/ethernet/qlogic/qed/qed_mcp.c+25 -521 reply
5/8at12: use pci_zalloc instead of pci_allocdrivers/net/ethernet/atheros/atlx/atl2.c+2 -31 reply
6/8netxen: remove unnecessary memset(,0) callsdrivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c+13 -230 replies
7/8net: seeq: replace kmalloc / memset(,0) with kzallocdrivers/net/ethernet/seeq/ether3.c+1 -21 reply
8/8net: ethernet: ixp4xx_eth: remove memset(,0) with zallocdrivers/net/ethernet/xscale/ixp4xx_eth.c+3 -40 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchMichal Kalderon
1/8
2/8
3/8
4/8A-b
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] net: ethernet: reduce calls to memset(,0)

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(-)
Signature · 1 line
2.20.1