]> Pileus Git - ~andy/linux/commit
ibmveth: Add tx_copybreak
authorSantiago Leon <santil@linux.vnet.ibm.com>
Fri, 3 Sep 2010 18:28:20 +0000 (18:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Sep 2010 01:20:33 +0000 (18:20 -0700)
commitc08cc3ccebd46dce44d13a8ce81d249e687eeb8a
tree1e44318be42fbbef6c6cc224c9d4a2adafef4e98
parente8cb7eb473ac47703282db6f90b4926f31cdf376
ibmveth: Add tx_copybreak

Use the existing bounce buffer if we send a buffer under a certain size.
This saves the overhead of a TCE map/unmap.

I can't see any reason for the wmb() in the bounce buffer case, if we need
a barrier it will be before we call h_send_logical_lan but we have
nothing in the common case. Remove it.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Santiago Leon <santil@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ibmveth.c