mptcp: add netlink event support
authorFlorian Westphal <fw@strlen.de>
Sat, 13 Feb 2021 00:00:01 +0000 (16:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Feb 2021 00:31:46 +0000 (16:31 -0800)
commitb911c97c7dc771633c68ea9b8f15070f8af3d323
tree53af04a955ad82a889b2495fe64e9b6a752c3251
parent4d54cc32112d8d8b0667559c9309f1a6f764f70b
mptcp: add netlink event support

Allow userspace (mptcpd) to subscribe to mptcp genl multicast events.
This implementation reuses the same event API as the mptcp kernel fork
to ease integration of existing tools, e.g. mptcpd.

Supported events include:
1. start and close of an mptcp connection
2. start and close of subflows (joins)
3. announce and withdrawals of addresses
4. subflow priority (backup/non-backup) change.

Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/mptcp.h
net/mptcp/pm.c
net/mptcp/pm_netlink.c
net/mptcp/protocol.c
net/mptcp/protocol.h