aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/queueing.h2
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;