]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: remove ndo_udp_tunnel_* callbacks
authorJakub Kicinski <kuba@kernel.org>
Wed, 6 Jan 2021 21:06:36 +0000 (13:06 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 7 Jan 2021 20:53:29 +0000 (12:53 -0800)
All UDP tunnel port management is now routed via udp_tunnel_nic
infra directly. Remove the old callbacks.

Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
21 files changed:
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/cavium/liquidio/lio_main.c
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/cisco/enic/enic_main.c
drivers/net/ethernet/emulex/benet/be_main.c
drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/ice/ice_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/netronome/nfp/nfp_net_common.c
drivers/net/ethernet/qlogic/qede/qede_main.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
drivers/net/ethernet/sfc/efx.c
drivers/net/netdevsim/netdev.c
include/linux/netdevice.h

index 2709a2db56577d11d3325bf661645d7e066b4d6f..99b6d5a9f1d921e8950c04a842aadff14af1b224 100644 (file)
@@ -2295,8 +2295,6 @@ static const struct net_device_ops xgbe_netdev_ops = {
        .ndo_setup_tc           = xgbe_setup_tc,
        .ndo_fix_features       = xgbe_fix_features,
        .ndo_set_features       = xgbe_set_features,
-       .ndo_udp_tunnel_add     = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del     = udp_tunnel_nic_del_port,
        .ndo_features_check     = xgbe_features_check,
 };
 
index 28069b29086257e922ef0ebf78cb9f5084ec3759..b652ed72a621a30f1edea2a956704f978f531289 100644 (file)
@@ -13071,8 +13071,6 @@ static const struct net_device_ops bnx2x_netdev_ops = {
        .ndo_get_phys_port_id   = bnx2x_get_phys_port_id,
        .ndo_set_vf_link_state  = bnx2x_set_vf_link_state,
        .ndo_features_check     = bnx2x_features_check,
-       .ndo_udp_tunnel_add     = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del     = udp_tunnel_nic_del_port,
 };
 
 static int bnx2x_set_coherency_mask(struct bnx2x *bp)
index bbd2a07dc32911011dfac80fdfe618589816f5dc..d31a5ad7522a281d2aeb6616ece1c224f115ab84 100644 (file)
@@ -12091,8 +12091,6 @@ static const struct net_device_ops bnxt_netdev_ops = {
 #ifdef CONFIG_RFS_ACCEL
        .ndo_rx_flow_steer      = bnxt_rx_flow_steer,
 #endif
-       .ndo_udp_tunnel_add     = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del     = udp_tunnel_nic_del_port,
        .ndo_bpf                = bnxt_xdp,
        .ndo_xdp_xmit           = bnxt_xdp_xmit,
        .ndo_bridge_getlink     = bnxt_bridge_getlink,
index 7d00d3a8ded4dda2ede02fb9f8ca6cb18b5692cc..7c5af4beedc6d31318fb6f46a6f5f8470e5b33fb 100644 (file)
@@ -3219,8 +3219,6 @@ static const struct net_device_ops lionetdevops = {
        .ndo_do_ioctl           = liquidio_ioctl,
        .ndo_fix_features       = liquidio_fix_features,
        .ndo_set_features       = liquidio_set_features,
-       .ndo_udp_tunnel_add     = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del     = udp_tunnel_nic_del_port,
        .ndo_set_vf_mac         = liquidio_set_vf_mac,
        .ndo_set_vf_vlan        = liquidio_set_vf_vlan,
        .ndo_get_vf_config      = liquidio_get_vf_config,
index 103440f97bc849faca66ac760564b8535465e625..516f166ceff8c3195864e6bfa4a5c7a0a3a8ea62 100644 (file)
@@ -1879,8 +1879,6 @@ static const struct net_device_ops lionetdevops = {
        .ndo_do_ioctl           = liquidio_ioctl,
        .ndo_fix_features       = liquidio_fix_features,
        .ndo_set_features       = liquidio_set_features,
-       .ndo_udp_tunnel_add     = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del     = udp_tunnel_nic_del_port,
 };
 
 static int lio_nic_info(struct octeon_recv_info *recv_info, void *buf)
index 7fd264a6d08546c8783e3ba8270d853fe218824c..15542661e3d2b5bcdae042ba738339534e264bfb 100644 (file)
@@ -3882,8 +3882,6 @@ static const struct net_device_ops cxgb4_netdev_ops = {
 #endif /* CONFIG_CHELSIO_T4_FCOE */
        .ndo_set_tx_maxrate   = cxgb_set_tx_maxrate,
        .ndo_setup_tc         = cxgb_setup_tc,
-       .ndo_udp_tunnel_add   = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del   = udp_tunnel_nic_del_port,
        .ndo_features_check   = cxgb_features_check,
        .ndo_fix_features     = cxgb_fix_features,
 };
index fb269d587b741d9d7a3a109bb8cbc87191ee3b51..f04ec53544ae556857ddfa35fd5d80577ff2262b 100644 (file)
@@ -2509,8 +2509,6 @@ static const struct net_device_ops enic_netdev_dynamic_ops = {
 #ifdef CONFIG_RFS_ACCEL
        .ndo_rx_flow_steer      = enic_rx_flow_steer,
 #endif
-       .ndo_udp_tunnel_add     = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del     = udp_tunnel_nic_del_port,
        .ndo_features_check     = enic_features_check,
 };
 
@@ -2535,8 +2533,6 @@ static const struct net_device_ops enic_netdev_ops = {
 #ifdef CONFIG_RFS_ACCEL
        .ndo_rx_flow_steer      = enic_rx_flow_steer,
 #endif
-       .ndo_udp_tunnel_add     = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del     = udp_tunnel_nic_del_port,
        .ndo_features_check     = enic_features_check,
 };
 
index d402d83d9edd0bdab731b9c443f0bbf271e7edbf..b6eba29d8e99e7dac54b80306420a3927e42d3f9 100644 (file)
@@ -5179,8 +5179,6 @@ static const struct net_device_ops be_netdev_ops = {
 #endif
        .ndo_bridge_setlink     = be_ndo_bridge_setlink,
        .ndo_bridge_getlink     = be_ndo_bridge_getlink,
-       .ndo_udp_tunnel_add     = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del     = udp_tunnel_nic_del_port,
        .ndo_features_check     = be_features_check,
        .ndo_get_phys_port_id   = be_get_phys_port_id,
 };
index 5c19ff4525587e2d76a0b168e210ac9a75587c05..2fb52bd6fc0e156c35b09823a0bb37041133e4b5 100644 (file)
@@ -1531,8 +1531,6 @@ static const struct net_device_ops fm10k_netdev_ops = {
        .ndo_set_vf_rate        = fm10k_ndo_set_vf_bw,
        .ndo_get_vf_config      = fm10k_ndo_get_vf_config,
        .ndo_get_vf_stats       = fm10k_ndo_get_vf_stats,
-       .ndo_udp_tunnel_add     = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del     = udp_tunnel_nic_del_port,
        .ndo_dfwd_add_station   = fm10k_dfwd_add_station,
        .ndo_dfwd_del_station   = fm10k_dfwd_del_station,
        .ndo_features_check     = fm10k_features_check,
index 1db482d310c2d5ad1ca978ec7d47ee8b4f77221b..521ea9df38d5f54219f7ba3c077523d774ff46f2 100644 (file)
@@ -12804,8 +12804,6 @@ static const struct net_device_ops i40e_netdev_ops = {
        .ndo_set_vf_link_state  = i40e_ndo_set_vf_link_state,
        .ndo_set_vf_spoofchk    = i40e_ndo_set_vf_spoofchk,
        .ndo_set_vf_trust       = i40e_ndo_set_vf_trust,
-       .ndo_udp_tunnel_add     = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del     = udp_tunnel_nic_del_port,
        .ndo_get_phys_port_id   = i40e_get_phys_port_id,
        .ndo_fdb_add            = i40e_ndo_fdb_add,
        .ndo_features_check     = i40e_features_check,
index c52b9bb0e3ab173ba387b2e889b58036b10ee18d..6e251dfffc91672552dd8fd8a6532cea35da010f 100644 (file)
@@ -6790,6 +6790,4 @@ static const struct net_device_ops ice_netdev_ops = {
        .ndo_bpf = ice_xdp,
        .ndo_xdp_xmit = ice_xdp_xmit,
        .ndo_xsk_wakeup = ice_xsk_wakeup,
-       .ndo_udp_tunnel_add = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del = udp_tunnel_nic_del_port,
 };
index 393d1c2cd8539b98d5e0545359e3746c1aabd3df..6cbbe09ce8a0d93486702fd450b3728481554046 100644 (file)
@@ -10278,8 +10278,6 @@ static const struct net_device_ops ixgbe_netdev_ops = {
        .ndo_bridge_getlink     = ixgbe_ndo_bridge_getlink,
        .ndo_dfwd_add_station   = ixgbe_fwd_add,
        .ndo_dfwd_del_station   = ixgbe_fwd_del,
-       .ndo_udp_tunnel_add     = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del     = udp_tunnel_nic_del_port,
        .ndo_features_check     = ixgbe_features_check,
        .ndo_bpf                = ixgbe_xdp,
        .ndo_xdp_xmit           = ixgbe_xdp_xmit,
index 32aad4d32b8840b8ccc7f0647179ed958f18dadc..51b9700fce83630ac2e7dabfb54c252875f83e18 100644 (file)
@@ -2839,8 +2839,6 @@ static const struct net_device_ops mlx4_netdev_ops = {
        .ndo_rx_flow_steer      = mlx4_en_filter_rfs,
 #endif
        .ndo_get_phys_port_id   = mlx4_en_get_phys_port_id,
-       .ndo_udp_tunnel_add     = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del     = udp_tunnel_nic_del_port,
        .ndo_features_check     = mlx4_en_features_check,
        .ndo_set_tx_maxrate     = mlx4_en_set_tx_maxrate,
        .ndo_bpf                = mlx4_xdp,
@@ -2873,8 +2871,6 @@ static const struct net_device_ops mlx4_netdev_ops_master = {
        .ndo_rx_flow_steer      = mlx4_en_filter_rfs,
 #endif
        .ndo_get_phys_port_id   = mlx4_en_get_phys_port_id,
-       .ndo_udp_tunnel_add     = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del     = udp_tunnel_nic_del_port,
        .ndo_features_check     = mlx4_en_features_check,
        .ndo_set_tx_maxrate     = mlx4_en_set_tx_maxrate,
        .ndo_bpf                = mlx4_xdp,
index 7a79d330c0751f6e6be3c88c483326274f84f993..f27f509ab0281d9e58271348ef72a1b09e0c8ec6 100644 (file)
@@ -4621,8 +4621,6 @@ const struct net_device_ops mlx5e_netdev_ops = {
        .ndo_change_mtu          = mlx5e_change_nic_mtu,
        .ndo_do_ioctl            = mlx5e_ioctl,
        .ndo_set_tx_maxrate      = mlx5e_set_tx_maxrate,
-       .ndo_udp_tunnel_add      = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del      = udp_tunnel_nic_del_port,
        .ndo_features_check      = mlx5e_features_check,
        .ndo_tx_timeout          = mlx5e_tx_timeout,
        .ndo_bpf                 = mlx5e_xdp,
index 989c70c1eda37f83ac861e6039d5aa93690754ce..cfa0e855297503bbef3c06ea020000136417792a 100644 (file)
@@ -653,8 +653,6 @@ static const struct net_device_ops mlx5e_netdev_ops_uplink_rep = {
        .ndo_has_offload_stats   = mlx5e_rep_has_offload_stats,
        .ndo_get_offload_stats   = mlx5e_rep_get_offload_stats,
        .ndo_change_mtu          = mlx5e_uplink_rep_change_mtu,
-       .ndo_udp_tunnel_add      = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del      = udp_tunnel_nic_del_port,
        .ndo_features_check      = mlx5e_features_check,
        .ndo_set_vf_mac          = mlx5e_set_vf_mac,
        .ndo_set_vf_rate         = mlx5e_set_vf_rate,
index f21fb573ea3e9cbddc5c4da48673887323944622..7ba8f4c7f26d5b746a10724d78fc540d7b425602 100644 (file)
@@ -3656,8 +3656,6 @@ const struct net_device_ops nfp_net_netdev_ops = {
        .ndo_set_features       = nfp_net_set_features,
        .ndo_features_check     = nfp_net_features_check,
        .ndo_get_phys_port_name = nfp_net_get_phys_port_name,
-       .ndo_udp_tunnel_add     = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del     = udp_tunnel_nic_del_port,
        .ndo_bpf                = nfp_net_xdp,
        .ndo_get_devlink_port   = nfp_devlink_get_devlink_port,
 };
index 9cf960a6d0078820ac83f5dfdd8d24d82c0a5939..4bf94797aac5b4655b66e1e39b3d3f2d04bee77b 100644 (file)
@@ -663,8 +663,6 @@ static const struct net_device_ops qede_netdev_ops = {
        .ndo_get_vf_config      = qede_get_vf_config,
        .ndo_set_vf_rate        = qede_set_vf_rate,
 #endif
-       .ndo_udp_tunnel_add     = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del     = udp_tunnel_nic_del_port,
        .ndo_features_check     = qede_features_check,
        .ndo_bpf                = qede_xdp,
 #ifdef CONFIG_RFS_ACCEL
@@ -688,8 +686,6 @@ static const struct net_device_ops qede_netdev_vf_ops = {
        .ndo_fix_features       = qede_fix_features,
        .ndo_set_features       = qede_set_features,
        .ndo_get_stats64        = qede_get_stats64,
-       .ndo_udp_tunnel_add     = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del     = udp_tunnel_nic_del_port,
        .ndo_features_check     = qede_features_check,
 };
 
@@ -707,8 +703,6 @@ static const struct net_device_ops qede_netdev_vf_xdp_ops = {
        .ndo_fix_features       = qede_fix_features,
        .ndo_set_features       = qede_set_features,
        .ndo_get_stats64        = qede_get_stats64,
-       .ndo_udp_tunnel_add     = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del     = udp_tunnel_nic_del_port,
        .ndo_features_check     = qede_features_check,
        .ndo_bpf                = qede_xdp,
        .ndo_xdp_xmit           = qede_xdp_transmit,
index c2faf96fcade875b036c52e327d348c7de68322d..96b947fde646bfe58444bc09b14debb75b6347fe 100644 (file)
@@ -520,8 +520,6 @@ static const struct net_device_ops qlcnic_netdev_ops = {
        .ndo_fdb_del            = qlcnic_fdb_del,
        .ndo_fdb_dump           = qlcnic_fdb_dump,
        .ndo_get_phys_port_id   = qlcnic_get_phys_port_id,
-       .ndo_udp_tunnel_add     = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del     = udp_tunnel_nic_del_port,
        .ndo_features_check     = qlcnic_features_check,
 #ifdef CONFIG_QLCNIC_SRIOV
        .ndo_set_vf_mac         = qlcnic_sriov_set_vf_mac,
index 7183080763417154c4e25d177b5122303c2da428..36c8625a6fd7259642284aa465a4e7fdecee708d 100644 (file)
@@ -612,8 +612,6 @@ static const struct net_device_ops efx_netdev_ops = {
 #ifdef CONFIG_RFS_ACCEL
        .ndo_rx_flow_steer      = efx_filter_rfs,
 #endif
-       .ndo_udp_tunnel_add     = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del     = udp_tunnel_nic_del_port,
        .ndo_xdp_xmit           = efx_xdp_xmit,
        .ndo_bpf                = efx_xdp
 };
index 7178468302c8f18c726321d8a91206c63f351330..aec92440eef16dc7b8b29a1649e1ea2a21e0aff0 100644 (file)
@@ -258,8 +258,6 @@ static const struct net_device_ops nsim_netdev_ops = {
        .ndo_setup_tc           = nsim_setup_tc,
        .ndo_set_features       = nsim_set_features,
        .ndo_bpf                = nsim_bpf,
-       .ndo_udp_tunnel_add     = udp_tunnel_nic_add_port,
-       .ndo_udp_tunnel_del     = udp_tunnel_nic_del_port,
        .ndo_get_devlink_port   = nsim_get_devlink_port,
 };
 
index 259be67644e354e3994e423977c03654f0b22c3a..1ec3ac5d5bbffe6062216fbd4009e88d8c909fa9 100644 (file)
@@ -1213,19 +1213,6 @@ struct netdev_net_notifier {
  *                              struct netdev_phys_item_id *ppid)
  *     Called to get the parent ID of the physical port of this device.
  *
- * void (*ndo_udp_tunnel_add)(struct net_device *dev,
- *                           struct udp_tunnel_info *ti);
- *     Called by UDP tunnel to notify a driver about the UDP port and socket
- *     address family that a UDP tunnel is listnening to. It is called only
- *     when a new port starts listening. The operation is protected by the
- *     RTNL.
- *
- * void (*ndo_udp_tunnel_del)(struct net_device *dev,
- *                           struct udp_tunnel_info *ti);
- *     Called by UDP tunnel to notify the driver about a UDP port and socket
- *     address family that the UDP tunnel is not listening to anymore. The
- *     operation is protected by the RTNL.
- *
  * void* (*ndo_dfwd_add_station)(struct net_device *pdev,
  *                              struct net_device *dev)
  *     Called by upper layer devices to accelerate switching or other
@@ -1464,10 +1451,6 @@ struct net_device_ops {
                                                          struct netdev_phys_item_id *ppid);
        int                     (*ndo_get_phys_port_name)(struct net_device *dev,
                                                          char *name, size_t len);
-       void                    (*ndo_udp_tunnel_add)(struct net_device *dev,
-                                                     struct udp_tunnel_info *ti);
-       void                    (*ndo_udp_tunnel_del)(struct net_device *dev,
-                                                     struct udp_tunnel_info *ti);
        void*                   (*ndo_dfwd_add_station)(struct net_device *pdev,
                                                        struct net_device *dev);
        void                    (*ndo_dfwd_del_station)(struct net_device *pdev,