]> 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)
commit4313bb45a80d4de44850803182fb1b99488e7fb6
treeb7ad5d221f61d82d67fcb6e79b8161b9e2ef4f44
parentc470db6d246697fe825255f0ccaeb8d6a6f2d56a
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