gtp: unify genl_find_pdp and prepare for per socket lookup
authorAndreas Schultz <aschultz@tpip.net>
Thu, 9 Mar 2017 16:43:00 +0000 (17:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Mar 2017 20:04:31 +0000 (13:04 -0700)
commitd9e2dd122637034a0697bf268eed9233701b9dca
treeeb331605f1a64de843a667f7797aff15e7f80817
parent5b171f9cfe5e628c3537be159fa36fff1f5cec8f
gtp: unify genl_find_pdp and prepare for per socket lookup

This unifies duplicate code into a helper. It also prepares the
groundwork to add a lookup version that uses the socket to find
attached pdp contexts.

Signed-off-by: Andreas Schultz <aschultz@tpip.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gtp.c