]> git.baikalelectronics.ru Git - kernel.git/commit
pktgen: Avoid dirtying skb->users when txq is full
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 30 Sep 2009 13:03:33 +0000 (13:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Oct 2009 07:21:54 +0000 (00:21 -0700)
commit5709d600fbd8136f01a6112c642ef471af6955ff
treefba23c6f67d2b6c42e70c02bf4b7a4bf25dbc103
parent19ab7778963abdee3d8e5fa32e7359b774236250
pktgen: Avoid dirtying skb->users when txq is full

We can avoid two atomic ops on skb->users if packet is not going to be
sent to the device (because hardware txqueue is full)

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c