diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-13 16:44:43 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-13 16:58:53 +0200 |
commit | 2d555e400a67559938e8321b0345a5e491a12caf (patch) | |
tree | 4db532ab735f1a4f71d6fa7fd6266d3f3a656ff8 /src/queueing.h | |
parent | ac659ac1f0a4b18d56b1fa0cc85cbbdff86e3494 (diff) |
queueing: preserve pfmemalloc header bit
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/queueing.h')
-rw-r--r-- | src/queueing.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/queueing.h b/src/queueing.h index c507536..0057cfa 100644 --- a/src/queueing.h +++ b/src/queueing.h @@ -64,8 +64,10 @@ static inline __be16 skb_examine_untrusted_ip_hdr(struct sk_buff *skb) static inline void skb_reset(struct sk_buff *skb) { + const int pfmemalloc = skb->pfmemalloc; skb_scrub_packet(skb, true); memset(&skb->headers_start, 0, offsetof(struct sk_buff, headers_end) - offsetof(struct sk_buff, headers_start)); + skb->pfmemalloc = pfmemalloc; skb->queue_mapping = 0; skb->nohdr = 0; skb->peeked = 0; |