]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb1e5a7bbf4a2e080c0b5ec5e3907723785114a18
tree7153518bc4c5c08c8d39b5ac727333aaabcf3259
parent02ccb2aca3da595e606b2a7d00376a33b1db5386
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