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 <gregkh@google.com>
Change-Id: Ifaa5942550794b747e9624124c785a0bc85dfe17
This commit is contained in:
Greg Kroah-Hartman
2020-10-30 10:00:02 +01:00
parent 01435b2e91
commit 0709341102

View File

@@ -41,6 +41,7 @@
#include <linux/netfilter/nf_conntrack_common.h>
#endif
#include <linux/android_kabi.h>
#include <linux/android_vendor.h>
/* 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];
};