]> 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)
committerJoao Martins <joao.m.martins@oracle.com>
Sun, 27 Mar 2016 01:01:33 +0000 (02:01 +0100)
commit66318faa6a97987fef6a6a696bc2310777845336
tree26c8e03760fccd6f50832394a88d90686af36f14
parentb9830ead782767b678da952629a2cb0e151c299c
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: Joao Martins <joao.m.martins@oracle.com>
drivers/net/xen-netback/netback.c