Files
linux/drivers/net/wireless
Eric Dumazet ed90542b0c iwlwifi: fix skb truesize underestimation
By default, iwlwifi uses order-1 pages (8 KB) to store incoming frames,
but doesnt say so in skb->truesize.

This makes very possible to exhaust kernel memory since these skb evade
normal socket memory accounting.

As struct ieee80211_hdr is going to be pulled before calling IP stack,
there is no need to use dev_alloc_skb() to reserve NET_SKB_PAD bytes.
alloc_skb() is ok in this driver, allowing more tailroom.

Pull beginning of frame in skb header, in the hope we can reuse order-1
pages in the driver immediately for small frames and reduce their
truesize to the minimum (linear skbs)

Signed-off-by: Eric Dumazet <[email protected]>
Cc: Wey-Yi Guy <[email protected]>
Cc: "John W. Linville" <[email protected]>
Cc: Neal Cardwell <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
2012-05-03 10:52:30 -04:00
..
2012-03-07 13:56:37 -05:00
2012-04-23 14:57:53 -04:00
…
…
2012-03-28 18:30:03 +01:00
…
2012-03-28 18:30:03 +01:00
…
…
…
…
…
…
…
…