Commit ad14d47
mptcp: pm: userspace: drop delete_local_addr helper
Address entries should not be removed from local_addr_list when a subflow
is deleted by the userspace PM, should only be removed when sending a
REMOVE_ADDR.
So mptcp_userspace_pm_delete_local_addr() helper shouldn't be called in
mptcp_pm_nl_subflow_create_doit() and mptcp_pm_nl_subflow_destroy_doit().
Since this helper is open-coding in mptcp_pm_nl_remove_doit(), it can be
dropped now.
Address entries are removed from local_addr_list when sending a REMOVE_ADDR
by the userspace PM, the local_addr_used counter of PM should also be
decremented accordingly.
Closes: multipath-tcp/mptcp_net-next#403
Signed-off-by: Geliang Tang <[email protected]>1 parent 5426f98 commit ad14d47
1 file changed
+5
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | 93 | | |
118 | 94 | | |
119 | 95 | | |
| |||
331 | 307 | | |
332 | 308 | | |
333 | 309 | | |
| 310 | + | |
334 | 311 | | |
335 | 312 | | |
336 | 313 | | |
| |||
408 | 385 | | |
409 | 386 | | |
410 | 387 | | |
411 | | - | |
| 388 | + | |
412 | 389 | | |
| 390 | + | |
| 391 | + | |
413 | 392 | | |
414 | 393 | | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
| 394 | + | |
419 | 395 | | |
420 | 396 | | |
421 | 397 | | |
| |||
534 | 510 | | |
535 | 511 | | |
536 | 512 | | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | 513 | | |
541 | 514 | | |
542 | 515 | | |
| |||
0 commit comments