mptcp: netlink: split mptcp_pm_parse_addr into two functions
authorFlorian Westphal <fw@strlen.de>
Wed, 4 May 2022 02:38:51 +0000 (19:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2022 09:49:31 +0000 (10:49 +0100)
commit982f17ba1a2534b878fbcb1a5273bfbc551c5397
tree7153518bc4c5c08c8d39b5ac727333aaabcf3259
parent8b20137012d9e521736c040328f8979cf0a144d0
mptcp: netlink: split mptcp_pm_parse_addr into two functions

Next patch will need to parse MPTCP_PM_ATTR_ADDR attributes and
fill an mptcp_addr_info structure from a different genl command
callback.

To avoid copy-paste, split the existing function to a helper
that does the common part and then call the helper from the
(renamed)mptcp_pm_parse_entry function.

Acked-by: Paolo Abeni <pabeni@redhat.com>
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>
net/mptcp/pm_netlink.c