[PATCH 1/4] net: skb_orphan on dev_hard_start_xmit

David Miller davem at davemloft.net
Thu Jun 4 00:56:21 EDT 2009

From: Eric Dumazet <eric.dumazet at gmail.com>
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 :-)

More information about the libertas-dev mailing list