Thread (7 messages) 7 messages, 2 authors, 2016-01-04

Re: [PATCH v3 net-next 3/4] soreuseport: setsockopt SO_ATTACH_REUSEPORT_[CE]BPF

From: Alexei Starovoitov <hidden>
Date: 2016-01-04 20:11:43

On Mon, Jan 04, 2016 at 11:26:37AM -0500, Craig Gallek wrote:
From: Craig Gallek <redacted>

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 <redacted>
...
+	/* 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().
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help