From 0709341102f32edc3a801e5486e47ac8ac627eb4 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Fri, 30 Oct 2020 10:00:02 +0100 Subject: [PATCH] ANDROID: GKI: add vendor padding variable in struct skb_shared_info Some vendors want to add things to 'struct skb_shared_info', so give them an array to place their data. Bug: 171013716 Signed-off-by: Greg Kroah-Hartman Change-Id: Ifaa5942550794b747e9624124c785a0bc85dfe17 --- include/linux/skbuff.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 89301656f985..f26daba301b0 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -41,6 +41,7 @@ #include #endif #include +#include /* The interface for checksum offload between the stack and networking drivers * is as follows... @@ -530,6 +531,8 @@ struct skb_shared_info { * remains valid until skb destructor */ void * destructor_arg; + ANDROID_VENDOR_DATA_ARRAY(1, 3); + /* must be last field, see pskb_expand_head() */ skb_frag_t frags[MAX_SKB_FRAGS]; };