Commit b0999f38 authored by Paolo Abeni's avatar Paolo Abeni Committed by David S. Miller

sk_buff: track extension status in slow_gro

Similar to the previous one, but tracking the
active_extensions field status.
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8a886b14
...@@ -6449,6 +6449,7 @@ void *skb_ext_add(struct sk_buff *skb, enum skb_ext_id id) ...@@ -6449,6 +6449,7 @@ void *skb_ext_add(struct sk_buff *skb, enum skb_ext_id id)
new->chunks = newlen; new->chunks = newlen;
new->offset[id] = newoff; new->offset[id] = newoff;
set_active: set_active:
skb->slow_gro = 1;
skb->extensions = new; skb->extensions = new;
skb->active_extensions |= 1 << id; skb->active_extensions |= 1 << id;
return skb_ext_get_ptr(new, id); return skb_ext_get_ptr(new, id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment