Commit 5a8cdf6
netfilter: nft_set_pipapo: remove scratch_aligned pointer
use ->scratch for both avx2 and the generic implementation.
After previous change the scratch->map member is always aligned properly
for AVX2, so we can just use scratch->map in AVX2 too.
The alignoff delta is stored in the scratchpad so we can reconstruct
the correct address to free the area again.
Fixes: 7400b06 ("nft_set_pipapo: Introduce AVX2-based lookup implementation")
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>1 parent 47b1c03 commit 5a8cdf6
3 files changed
Lines changed: 10 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1125 | 1125 | | |
1126 | 1126 | | |
1127 | 1127 | | |
| 1128 | + | |
1128 | 1129 | | |
1129 | 1130 | | |
1130 | 1131 | | |
| |||
1144 | 1145 | | |
1145 | 1146 | | |
1146 | 1147 | | |
| 1148 | + | |
1147 | 1149 | | |
1148 | 1150 | | |
1149 | 1151 | | |
| |||
1162 | 1164 | | |
1163 | 1165 | | |
1164 | 1166 | | |
1165 | | - | |
1166 | | - | |
1167 | 1167 | | |
1168 | 1168 | | |
1169 | 1169 | | |
| |||
1175 | 1175 | | |
1176 | 1176 | | |
1177 | 1177 | | |
1178 | | - | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
1179 | 1182 | | |
| 1183 | + | |
1180 | 1184 | | |
1181 | 1185 | | |
1182 | 1186 | | |
| |||
1331 | 1335 | | |
1332 | 1336 | | |
1333 | 1337 | | |
1334 | | - | |
1335 | | - | |
1336 | | - | |
1337 | | - | |
1338 | | - | |
1339 | 1338 | | |
1340 | 1339 | | |
1341 | 1340 | | |
| |||
1388 | 1387 | | |
1389 | 1388 | | |
1390 | 1389 | | |
1391 | | - | |
1392 | | - | |
1393 | | - | |
1394 | 1390 | | |
1395 | 1391 | | |
1396 | 1392 | | |
| |||
1673 | 1669 | | |
1674 | 1670 | | |
1675 | 1671 | | |
1676 | | - | |
1677 | | - | |
1678 | | - | |
1679 | 1672 | | |
1680 | | - | |
1681 | 1673 | | |
1682 | 1674 | | |
1683 | 1675 | | |
| |||
2171 | 2163 | | |
2172 | 2164 | | |
2173 | 2165 | | |
2174 | | - | |
2175 | | - | |
2176 | | - | |
2177 | | - | |
2178 | | - | |
2179 | | - | |
2180 | | - | |
2181 | | - | |
2182 | | - | |
2183 | | - | |
2184 | 2166 | | |
2185 | 2167 | | |
2186 | 2168 | | |
| |||
2211 | 2193 | | |
2212 | 2194 | | |
2213 | 2195 | | |
2214 | | - | |
2215 | | - | |
2216 | | - | |
2217 | 2196 | | |
2218 | 2197 | | |
2219 | 2198 | | |
| |||
2267 | 2246 | | |
2268 | 2247 | | |
2269 | 2248 | | |
2270 | | - | |
2271 | | - | |
2272 | | - | |
2273 | 2249 | | |
2274 | 2250 | | |
2275 | 2251 | | |
| |||
2284 | 2260 | | |
2285 | 2261 | | |
2286 | 2262 | | |
2287 | | - | |
2288 | | - | |
2289 | | - | |
2290 | 2263 | | |
2291 | 2264 | | |
2292 | 2265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| 141 | + | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
147 | | - | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | 155 | | |
158 | 156 | | |
159 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1139 | 1139 | | |
1140 | 1140 | | |
1141 | 1141 | | |
1142 | | - | |
| 1142 | + | |
1143 | 1143 | | |
1144 | 1144 | | |
1145 | 1145 | | |
| |||
0 commit comments