gtp: switch from struct socket to struct sock for the GTP sockets
authorAndreas Schultz <aschultz@tpip.net>
Thu, 9 Mar 2017 16:42:56 +0000 (17:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Mar 2017 20:04:30 +0000 (13:04 -0700)
commit17886c4705853fe402d06b2820ae155d38fb345e
tree8f7d0398efd417a416b25d7eddc9731ae3bc903c
parent68e5cfaffaca73bda1263c503f9b186a196dd97b
gtp: switch from struct socket to struct sock for the GTP sockets

After enabling the UDP encapsulation, only the sk member is used.

Holding the socket would prevent user space from closing the socket,
but holding a reference to the sk member does not have the same
effect.

This change will make it simpler to later detach the sockets from
the netdevice.

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