net: dont use __netdev_alloc_skb for bounce buffer
authorEric Dumazet <edumazet@google.com>
Mon, 2 Jul 2012 08:36:12 +0000 (08:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jul 2012 06:52:27 +0000 (23:52 -0700)
commitacfa9e94e2f06f8911a1d2f257880af4ad945eef
tree587abdf7e13a700076e3580bac8a1961a6a5b73b
parent3da947b2693993d5f6138f005d2625e9387c9618
net: dont use __netdev_alloc_skb for bounce buffer

commit a1c7fff7e1 (net: netdev_alloc_skb() use build_skb()) broke b44 on
some 64bit machines.

It appears b44 and b43 use __netdev_alloc_skb() instead of alloc_skb()
for their bounce buffers.

There is no need to add an extra NET_SKB_PAD reservation for bounce
buffers :

- In TX path, NET_SKB_PAD is useless

- In RX path in b44, we force a copy of incoming frames if
  GFP_DMA allocations were needed.

Reported-and-bisected-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/b44.c
drivers/net/wireless/b43legacy/dma.c