Commit 58797aa
mptcp: drop free_list for deleting entries
mptcp_pm_remove_addrs() actually only deletes one address, which does
not match its name. This patch renames it to mptcp_pm_remove_addr_entry()
and changes the parameter "rm_list" to "entry".
With the help of mptcp_pm_remove_addr_entry(), it's no longer necessary to
move the entry to be deleted to free_list and then traverse the list to
delete the entry, which is not allowed in BPF. The entry can be directly
deleted through list_del_rcu() and sock_kfree_s() now.
Signed-off-by: Geliang Tang <[email protected]>1 parent 1f4fc8e commit 58797aa
2 files changed
+17
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
| 290 | + | |
290 | 291 | | |
291 | 292 | | |
292 | | - | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
305 | 300 | | |
306 | | - | |
307 | | - | |
| 301 | + | |
308 | 302 | | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
315 | 307 | | |
316 | 308 | | |
317 | 309 | | |
318 | 310 | | |
319 | 311 | | |
320 | 312 | | |
321 | | - | |
322 | 313 | | |
323 | | - | |
324 | 314 | | |
325 | 315 | | |
326 | 316 | | |
| |||
354 | 344 | | |
355 | 345 | | |
356 | 346 | | |
357 | | - | |
| 347 | + | |
358 | 348 | | |
359 | 349 | | |
360 | | - | |
| 350 | + | |
361 | 351 | | |
362 | 352 | | |
363 | 353 | | |
364 | | - | |
365 | | - | |
366 | | - | |
| 354 | + | |
367 | 355 | | |
368 | 356 | | |
369 | 357 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1042 | 1042 | | |
1043 | 1043 | | |
1044 | 1044 | | |
1045 | | - | |
| 1045 | + | |
| 1046 | + | |
1046 | 1047 | | |
1047 | 1048 | | |
1048 | 1049 | | |
| |||
0 commit comments