]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/netback: don't do grant copy across page boundary
authorJuergen Gross <jgross@suse.com>
Mon, 27 Mar 2023 08:36:45 +0000 (10:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Apr 2023 10:10:52 +0000 (12:10 +0200)
commitcdfac0a5064187219c88ddcc9283fbeb80abf522
tree9bc7cb4e24ac2f45bea8b5aeea274b2105fe1fc8
parentace6aa2ab5ba5869563ca689bbd912100514ae7b
xen/netback: don't do grant copy across page boundary

commit 05310f31ca74673a96567fb14637b7d5d6c82ea5 upstream.

Fix xenvif_get_requests() not to do grant copy operations across local
page boundaries. This requires to double the maximum number of copy
operations per queue, as each copy could now be split into 2.

Make sure that struct xenvif_tx_cb doesn't grow too large.

Cc: stable@vger.kernel.org
Fixes: ad7f402ae4f4 ("xen/netback: Ensure protocol headers don't fall in the non-linear area")
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/xen-netback/common.h
drivers/net/xen-netback/netback.c