iwl4965: better skb management in rx path
authorStanislaw Gruszka <sgruszka@redhat.com>
Mon, 1 Jul 2013 12:19:30 +0000 (14:19 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 1 Aug 2013 19:49:34 +0000 (15:49 -0400)
commitc1de4a9557d9e25e41fc4ba034b9659152205539
tree280ba352c7b952f279493ecd8b6d8f5862330672
parent092c46498e76904a3c21124131a29edff56ce3ed
iwl4965: better skb management in rx path

4965 version of Eric patch "iwl3945: better skb management in rx path".
It fixes several problems :

1) skb->truesize is underestimated.
   We really consume PAGE_SIZE bytes for a fragment,
   not the frame length.
2) 128 bytes of initial headroom is a bit low and forces reallocations.
3) We can avoid consuming a full page for small enough frames.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlegacy/4965-mac.c