mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 16:44:10 +08:00
sk_buff: track extension status in slow_gro
Similar to the previous one, but tracking the active_extensions field status. Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8a886b142b
commit
b0999f385a
@ -6449,6 +6449,7 @@ void *skb_ext_add(struct sk_buff *skb, enum skb_ext_id id)
|
||||
new->chunks = newlen;
|
||||
new->offset[id] = newoff;
|
||||
set_active:
|
||||
skb->slow_gro = 1;
|
||||
skb->extensions = new;
|
||||
skb->active_extensions |= 1 << id;
|
||||
return skb_ext_get_ptr(new, id);
|
||||
|
Loading…
Reference in New Issue
Block a user