udp_tunnel: hard-wire NDOs to udp_tunnel_nic_*_port() helpers
authorJakub Kicinski <kuba@kernel.org>
Wed, 6 Jan 2021 21:06:34 +0000 (13:06 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 7 Jan 2021 20:53:29 +0000 (12:53 -0800)
commit876c4384aecc173a05d912e075a62232ea1be120
tree2b363fc672e5cb1d089cb07cf28bb886cbeff8cd
parentddb4d32ed6609ab310b947a875771c6fe187d976
udp_tunnel: hard-wire NDOs to udp_tunnel_nic_*_port() helpers

All drivers use udp_tunnel_nic_*_port() helpers, prepare for
NDO removal by invoking those helpers directly.

The helpers are safe to call on all devices, they check if
device has the UDP tunnel state initialized.

Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/dev.c
net/ipv4/udp_tunnel_core.c