]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: gtp: Move net_device assigned in setup
authorBreno Leitao <leitao@debian.org>
Tue, 5 Mar 2024 12:15:23 +0000 (04:15 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 7 Mar 2024 04:37:18 +0000 (20:37 -0800)
commit81154bb83c4436073b294acddfbcd0c7b821cb59
treeb3f3391ae2060c259a0c73aa8ce35863c3012c94
parent13957a0b070831f287eb5a52c14e9f40d4e94750
net: gtp: Move net_device assigned in setup

Assign netdev to gtp->dev at setup time, so, we can get rid of
gtp_dev_init() completely.

Signed-off-by: Breno Leitao <leitao@debian.org>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Link: https://lore.kernel.org/r/20240305121524.2254533-3-leitao@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/gtp.c