]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2532df3455b40e95edfe43c76c652507d18c37b2
tree8f7d0398efd417a416b25d7eddc9731ae3bc903c
parent2acb0aed8ee9a21448ea95098c75e0c49515dbb6
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