On Mon, Jan 04, 2016 at 11:26:37AM -0500, Craig Gallek wrote: > From: Craig Gallek <kr...@google.com> > > Expose socket options for setting a classic or extended BPF program > for use when selecting sockets in an SO_REUSEPORT group. These options > can be used on the first socket to belong to a group before bind or > on any socket in the group after bind. > > This change includes refactoring of the existing sk_filter code to > allow reuse of the existing BPF filter validation checks. > > Signed-off-by: Craig Gallek <kr...@google.com> ... > + /* temporarily advance data past protocol header */ > + if (!pskb_may_pull(skb, hdr_len) || !pskb_pull(skb, hdr_len)) { > + consume_skb(nskb); > + return NULL; > + }
pskb_pull() includes pskb_may_pull(). -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html