ANDROID: GKI: add vendor padding variable in struct sock
Some vendors want to add things to 'struct sock', so give them a u64 where they can then have a pointer off to their private data and they can do whatever they want to do without breaking or changing any abi for anyone else. Note, usually an android trace hook is also needed to use this properly, so be aware that this will be required as well. Bug: 171013716 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I8fdea13b185fba26010e2a2bf397d7982a8fa16e
This commit is contained in:
parent
24ab59f6bb
commit
b3d5bbd878
@ -69,6 +69,7 @@
|
||||
#include <net/smc.h>
|
||||
#include <net/l3mdev.h>
|
||||
#include <linux/android_kabi.h>
|
||||
#include <linux/android_vendor.h>
|
||||
|
||||
/*
|
||||
* This structure really needs to be cleaned up.
|
||||
@ -521,6 +522,8 @@ struct sock {
|
||||
ANDROID_KABI_RESERVE(6);
|
||||
ANDROID_KABI_RESERVE(7);
|
||||
ANDROID_KABI_RESERVE(8);
|
||||
|
||||
ANDROID_VENDOR_DATA(1);
|
||||
};
|
||||
|
||||
enum sk_pacing {
|
||||
|
Loading…
Reference in New Issue
Block a user