Commit 1fa80e2
can: m_can: Introduce a tx_fifo_in_flight counter
Keep track of the number of transmits in flight.
This patch prepares the driver to control the network interface queue
based on this counter. By itself this counter be
implemented with an atomic, but as we need to do other things in the
critical sections later I am using a spinlock instead.
Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
Link: https://lore.kernel.org/all/20240207093220.2681425-12-msp@baylibre.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>1 parent e668673 commit 1fa80e2
2 files changed
+34
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
| 487 | + | |
487 | 488 | | |
488 | 489 | | |
489 | 490 | | |
| |||
497 | 498 | | |
498 | 499 | | |
499 | 500 | | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
500 | 505 | | |
501 | 506 | | |
502 | 507 | | |
| |||
1067 | 1072 | | |
1068 | 1073 | | |
1069 | 1074 | | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
1070 | 1093 | | |
1071 | 1094 | | |
1072 | 1095 | | |
| |||
1076 | 1099 | | |
1077 | 1100 | | |
1078 | 1101 | | |
| 1102 | + | |
1079 | 1103 | | |
1080 | 1104 | | |
1081 | 1105 | | |
| |||
1105 | 1129 | | |
1106 | 1130 | | |
1107 | 1131 | | |
| 1132 | + | |
1108 | 1133 | | |
1109 | 1134 | | |
1110 | 1135 | | |
1111 | 1136 | | |
1112 | 1137 | | |
1113 | 1138 | | |
| 1139 | + | |
| 1140 | + | |
1114 | 1141 | | |
1115 | 1142 | | |
1116 | 1143 | | |
| |||
1192 | 1219 | | |
1193 | 1220 | | |
1194 | 1221 | | |
| 1222 | + | |
1195 | 1223 | | |
1196 | 1224 | | |
1197 | 1225 | | |
| |||
1890 | 1918 | | |
1891 | 1919 | | |
1892 | 1920 | | |
| 1921 | + | |
| 1922 | + | |
1893 | 1923 | | |
1894 | 1924 | | |
1895 | 1925 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
| |||
0 commit comments