xen/netfront: read response from backend only once
authorJuergen Gross <jgross@suse.com>
Tue, 24 Aug 2021 10:28:06 +0000 (12:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Aug 2021 09:43:21 +0000 (10:43 +0100)
commit8446066bf8c1f9f7b7412c43fbea0fb87464d75b
treecca7d7ba6b26cab1902670d86c7a4b1176c3cdfd
parent755f905340802e2efb1ea96b9ce0f442916c2645
xen/netfront: read response from backend only once

In order to avoid problems in case the backend is modifying a response
on the ring page while the frontend has already seen it, just read the
response into a local buffer in one go and then operate on that buffer
only.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netfront.c