]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit331834a3f1f8e26c0d4aad27820e6de210d43cd9
tree280ba352c7b952f279493ecd8b6d8f5862330672
parent20c9c8669acd76d20415567677231cea3d82c2f1
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