]> 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)
commit3475624a8e4891dc1cd35aa73571a98cdb958d52
tree05898b0d8dab616b2936783964cae4f77b06af84
parentd3a335978eac7f05e7f35edb3d448dbceac94e97
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