aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev
diff options
context:
space:
mode:
authorJiri Pirko <jiri@resnulli.us>2015-03-09 05:26:24 -0400
committerDavid S. Miller <davem@davemloft.net>2015-03-09 15:37:39 -0400
commitf4427bc3e2735831fdf66f091429ec328feda246 (patch)
treef3da35aed3cc25001085a27ee42052d654b034d5 /net/switchdev
parent4fee6be8134a69545caf88d8b439936a326d6d77 (diff)
switchdev: use gpl variant of symbol export
Signed-off-by: Jiri Pirko <jiri@resnulli.us> Acked-by: Scott Feldman <sfeldma@gmail.com> Acked-by: Andy Gospodarek <gospo@cumulusnetworks.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev')
-rw-r--r--net/switchdev/switchdev.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c
index 19e4e72a1e39..aba6aa2656d8 100644
--- a/net/switchdev/switchdev.c
+++ b/net/switchdev/switchdev.c
@@ -33,7 +33,7 @@ int netdev_switch_parent_id_get(struct net_device *dev,
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 STP 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)
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)
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 nofifier 80 * unregister_netdev_switch_notifier - Unregister nofifier
@@ -92,7 +92,7 @@ int unregister_netdev_switch_notifier(struct notifier_block *nb)
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 nofifiers 98 * call_netdev_switch_notifiers - Call nofifiers
@@ -115,7 +115,7 @@ int call_netdev_switch_notifiers(unsigned long val, struct net_device *dev,
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 bridge 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,
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 bridge 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,
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 setlink 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,
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 dellink 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,
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,
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 switch 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,
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 operation 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)
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);