]> git.baikalelectronics.ru Git - kernel.git/commit
gtp: merge gtp_get_net and gtp_genl_find_dev
authorAndreas Schultz <aschultz@tpip.net>
Thu, 9 Mar 2017 16:42:58 +0000 (17:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Mar 2017 20:04:30 +0000 (13:04 -0700)
commit1fca4e00dedbe3afff25d5d77b3c44f17c1f8bb5
treeb7ad5d221f61d82d67fcb6e79b8161b9e2ef4f44
parente8ef3f4e64d9bae5aba8c865c98d364dbc2813d6
gtp: merge gtp_get_net and gtp_genl_find_dev

Both function are always used together with the final goal to
get the gtp_dev. This simplifies the code by merging them together.

The netdevice lookup is changed to use the regular dev_get_by_index.
The gtp netdevice list is now only used to find the PDP contexts for
imcomming packets. It can be completely eliminated Once the TEID
hash is moved into the GTP socket.

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