]> git.baikalelectronics.ru Git - kernel.git/commit
xen-netback: handle page straddling in xenvif_set_hash_mapping()
authorJan Beulich <JBeulich@suse.com>
Tue, 25 Sep 2018 08:13:37 +0000 (02:13 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Sep 2018 17:39:34 +0000 (10:39 -0700)
commit27b8b362cbcb2d788deba42c0f4201421e008f39
treed11b87a3087bb42159cecc05a7c8fbbd3ab3219a
parent657b7c99c65c57a355ee781024d6ba1a0e1c7774
xen-netback: handle page straddling in xenvif_set_hash_mapping()

There's no guarantee that the mapping array doesn't cross a page
boundary. Use a second grant copy operation if necessary.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/hash.c