mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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>
This commit is contained in:
parent
093507885a
commit
e9275f5e2d
3 changed files with 37 additions and 1 deletions
|
@ -137,6 +137,8 @@ struct xenvif {
|
|||
u16 dealloc_ring[MAX_PENDING_REQS];
|
||||
struct task_struct *dealloc_task;
|
||||
wait_queue_head_t dealloc_wq;
|
||||
struct timer_list dealloc_delay;
|
||||
bool dealloc_delay_timed_out;
|
||||
|
||||
/* Use kthread for guest RX */
|
||||
struct task_struct *task;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue