[BNX2]: Combine small mem allocations
authorMichael Chan <mchan@broadcom.com>
Thu, 23 Mar 2006 09:12:38 +0000 (01:12 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Mar 2006 09:12:38 +0000 (01:12 -0800)
commit0f31f99446270e66c6f18c7d87aadd7db1dad214
tree7cac41b473b1e85d97df34a4fe4f6e329a534b6f
parentbf5295bba804a6aead9bc1c0d5970173a9d4e08e
[BNX2]: Combine small mem allocations

Combine two small (56 byte and 320 byte) pci consistent memory
allocations into one allocation. Jeff Garzik suggested to store
the combined size in the bp structure for later use when freeing
the memory.

Use kzalloc() instead of kmalloc() + memset().

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c
drivers/net/bnx2.h