]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2021 22:47:00 +0000 (14:47 -0800)
commit2dac18795f491568bb389c5ecc43bccf3ce24b6e
tree0865146aafa262a64bdb5662a5f406bd7075bb21
parentf95a7aa46d06b05f29a56b784b239c9f109d57f0
xen/netback: fix spurious event detection for common event case

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: d4ddb6e5497768 ("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>
drivers/net/xen-netback/interface.c