mptcp: add pm_nl_pernet helpers
authorGeliang Tang <geliang.tang@suse.com>
Fri, 8 Apr 2022 19:45:57 +0000 (12:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Apr 2022 10:55:53 +0000 (11:55 +0100)
commitc682bf536cf4fd8bb5395f9b7147233087107793
tree6466f658c3c8edbb7bb81dde267a82d76f6d4f65
parent0e203c324752e13d22624ab7ffafe934fa06ab50
mptcp: add pm_nl_pernet helpers

This patch adds two pm_nl_pernet related helpers, named pm_nl_get_pernet()
and pm_nl_get_pernet_from_msk() to get pm_nl_pernet from 'net' or 'msk'.
Use these helpers instead of using net_generic() directly.

Suggested-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Geliang Tang <geliang.tang@suse.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