diff options
author | Eric Dumazet <[email protected]> | 2012-03-24 00:29:46 -0400 |
---|---|---|
committer | John W. Linville <[email protected]> | 2012-05-03 10:52:30 -0400 |
commit | ed90542b0ce5415050c6fbfca324bccaafa69f2f (patch) | |
tree | bc8426e780dd399259af2f8ba6e775b613714dc8 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 9d1ceac5c6f7e77ea914de376ec17ced3eb22e5f (diff) |
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]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions