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)
commit871088bf92e11efb69bbdbd537e48c0ad4f63729
treed11b87a3087bb42159cecc05a7c8fbbd3ab3219a
parent22f9cde3401077ea450b69bf9b0bba373e12e454
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