]> git.baikalelectronics.ru Git - kernel.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>
Wed, 5 Apr 2023 09:16:45 +0000 (11:16 +0200)
commitdb63e339f7583687ef5b01595051a063247ace48
tree18c9b95ecce82a32317d7cdec8ad8bc000eff8a1
parent5221f3555c8f81f269ef6017cd658b613bbbc4e2
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: 162c5ff0f1f4 ("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