]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
xen/netback: fix spurious event detection for common event case
authorJuergen Gross <jgross@suse.com>
Thu, 11 Feb 2021 10:16:12 +0000 (11:16 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Apr 2021 16:31:23 +0000 (18:31 +0200)
commit8d100d03d8c1aaf7d375ac9726fc0b7fc87590d1
treeeb63f88d28f30f7ade83e7823ba83e4ba3819300
parent24ae3545fc2b6622a626b427d16c127d7bc3c1cc
xen/netback: fix spurious event detection for common event case

BugLink: https://bugs.launchpad.net/bugs/1918974
[ Upstream commit a3daf3d39132b405781be8d9ede0c449b244b64e ]

In case of a common event for rx and tx queue the event should be
regarded to be spurious if no rx and no tx requests are pending.

Unfortunately the condition for testing that is wrong causing to
decide a event being spurious if no rx OR no tx requests are
pending.

Fix that plus using local variables for rx/tx pending indicators in
order to split function calls and if condition.

Fixes: 23025393dbeb3b ("xen/netback: use lateeoi irq binding")
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Reviewed-by: Wei Liu <wl@xen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/net/xen-netback/interface.c