Re: [PATCH RFC 3/9] net: Add fast receive encapsulation

2016-03-25 Thread Joe Perches
On Fri, 2016-03-25 at 16:40 -0400, David Miller wrote: > From: Tom Herbert > Date: Wed, 23 Mar 2016 15:36:52 -0700 > > > +{ > > + struct udp_sock *up = udp_sk(sk); > > + int is_udplite = IS_UDPLITE(sk); > > + > > + int (*encap_rcv)(struct sock *sk, struct

Re: [PATCH RFC 3/9] net: Add fast receive encapsulation

2016-03-25 Thread David Miller
From: Tom Herbert Date: Wed, 23 Mar 2016 15:36:52 -0700 > +{ > + struct udp_sock *up = udp_sk(sk); > + int is_udplite = IS_UDPLITE(sk); > + > + int (*encap_rcv)(struct sock *sk, struct sk_buff *skb); > + Small nit, please put this encap_rcv function pointer

[PATCH RFC 3/9] net: Add fast receive encapsulation

2016-03-23 Thread Tom Herbert
This patch allows fast receive encapsulation processing. A configuration flag, encap_fast, may be set in a UDP socket. When this flag is set encap_rcv may be called without taking a reference to the the encapsulation socket (which is usually unnecessary since the encapsulation socket is not