Commit 3efaed5
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 4974ebb commit 3efaed5
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 | | |
| |||
412 | 389 | | |
413 | 390 | | |
414 | 391 | | |
415 | | - | |
| 392 | + | |
416 | 393 | | |
| 394 | + | |
| 395 | + | |
417 | 396 | | |
418 | 397 | | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
| 398 | + | |
423 | 399 | | |
424 | 400 | | |
425 | 401 | | |
| |||
538 | 514 | | |
539 | 515 | | |
540 | 516 | | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | 517 | | |
545 | 518 | | |
546 | 519 | | |
| |||
0 commit comments