答复: [PATCH][RFC] udp: cache sock to avoid searching it twice

2018-11-11 Thread Li,Rongqing
> > return pp; > > } > > What if 'pp' is NULL? > > Aside from that, this replace a lookup with 2 atomic ops, and only when > such lookup is amortized on multiple aggregated packets: I'm unsure if > it's worthy and I don't understand how that improves RR tests (where > the socket

答复: [PATCH][RFC] udp: cache sock to avoid searching it twice

2018-11-11 Thread Li,Rongqing
On Sat, Nov 10, 2018 at 1:29 AM Eric Dumazet wrote: > > > > On 11/08/2018 10:21 PM, Li RongQing wrote: > > GRO for UDP needs to lookup socket twice, first is in gro receive, > > second is gro complete, so if store sock to skb to avoid looking up > > twice, this can give small performance boost >

Re: [PATCH][RFC] udp: cache sock to avoid searching it twice

2018-11-09 Thread Eric Dumazet
On 11/08/2018 10:21 PM, Li RongQing wrote: > GRO for UDP needs to lookup socket twice, first is in gro receive, > second is gro complete, so if store sock to skb to avoid looking up > twice, this can give small performance boost > > netperf -t UDP_RR -l 10 > > Before: > Rate per sec: 287

Re: [PATCH][RFC] udp: cache sock to avoid searching it twice

2018-11-09 Thread Paolo Abeni
Hi, Adding Willem, I think he can be interested. On Fri, 2018-11-09 at 14:21 +0800, Li RongQing wrote: > GRO for UDP needs to lookup socket twice, first is in gro receive, > second is gro complete, so if store sock to skb to avoid looking up > twice, this can give small performance boost > > net

[PATCH][RFC] udp: cache sock to avoid searching it twice

2018-11-08 Thread Li RongQing
GRO for UDP needs to lookup socket twice, first is in gro receive, second is gro complete, so if store sock to skb to avoid looking up twice, this can give small performance boost netperf -t UDP_RR -l 10 Before: Rate per sec: 28746.01 After: Rate per sec: 29401.67 Signed-off-by: