Thread (28 messages) 28 messages, 5 authors, 2009-08-19

Re: [PATCH 1/4] net: skb_orphan on dev_hard_start_xmit

From: David Miller <davem@davemloft.net>
Date: 2009-06-04 04:56:20

From: Eric Dumazet <redacted>
Date: Thu, 04 Jun 2009 06:54:24 +0200
We also can avoid the sock_put()/sock_hold() pair for each tx packet,
to only touch sk_wmem_alloc (with appropriate atomic_sub_return() in sock_wfree()
and atomic_dec_test in sk_free

We could initialize sk->sk_wmem_alloc to one instead of 0, so that
sock_wfree() could just synchronize itself with sk_free()
Excellent idea Eric.
Patch will follow after some testing
I look forward to it :-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help