OSDN Git Service

mptcp: move flags and ifindex out of mptcp_addr_info
authorGeliang Tang <geliangtang@gmail.com>
Wed, 7 Apr 2021 00:15:57 +0000 (17:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Apr 2021 21:09:39 +0000 (14:09 -0700)
commitdaa83ab039546a906953f1821e493ddc980ed889
tree094e6c14aa2db14e96f899faa808c447b9af09ed
parent0b35e0deb5bee7d4882356d6663522c1562a8321
mptcp: move flags and ifindex out of mptcp_addr_info

This patch moved the flags and ifindex fields from struct mptcp_addr_info
to struct mptcp_pm_addr_entry. Add the flags and ifindex values as two new
parameters to __mptcp_subflow_connect.

In mptcp_pm_create_subflow_or_signal_addr, pass the local address entry's
flags and ifindex fields to __mptcp_subflow_connect.

In mptcp_pm_nl_add_addr_received, just pass two zeros to it.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/pm_netlink.c
net/mptcp/protocol.h
net/mptcp/subflow.c