History

switchdev: use gpl variant of symbol export

Jiri Pirko committed 11 years ago

Commit f4427bc1 parent 4fee6be1 file · +12 −12Browse files

Showing the changes to net/switchdev/switchdev.c (1 of 1 file). Show all

Unified · Split

net/switchdev/switchdev.c+12−12
@@ -33,7 +33,7 @@ int netdev_switch_parent_id_get(struct net_device *dev, · 32 unmodified lines
33 return -EOPNOTSUPP;33 return -EOPNOTSUPP;
34 return ops->ndo_switch_parent_id_get(dev, psid);34 return ops->ndo_switch_parent_id_get(dev, psid);
35}35}
36EXPORT_SYMBOL(netdev_switch_parent_id_get);36EXPORT_SYMBOL_GPL(netdev_switch_parent_id_get);
37 37
38/**38/**
39 * netdev_switch_port_stp_update - Notify switch device port of STP39 * 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 WARN_ON(!ops->ndo_switch_parent_id_get);52 WARN_ON(!ops->ndo_switch_parent_id_get);
53 return ops->ndo_switch_port_stp_update(dev, state);53 return ops->ndo_switch_port_stp_update(dev, state);
54}54}
55EXPORT_SYMBOL(netdev_switch_port_stp_update);55EXPORT_SYMBOL_GPL(netdev_switch_port_stp_update);
56 56
57static DEFINE_MUTEX(netdev_switch_mutex);57static DEFINE_MUTEX(netdev_switch_mutex);
58static RAW_NOTIFIER_HEAD(netdev_switch_notif_chain);58static RAW_NOTIFIER_HEAD(netdev_switch_notif_chain);
@@ -74,7 +74,7 @@ int register_netdev_switch_notifier(struct notifier_block *nb) · 15 unmodified lines
74 mutex_unlock(&netdev_switch_mutex);74 mutex_unlock(&netdev_switch_mutex);
75 return err;75 return err;
76}76}
77EXPORT_SYMBOL(register_netdev_switch_notifier);77EXPORT_SYMBOL_GPL(register_netdev_switch_notifier);
78 78
79/**79/**
80 * unregister_netdev_switch_notifier - Unregister nofifier80 * unregister_netdev_switch_notifier - Unregister nofifier
@@ -92,7 +92,7 @@ int unregister_netdev_switch_notifier(struct notifier_block *nb) · 11 unmodified lines
92 mutex_unlock(&netdev_switch_mutex);92 mutex_unlock(&netdev_switch_mutex);
93 return err;93 return err;
94}94}
95EXPORT_SYMBOL(unregister_netdev_switch_notifier);95EXPORT_SYMBOL_GPL(unregister_netdev_switch_notifier);
96 96
97/**97/**
98 * call_netdev_switch_notifiers - Call nofifiers98 * 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 mutex_unlock(&netdev_switch_mutex);115 mutex_unlock(&netdev_switch_mutex);
116 return err;116 return err;
117}117}
118EXPORT_SYMBOL(call_netdev_switch_notifiers);118EXPORT_SYMBOL_GPL(call_netdev_switch_notifiers);
119 119
120/**120/**
121 * netdev_switch_port_bridge_setlink - Notify switch device port of bridge121 * 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 return ops->ndo_bridge_setlink(dev, nlh, flags);141 return ops->ndo_bridge_setlink(dev, nlh, flags);
142}142}
143EXPORT_SYMBOL(netdev_switch_port_bridge_setlink);143EXPORT_SYMBOL_GPL(netdev_switch_port_bridge_setlink);
144 144
145/**145/**
146 * netdev_switch_port_bridge_dellink - Notify switch device port of bridge146 * 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 return ops->ndo_bridge_dellink(dev, nlh, flags);166 return ops->ndo_bridge_dellink(dev, nlh, flags);
167}167}
168EXPORT_SYMBOL(netdev_switch_port_bridge_dellink);168EXPORT_SYMBOL_GPL(netdev_switch_port_bridge_dellink);
169 169
170/**170/**
171 * ndo_dflt_netdev_switch_port_bridge_setlink - default ndo bridge setlink171 * 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 return ret;196 return ret;
197}197}
198EXPORT_SYMBOL(ndo_dflt_netdev_switch_port_bridge_setlink);198EXPORT_SYMBOL_GPL(ndo_dflt_netdev_switch_port_bridge_setlink);
199 199
200/**200/**
201 * ndo_dflt_netdev_switch_port_bridge_dellink - default ndo bridge dellink201 * 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 return ret;226 return ret;
227}227}
228EXPORT_SYMBOL(ndo_dflt_netdev_switch_port_bridge_dellink);228EXPORT_SYMBOL_GPL(ndo_dflt_netdev_switch_port_bridge_dellink);
229 229
230static struct net_device *netdev_switch_get_lowest_dev(struct net_device *dev)230static 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 return err;332 return err;
333}333}
334EXPORT_SYMBOL(netdev_switch_fib_ipv4_add);334EXPORT_SYMBOL_GPL(netdev_switch_fib_ipv4_add);
335 335
336/**336/**
337 * netdev_switch_fib_ipv4_del - Delete IPv4 route entry from switch337 * 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 return err;370 return err;
371}371}
372EXPORT_SYMBOL(netdev_switch_fib_ipv4_del);372EXPORT_SYMBOL_GPL(netdev_switch_fib_ipv4_del);
373 373
374/**374/**
375 * netdev_switch_fib_ipv4_abort - Abort an IPv4 FIB operation375 * 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 fib_flush_external(fi->fib_net);389 fib_flush_external(fi->fib_net);
390 fi->fib_net->ipv4.fib_offload_disabled = true;390 fi->fib_net->ipv4.fib_offload_disabled = true;
391}391}
392EXPORT_SYMBOL(netdev_switch_fib_ipv4_abort);392EXPORT_SYMBOL_GPL(netdev_switch_fib_ipv4_abort);