Commit c4f922e
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: 3590918 ("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>1 parent e7b1ef2 commit c4f922e
2 files changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
799 | 799 | | |
800 | 800 | | |
801 | 801 | | |
| 802 | + | |
802 | 803 | | |
803 | 804 | | |
804 | 805 | | |
| |||
817 | 818 | | |
818 | 819 | | |
819 | 820 | | |
| 821 | + | |
820 | 822 | | |
821 | 823 | | |
| 824 | + | |
822 | 825 | | |
823 | 826 | | |
824 | 827 | | |
| |||
835 | 838 | | |
836 | 839 | | |
837 | 840 | | |
| 841 | + | |
838 | 842 | | |
839 | 843 | | |
| 844 | + | |
840 | 845 | | |
841 | 846 | | |
842 | 847 | | |
| |||
1440 | 1445 | | |
1441 | 1446 | | |
1442 | 1447 | | |
| 1448 | + | |
1443 | 1449 | | |
1444 | 1450 | | |
1445 | 1451 | | |
1446 | 1452 | | |
1447 | 1453 | | |
1448 | 1454 | | |
| 1455 | + | |
1449 | 1456 | | |
1450 | 1457 | | |
| 1458 | + | |
1451 | 1459 | | |
1452 | 1460 | | |
1453 | 1461 | | |
| |||
1461 | 1469 | | |
1462 | 1470 | | |
1463 | 1471 | | |
| 1472 | + | |
1464 | 1473 | | |
1465 | 1474 | | |
1466 | 1475 | | |
| |||
1476 | 1485 | | |
1477 | 1486 | | |
1478 | 1487 | | |
| 1488 | + | |
1479 | 1489 | | |
1480 | 1490 | | |
| 1491 | + | |
1481 | 1492 | | |
1482 | 1493 | | |
1483 | 1494 | | |
| |||
1887 | 1898 | | |
1888 | 1899 | | |
1889 | 1900 | | |
| 1901 | + | |
1890 | 1902 | | |
1891 | 1903 | | |
1892 | 1904 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
| 1014 | + | |
| 1015 | + | |
1014 | 1016 | | |
1015 | 1017 | | |
1016 | 1018 | | |
| |||
0 commit comments