diff mbox series

[net-next,3/6] sk_buff: track extension status in slow_gro

Message ID a0c30fb003ea140ee09cf739e3044347e4282f56.1627405778.git.pabeni@redhat.com
State New
Headers show
Series [net-next,1/6] sk_buff: introduce 'slow_gro' flags | expand

Commit Message

Paolo Abeni July 28, 2021, 4:24 p.m. UTC
Similar to the previous one, but tracking the
active_extensions field status.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
---
 net/core/skbuff.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 517ee2c36425..a990e11c393c 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -6455,6 +6455,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);