diff options
| author | Geliang Tang <geliangtang@gmail.com> | 2021-01-09 03:47:59 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-10 05:18:43 +0300 |
| commit | 0f9f696a502e1b01fbb137a08f56f157da9d95eb (patch) | |
| tree | fa60b56d555c839f2be84850fbd18f245b5b6b59 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | 40453a5c61f4dc43bbbdbf7cefed4eb1bc8d69b7 (diff) | |
| download | linux-0f9f696a502e1b01fbb137a08f56f157da9d95eb.tar.xz | |
mptcp: add set_flags command in PM netlink
This patch added a new command MPTCP_PM_CMD_SET_FLAGS in PM netlink:
In mptcp_nl_cmd_set_flags, parse the input address, get the backup value
according to whether the address's FLAG_BACKUP flag is set from the
user-space. Then check whether this address had been added in the local
address list. If it had been, then call mptcp_nl_addr_backup to deal with
this address.
In mptcp_nl_addr_backup, traverse all the existing msk sockets to find
the relevant sockets, and call mptcp_pm_nl_mp_prio_send_ack to send out
a MP_PRIO ACK packet.
Finally in mptcp_nl_cmd_set_flags, set or clear the address's FLAG_BACKUP
flag.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
