diff options
author | 2021-01-06 13:06:37 -0800 | |
---|---|---|
committer | 2021-01-07 12:53:29 -0800 | |
commit | b9ef3fecd1403fc1c2dd146e67b366691394b80f (patch) | |
tree | c051eea4572b565e57efb775a26f51ecc14cc007 /drivers/net | |
parent | net: remove ndo_udp_tunnel_* callbacks (diff) | |
download | wireguard-linux-b9ef3fecd1403fc1c2dd146e67b366691394b80f.tar.xz wireguard-linux-b9ef3fecd1403fc1c2dd146e67b366691394b80f.zip |
udp_tunnel: reshuffle NETIF_F_RX_UDP_TUNNEL_PORT checks
Move the NETIF_F_RX_UDP_TUNNEL_PORT feature check into
udp_tunnel_nic_*_port() helpers, since they're always
done right before the call.
Add similar checks before calling the notifier.
udp_tunnel_nic invokes the notifier without checking
features which could result in some wasted cycles.
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions