]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc6879fddcf3b384e7a47968b2017aebaccc7f04a
treecca7d7ba6b26cab1902670d86c7a4b1176c3cdfd
parentd878cfc63e760259d980b57809a338f6cf85c5d5
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