]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 28 Mar 2023 12:16:40 +0000 (14:16 +0200)
commit05310f31ca74673a96567fb14637b7d5d6c82ea5
treefd4cdc44223e2d06e2a300f04c5d03451ab358e0
parentf22c993f31fa9615df46e49cd768b713d39a852f
xen/netback: don't do grant copy across page boundary

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>
drivers/net/xen-netback/common.h
drivers/net/xen-netback/netback.c