]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: add the incoming MP_PRIO support
authorGeliang Tang <geliangtang@gmail.com>
Sat, 9 Jan 2021 00:47:58 +0000 (16:47 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sun, 10 Jan 2021 02:18:43 +0000 (18:18 -0800)
commit0e3bd62926174e842b561100ebf9fc4c8ca3d72c
tree94b080da8490b181b03760f94462ff4c3517a525
parent641df33b6ffcf14dce0a4ed8d94843359e204f06
mptcp: add the incoming MP_PRIO support

This patch added the incoming MP_PRIO logic:

Added a flag named mp_prio in struct mptcp_options_received, to mark the
MP_PRIO is received, and save the priority value to struct
mptcp_options_received's backup member. Then invoke
mptcp_pm_mp_prio_received with the receiving subsocket and the backup
value.

In mptcp_pm_mp_prio_received, get the subflow context according the input
subsocket, and change the subflow's backup as the incoming priority value.

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>
net/mptcp/options.c
net/mptcp/pm.c
net/mptcp/protocol.h