xen-netback: don't use last request to determine minimum Tx credit
authorDavid Vrabel <david.vrabel@citrix.com>
Fri, 30 Oct 2015 15:16:01 +0000 (15:16 +0000)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Feb 2017 08:04:07 +0000 (09:04 +0100)
commit85fed7d24f020390aabb1b09e5fecfe5536bfb16
treeadec7b0f9ff3f384644ad311cbe9985a2adae757
parent0a5b4e4cf2486558406280439157e5518a4b088d
xen-netback: don't use last request to determine minimum Tx credit

commit 0f589967a73f1f30ab4ac4dd9ce0bb399b4d6357 upstream.

The last from guest transmitted request gives no indication about the
minimum amount of credit that the guest might need to send a packet
since the last packet might have been a small one.

Instead allow for the worst case 128 KiB packet.

This is part of XSA155.

Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/net/xen-netback/netback.c