Yoshihiro Shimoda c4f922e86c net: renesas: rswitch: Add spin lock protection for irq {un}mask
Add spin lock protection for irq {un}mask registers' control.

After napi_complete_done() and this protection were applied,
a lot of redundant interrupts no longer occur.

For example: when "iperf3 -c <ipaddr> -R" on R-Car S4-8 Spider
 Before the patches are applied: about 800,000 times happened
 After the patches were applied: about 100,000 times happened

Fixes: 3590918b5d07 ("net: ethernet: renesas: Add support for "Ethernet Switch"")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2023-09-14 10:26:41 +02:00
..
2023-08-11 21:12:45 +02:00
2023-09-01 09:38:00 -07:00
2023-08-11 21:12:45 +02:00
2023-08-30 16:42:21 -07:00
2023-08-11 21:12:45 +02:00
2023-09-01 09:38:00 -07:00
2023-08-11 21:12:45 +02:00
2023-09-11 09:58:34 +01:00
2023-08-14 08:03:52 +01:00
2023-07-12 17:16:56 -07:00
2023-08-03 15:34:36 -07:00
2023-09-04 10:43:44 -07:00
2023-08-29 17:39:15 -07:00