Commit 88d0973
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 <tanggeliang@kylinos.cn>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20241213-net-next-mptcp-pm-misc-cleanup-v1-5-ddb6d00109a8@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 8008e77 commit 88d0973
2 files changed
+17
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
| 291 | + | |
291 | 292 | | |
292 | 293 | | |
293 | | - | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
306 | 301 | | |
307 | | - | |
308 | | - | |
| 302 | + | |
309 | 303 | | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
316 | 308 | | |
317 | 309 | | |
318 | 310 | | |
319 | 311 | | |
320 | 312 | | |
321 | 313 | | |
322 | | - | |
323 | 314 | | |
324 | | - | |
325 | 315 | | |
326 | 316 | | |
327 | 317 | | |
| |||
355 | 345 | | |
356 | 346 | | |
357 | 347 | | |
358 | | - | |
| 348 | + | |
359 | 349 | | |
360 | 350 | | |
361 | | - | |
| 351 | + | |
362 | 352 | | |
363 | 353 | | |
364 | 354 | | |
365 | | - | |
366 | | - | |
367 | | - | |
| 355 | + | |
368 | 356 | | |
369 | 357 | | |
370 | 358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
1041 | | - | |
| 1041 | + | |
| 1042 | + | |
1042 | 1043 | | |
1043 | 1044 | | |
1044 | 1045 | | |
| |||
0 commit comments