OSDN Git Service

bpf: sock_ops: Change some members of sock_ops_kern from u32 to u8
authorMartin KaFai Lau <kafai@fb.com>
Thu, 20 Aug 2020 19:00:58 +0000 (12:00 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 24 Aug 2020 21:35:00 +0000 (14:35 -0700)
commitc9985d09e18965131958102f4b67fa1e742df335
tree7218417c9ec1b4fa86eedf3b0a8d5bd75405b2e0
parent331fca4315efa3bbd258fbdf8209d59d253c0480
bpf: sock_ops: Change some members of sock_ops_kern from u32 to u8

A later patch needs to add a few pointers and a few u8 to
sock_ops_kern.  Hence, this patch saves some spaces by moving
some of the existing members from u32 to u8 so that the later
patch can still fit everything in a cacheline.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200820190058.2885640-1-kafai@fb.com
include/linux/filter.h
net/core/filter.c