]> 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)
commitc0b1f48a4897b9aeec2f447b5c204ab6d8f27c40
treecca7d7ba6b26cab1902670d86c7a4b1176c3cdfd
parentca69cb497751ebc1e5fab69aacbd5d509e04eb5e
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