]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: support TX batching using skb->xmit_more flag
authorSathya Perla <sathya.perla@emulex.com>
Mon, 5 Jan 2015 10:48:34 +0000 (05:48 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Jan 2015 21:32:53 +0000 (16:32 -0500)
commit3c442fe2ad8e4dc670969ebb6d8f9796ec4445aa
treec666cc118eaac0087e79fa33119cb69507a1b748
parent67302f3bc2ba83af4661ea1195d8d0ae3c837048
be2net: support TX batching using skb->xmit_more flag

This patch uses skb->xmit_more flag to batch TX requests.
TX is flushed either when xmit_more is false or there is
no more space in the TXQ.

Skyhawk-R and BEx chips require an even number of wrbs to be posted.
So, when a batch of TX requests is accumulated, the last header wrb
may need to be fixed with an extra dummy wrb.

This patch refactors be_xmit() routine as a sequence of be_xmit_enqueue()
and be_xmit_flush() calls. The Tx completion code is also
updated to be able to unmap/free a batch of skbs rather than a single
skb.

Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_ethtool.c
drivers/net/ethernet/emulex/benet/be_hw.h
drivers/net/ethernet/emulex/benet/be_main.c