Showing the changes to net/switchdev/switchdev.c (1 of 1 file). Show all
Unified · Split
| @@ -33,7 +33,7 @@ int netdev_switch_parent_id_get(struct net_device *dev, · 32 unmodified lines | ||
| 33 | 33 | return -EOPNOTSUPP; |
| 34 | 34 | return ops->ndo_switch_parent_id_get(dev, psid); |
| 35 | 35 | } |
| 36 | −EXPORT_SYMBOL(netdev_switch_parent_id_get); | |
| 36 | +EXPORT_SYMBOL_GPL(netdev_switch_parent_id_get); | |
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * netdev_switch_port_stp_update - Notify switch device port of STP |
| @@ -52,7 +52,7 @@ int netdev_switch_port_stp_update(struct net_device *dev, u8 state) · 12 unmodified lines | ||
| 52 | 52 | WARN_ON(!ops->ndo_switch_parent_id_get); |
| 53 | 53 | return ops->ndo_switch_port_stp_update(dev, state); |
| 54 | 54 | } |
| 55 | −EXPORT_SYMBOL(netdev_switch_port_stp_update); | |
| 55 | +EXPORT_SYMBOL_GPL(netdev_switch_port_stp_update); | |
| 56 | 56 | |
| 57 | 57 | static DEFINE_MUTEX(netdev_switch_mutex); |
| 58 | 58 | static RAW_NOTIFIER_HEAD(netdev_switch_notif_chain); |
| @@ -74,7 +74,7 @@ int register_netdev_switch_notifier(struct notifier_block *nb) · 15 unmodified lines | ||
| 74 | 74 | mutex_unlock(&netdev_switch_mutex); |
| 75 | 75 | return err; |
| 76 | 76 | } |
| 77 | −EXPORT_SYMBOL(register_netdev_switch_notifier); | |
| 77 | +EXPORT_SYMBOL_GPL(register_netdev_switch_notifier); | |
| 78 | 78 | |
| 79 | 79 | /** |
| 80 | 80 | * unregister_netdev_switch_notifier - Unregister nofifier |
| @@ -92,7 +92,7 @@ int unregister_netdev_switch_notifier(struct notifier_block *nb) · 11 unmodified lines | ||
| 92 | 92 | mutex_unlock(&netdev_switch_mutex); |
| 93 | 93 | return err; |
| 94 | 94 | } |
| 95 | −EXPORT_SYMBOL(unregister_netdev_switch_notifier); | |
| 95 | +EXPORT_SYMBOL_GPL(unregister_netdev_switch_notifier); | |
| 96 | 96 | |
| 97 | 97 | /** |
| 98 | 98 | * call_netdev_switch_notifiers - Call nofifiers |
| @@ -115,7 +115,7 @@ int call_netdev_switch_notifiers(unsigned long val, struct net_device *dev, · 16 unmodified lines | ||
| 115 | 115 | mutex_unlock(&netdev_switch_mutex); |
| 116 | 116 | return err; |
| 117 | 117 | } |
| 118 | −EXPORT_SYMBOL(call_netdev_switch_notifiers); | |
| 118 | +EXPORT_SYMBOL_GPL(call_netdev_switch_notifiers); | |
| 119 | 119 | |
| 120 | 120 | /** |
| 121 | 121 | * netdev_switch_port_bridge_setlink - Notify switch device port of bridge |
| @@ -140,7 +140,7 @@ int netdev_switch_port_bridge_setlink(struct net_device *dev, · 18 unmodified lines | ||
| 140 | 140 | |
| 141 | 141 | return ops->ndo_bridge_setlink(dev, nlh, flags); |
| 142 | 142 | } |
| 143 | −EXPORT_SYMBOL(netdev_switch_port_bridge_setlink); | |
| 143 | +EXPORT_SYMBOL_GPL(netdev_switch_port_bridge_setlink); | |
| 144 | 144 | |
| 145 | 145 | /** |
| 146 | 146 | * netdev_switch_port_bridge_dellink - Notify switch device port of bridge |
| @@ -165,7 +165,7 @@ int netdev_switch_port_bridge_dellink(struct net_device *dev, · 18 unmodified lines | ||
| 165 | 165 | |
| 166 | 166 | return ops->ndo_bridge_dellink(dev, nlh, flags); |
| 167 | 167 | } |
| 168 | −EXPORT_SYMBOL(netdev_switch_port_bridge_dellink); | |
| 168 | +EXPORT_SYMBOL_GPL(netdev_switch_port_bridge_dellink); | |
| 169 | 169 | |
| 170 | 170 | /** |
| 171 | 171 | * ndo_dflt_netdev_switch_port_bridge_setlink - default ndo bridge setlink |
| @@ -195,7 +195,7 @@ int ndo_dflt_netdev_switch_port_bridge_setlink(struct net_device *dev, · 23 unmodified lines | ||
| 195 | 195 | |
| 196 | 196 | return ret; |
| 197 | 197 | } |
| 198 | −EXPORT_SYMBOL(ndo_dflt_netdev_switch_port_bridge_setlink); | |
| 198 | +EXPORT_SYMBOL_GPL(ndo_dflt_netdev_switch_port_bridge_setlink); | |
| 199 | 199 | |
| 200 | 200 | /** |
| 201 | 201 | * ndo_dflt_netdev_switch_port_bridge_dellink - default ndo bridge dellink |
| @@ -225,7 +225,7 @@ int ndo_dflt_netdev_switch_port_bridge_dellink(struct net_device *dev, · 23 unmodified lines | ||
| 225 | 225 | |
| 226 | 226 | return ret; |
| 227 | 227 | } |
| 228 | −EXPORT_SYMBOL(ndo_dflt_netdev_switch_port_bridge_dellink); | |
| 228 | +EXPORT_SYMBOL_GPL(ndo_dflt_netdev_switch_port_bridge_dellink); | |
| 229 | 229 | |
| 230 | 230 | static struct net_device *netdev_switch_get_lowest_dev(struct net_device *dev) |
| 231 | 231 | { |
| @@ -331,7 +331,7 @@ int netdev_switch_fib_ipv4_add(u32 dst, int dst_len, struct fib_info *fi, · 99 unmodified lines | ||
| 331 | 331 | |
| 332 | 332 | return err; |
| 333 | 333 | } |
| 334 | −EXPORT_SYMBOL(netdev_switch_fib_ipv4_add); | |
| 334 | +EXPORT_SYMBOL_GPL(netdev_switch_fib_ipv4_add); | |
| 335 | 335 | |
| 336 | 336 | /** |
| 337 | 337 | * netdev_switch_fib_ipv4_del - Delete IPv4 route entry from switch |
| @@ -369,7 +369,7 @@ int netdev_switch_fib_ipv4_del(u32 dst, int dst_len, struct fib_info *fi, · 31 unmodified lines | ||
| 369 | 369 | |
| 370 | 370 | return err; |
| 371 | 371 | } |
| 372 | −EXPORT_SYMBOL(netdev_switch_fib_ipv4_del); | |
| 372 | +EXPORT_SYMBOL_GPL(netdev_switch_fib_ipv4_del); | |
| 373 | 373 | |
| 374 | 374 | /** |
| 375 | 375 | * netdev_switch_fib_ipv4_abort - Abort an IPv4 FIB operation |
| @@ -389,4 +389,4 @@ void netdev_switch_fib_ipv4_abort(struct fib_info *fi) · 13 unmodified lines | ||
| 389 | 389 | fib_flush_external(fi->fib_net); |
| 390 | 390 | fi->fib_net->ipv4.fib_offload_disabled = true; |
| 391 | 391 | } |
| 392 | −EXPORT_SYMBOL(netdev_switch_fib_ipv4_abort); | |
| 392 | +EXPORT_SYMBOL_GPL(netdev_switch_fib_ipv4_abort); | |