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: Craig Gallek <hidden>
Date: 2016-01-04 22:36:01

On Mon, Jan 4, 2016 at 3:11 PM, Alexei Starovoitov
[off-list ref] wrote:
On Mon, Jan 04, 2016 at 11:26:37AM -0500, Craig Gallek wrote:
quoted
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>
...
quoted
+     /* 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().
Thanks, I completely missed this :\  -> v4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help