RE: [PATCH v2 4/8] xen/netback: fix spurious event detection for common event case

From: Paul Durrant
Date: Thu Feb 11 2021 - 09:26:08 EST


> -----Original Message-----
> From: Juergen Gross <jgross@xxxxxxxx>
> Sent: 11 February 2021 10:16
> To: xen-devel@xxxxxxxxxxxxxxxxxxxx; netdev@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
> Cc: Juergen Gross <jgross@xxxxxxxx>; Wei Liu <wei.liu@xxxxxxxxxx>; Paul Durrant <paul@xxxxxxx>; David
> S. Miller <davem@xxxxxxxxxxxxx>; Jakub Kicinski <kuba@xxxxxxxxxx>
> Subject: [PATCH v2 4/8] 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.
>

Definitely neater.

> Fixes: 23025393dbeb3b ("xen/netback: use lateeoi irq binding")
> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>

Reviewed-by: Paul Durrant <paul@xxxxxxx>