]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 18 Dec 2015 15:44:45 +0000 (10:44 -0500)
commit279b67e894b5f4f1af1a5fbf03c745c1c1edaccc
treef7797241debd164c061070d8b39ddb96abf8cd88
parent3fe84966087230fb7329c06e982659bcbd3ba08f
xen-netback: don't use last request to determine minimum Tx credit

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.

CC: stable@vger.kernel.org
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>
(cherry picked from commit 0f589967a73f1f30ab4ac4dd9ce0bb399b4d6357)
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/net/xen-netback/netback.c