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: Vignesh Saravanaperumal <vignesh1.s@samsung.com> Change-Id: Iab0b5570753d4a9722ecf9ca9eeb9b9887e2a9d9
This commit is contained in:
parent
889670d815
commit
7948b5ff64
|
@ -69,6 +69,7 @@
|
|||
#include <linux/net_tstamp.h>
|
||||
#include <net/l3mdev.h>
|
||||
#include <uapi/linux/socket.h>
|
||||
#include <linux/android_vendor.h>
|
||||
|
||||
/*
|
||||
* This structure really needs to be cleaned up.
|
||||
|
@ -538,6 +539,8 @@ struct sock {
|
|||
struct bpf_local_storage __rcu *sk_bpf_storage;
|
||||
#endif
|
||||
struct rcu_head sk_rcu;
|
||||
|
||||
ANDROID_OEM_DATA(1);
|
||||
};
|
||||
|
||||
enum sk_pacing {
|
||||
|
|
Loading…
Reference in New Issue