]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4: exploit skb->xmit_more to conditionally send doorbell
authorEric Dumazet <edumazet@google.com>
Thu, 25 Sep 2014 14:17:49 +0000 (07:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Sep 2014 21:27:36 +0000 (17:27 -0400)
commitebf4272c9cb24b583945476f9161bed5f52168ab
treeba4656cb940b502838058edbf81d15cf147d0171
parentadd10f5d2a5029c901f321d936797a822d8b44a6
mlx4: exploit skb->xmit_more to conditionally send doorbell

skb->xmit_more tells us if another skb is coming next.

We need to send doorbell when : xmit_more is not set,
or txqueue is stopped (preventing next skb to come immediately)

Tested with a modified pktgen version, I got a 40% increase of
throughput.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_tx.c