From: <same...@amazon.com> Date: Mon, 27 Jul 2020 12:56:52 +0000 > diff --git a/net/core/filter.c b/net/core/filter.c > index bdd2382e6..93e790d7b 100644 > --- a/net/core/filter.c > +++ b/net/core/filter.c > @@ -3452,6 +3452,62 @@ static const struct bpf_func_proto > bpf_xdp_adjust_head_proto = { > .arg2_type = ARG_ANYTHING, > }; > > +static inline bool __bpf_xdp_has_frags(struct xdp_buff *xdp) > +{ > + return xdp->mb != 0; > +}
Please don't use the inline keyword in foo.c files, let the compiler decide. Thank you.