Skip to contentSkip to conversation

ibmveth: Add tx_copybreak

PATCH Brian King 1 participant 1 message Aug 19, 2010 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

Brian King

author
#2 lore raw
In reply to a message not in the archive
Quoted 15 lines · Anton Blanchard

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.

---

Index: powerpc.git/drivers/net/ibmveth.c
===================================================================

drivers/net/ibmveth.c MODULE_DESCRIPTION("IBM i/pSeries Virtua · line 120

Quoted 4 lines
drivers/net/ibmveth.c +1 -0
@@ -117,6 +117,11 @@ MODULE_DESCRIPTION("IBM i/pSeries Virtua
 MODULE_LICENSE("GPL");
 MODULE_VERSION(ibmveth_driver_version);
 
+static unsigned int tx_copybreak __read_mostly = 128;

Where did the 128 come from? I thought I heard the 2k value discussed in the past.

Thanks,

Brian

Signature · 3 lines
Brian King
Linux on Power Virtualization
IBM Linux Technology Center