Commit 0c1e44c
idpf: stop Tx if there are insufficient buffer resources
jira KERNEL-168
commit-author Joshua Hay <joshua.a.hay@intel.com>
commit 0c3f135
upstream-diff |
adjusted conflict in idpf_tx_splitq_frame func due to missing
1a49cf8 ("idpf: add Tx timestamp flows").
The Tx refillq logic will cause packets to be silently dropped if there
are not enough buffer resources available to send a packet in flow
scheduling mode. Instead, determine how many buffers are needed along
with number of descriptors. Make sure there are enough of both resources
to send the packet, and stop the queue if not.
Fixes: 7292af0 ("idpf: fix a race in txq wakeup")
Signed-off-by: Joshua Hay <joshua.a.hay@intel.com>
Reviewed-by: Madhu Chittim <madhu.chittim@intel.com>
Tested-by: Samuel Salin <Samuel.salin@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
(cherry picked from commit 0c3f135)
Signed-off-by: Roxana Nicolescu <rnicolescu@ciq.com>1 parent 95f47fc commit 0c1e44c
3 files changed
Lines changed: 47 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| 417 | + | |
417 | 418 | | |
418 | | - | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
| 421 | + | |
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2138 | 2138 | | |
2139 | 2139 | | |
2140 | 2140 | | |
2141 | | - | |
2142 | | - | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
| 2146 | + | |
| 2147 | + | |
2143 | 2148 | | |
2144 | | - | |
| 2149 | + | |
| 2150 | + | |
2145 | 2151 | | |
2146 | | - | |
| 2152 | + | |
2147 | 2153 | | |
2148 | 2154 | | |
2149 | | - | |
| 2155 | + | |
| 2156 | + | |
2150 | 2157 | | |
2151 | 2158 | | |
2152 | 2159 | | |
| |||
2155 | 2162 | | |
2156 | 2163 | | |
2157 | 2164 | | |
| 2165 | + | |
2158 | 2166 | | |
2159 | | - | |
| 2167 | + | |
2160 | 2168 | | |
2161 | 2169 | | |
2162 | | - | |
| 2170 | + | |
| 2171 | + | |
2163 | 2172 | | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
2164 | 2177 | | |
2165 | | - | |
| 2178 | + | |
| 2179 | + | |
2166 | 2180 | | |
2167 | 2181 | | |
2168 | 2182 | | |
| |||
2204 | 2218 | | |
2205 | 2219 | | |
2206 | 2220 | | |
2207 | | - | |
| 2221 | + | |
2208 | 2222 | | |
2209 | 2223 | | |
| 2224 | + | |
2210 | 2225 | | |
2211 | | - | |
| 2226 | + | |
2212 | 2227 | | |
2213 | | - | |
2214 | | - | |
| 2228 | + | |
| 2229 | + | |
| 2230 | + | |
2215 | 2231 | | |
2216 | 2232 | | |
2217 | 2233 | | |
| |||
2222 | 2238 | | |
2223 | 2239 | | |
2224 | 2240 | | |
| 2241 | + | |
2225 | 2242 | | |
2226 | 2243 | | |
2227 | 2244 | | |
| |||
2771 | 2788 | | |
2772 | 2789 | | |
2773 | 2790 | | |
2774 | | - | |
| 2791 | + | |
2775 | 2792 | | |
2776 | 2793 | | |
2777 | 2794 | | |
2778 | | - | |
| 2795 | + | |
2779 | 2796 | | |
2780 | 2797 | | |
2781 | 2798 | | |
| |||
2785 | 2802 | | |
2786 | 2803 | | |
2787 | 2804 | | |
2788 | | - | |
| 2805 | + | |
2789 | 2806 | | |
2790 | 2807 | | |
2791 | 2808 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1112 | 1112 | | |
1113 | 1113 | | |
1114 | 1114 | | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
1115 | 1126 | | |
1116 | 1127 | | |
1117 | 1128 | | |
| |||
1142 | 1153 | | |
1143 | 1154 | | |
1144 | 1155 | | |
1145 | | - | |
1146 | | - | |
| 1156 | + | |
| 1157 | + | |
1147 | 1158 | | |
1148 | 1159 | | |
1149 | 1160 | | |
| |||
0 commit comments