]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit99fd970b214a9f3f0c6cfa608bd81f749fc54965
tree587abdf7e13a700076e3580bac8a1961a6a5b73b
parentcaa5704d3e75a4cd41d24d5d22f9d827eee2fc26
net: dont use __netdev_alloc_skb for bounce buffer

commit a93c5a80a4 (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