]> git.baikalelectronics.ru Git - kernel.git/commit
xen-netback: Aggregate TX unmap operations
authorZoltan Kiss <zoltan.kiss@citrix.com>
Thu, 6 Mar 2014 21:48:31 +0000 (21:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Mar 2014 20:57:21 +0000 (15:57 -0500)
commitca73be91b8b381b8d9aab509a09c8ae2304ed4f9
tree05898b0d8dab616b2936783964cae4f77b06af84
parent718ff3ca2f5f54e48633b52cb075fa63a694ecec
xen-netback: Aggregate TX unmap operations

Unmapping causes TLB flushing, therefore we should make it in the largest
possible batches. However we shouldn't starve the guest for too long. So if
the guest has space for at least two big packets and we don't have at least a
quarter ring to unmap, delay it for at most 1 milisec.

Signed-off-by: Zoltan Kiss <zoltan.kiss@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/common.h
drivers/net/xen-netback/interface.c
drivers/net/xen-netback/netback.c