]> 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)
commit10159cb335307c0c6265612f67729d6d0b24fd6e
tree8f7d0398efd417a416b25d7eddc9731ae3bc903c
parentd1a538cc6192994823c1771c40839bc5e99c20d9
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