]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mptcp: add set_flags command in pm_nl_ctl
authorGeliang Tang <geliangtang@gmail.com>
Sat, 9 Jan 2021 00:48:00 +0000 (16:48 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sun, 10 Jan 2021 02:18:44 +0000 (18:18 -0800)
commitcea896c5ee270ef7fa82044c4ec90b47f8b18271
treeb75559679a5d7a39bed252c14012daadb5c59da3
parent6a6ac942f8f866df26b18f7fdb8ab3628aa9d902
selftests: mptcp: add set_flags command in pm_nl_ctl

This patch added the set_flags command in pm_nl_ctl, currently we can only
set two flags: backup and nobackup. The set_flags command can be used like
this:

 # pm_nl_ctl set 10.0.0.1 flags backup
 # pm_nl_ctl set 10.0.0.1 flags nobackup

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>
tools/testing/selftests/net/mptcp/pm_nl_ctl.c