diff options
author | Yonglong Li <[email protected]> | 2021-08-23 18:05:39 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2021-08-24 09:28:28 +0100 |
commit | 1f5e9e2f5fd55fbf9b58ae6fefb021ad1c91b66a (patch) | |
tree | ba761406b1c65b7c523664f5512baa40f364b585 /tools/perf/scripts/python | |
parent | faf482ca196a5b16007190529b3b2dd32ab3f761 (diff) |
mptcp: move drop_other_suboptions check under pm lock
This patch moved the drop_other_suboptions check from
mptcp_established_options_add_addr() into mptcp_pm_add_addr_signal(), do
it under the PM lock to avoid the race between this check and
mptcp_pm_add_addr_signal().
For this, added a new parameter for mptcp_pm_add_addr_signal() to get
the drop_other_suboptions value. And drop the other suboptions after the
option length check if drop_other_suboptions is true.
Additionally, always drop the other suboption for TCP pure ack:
that makes both the code simpler and the MPTCP behaviour more
consistent.
Co-developed-by: Geliang Tang <[email protected]>
Signed-off-by: Geliang Tang <[email protected]>
Co-developed-by: Paolo Abeni <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Signed-off-by: Yonglong Li <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions