mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 22:51:37 +00:00
openvswitch: Export symbols as GPL symbols.
vport can be compiled as modules, therefore openvswitch needs to export few symbols. Export them as GPL symbols. CC: Thomas Graf <tgraf@noironetworks.com> Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
This commit is contained in:
parent
c0560b9c52
commit
9ba559d9ca
2 changed files with 8 additions and 8 deletions
|
@ -59,7 +59,7 @@
|
||||||
#include "vport-netdev.h"
|
#include "vport-netdev.h"
|
||||||
|
|
||||||
int ovs_net_id __read_mostly;
|
int ovs_net_id __read_mostly;
|
||||||
EXPORT_SYMBOL(ovs_net_id);
|
EXPORT_SYMBOL_GPL(ovs_net_id);
|
||||||
|
|
||||||
static struct genl_family dp_packet_genl_family;
|
static struct genl_family dp_packet_genl_family;
|
||||||
static struct genl_family dp_flow_genl_family;
|
static struct genl_family dp_flow_genl_family;
|
||||||
|
@ -131,7 +131,7 @@ int lockdep_ovsl_is_held(void)
|
||||||
else
|
else
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(lockdep_ovsl_is_held);
|
EXPORT_SYMBOL_GPL(lockdep_ovsl_is_held);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static struct vport *new_vport(const struct vport_parms *);
|
static struct vport *new_vport(const struct vport_parms *);
|
||||||
|
|
|
@ -90,7 +90,7 @@ errout:
|
||||||
ovs_unlock();
|
ovs_unlock();
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(ovs_vport_ops_register);
|
EXPORT_SYMBOL_GPL(ovs_vport_ops_register);
|
||||||
|
|
||||||
void ovs_vport_ops_unregister(struct vport_ops *ops)
|
void ovs_vport_ops_unregister(struct vport_ops *ops)
|
||||||
{
|
{
|
||||||
|
@ -98,7 +98,7 @@ void ovs_vport_ops_unregister(struct vport_ops *ops)
|
||||||
list_del(&ops->list);
|
list_del(&ops->list);
|
||||||
ovs_unlock();
|
ovs_unlock();
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(ovs_vport_ops_unregister);
|
EXPORT_SYMBOL_GPL(ovs_vport_ops_unregister);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ovs_vport_locate - find a port that has already been created
|
* ovs_vport_locate - find a port that has already been created
|
||||||
|
@ -165,7 +165,7 @@ struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *ops,
|
||||||
|
|
||||||
return vport;
|
return vport;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(ovs_vport_alloc);
|
EXPORT_SYMBOL_GPL(ovs_vport_alloc);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ovs_vport_free - uninitialize and free vport
|
* ovs_vport_free - uninitialize and free vport
|
||||||
|
@ -186,7 +186,7 @@ void ovs_vport_free(struct vport *vport)
|
||||||
free_percpu(vport->percpu_stats);
|
free_percpu(vport->percpu_stats);
|
||||||
kfree(vport);
|
kfree(vport);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(ovs_vport_free);
|
EXPORT_SYMBOL_GPL(ovs_vport_free);
|
||||||
|
|
||||||
static struct vport_ops *ovs_vport_lookup(const struct vport_parms *parms)
|
static struct vport_ops *ovs_vport_lookup(const struct vport_parms *parms)
|
||||||
{
|
{
|
||||||
|
@ -493,7 +493,7 @@ void ovs_vport_receive(struct vport *vport, struct sk_buff *skb,
|
||||||
}
|
}
|
||||||
ovs_dp_process_packet(skb, &key);
|
ovs_dp_process_packet(skb, &key);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(ovs_vport_receive);
|
EXPORT_SYMBOL_GPL(ovs_vport_receive);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ovs_vport_send - send a packet on a device
|
* ovs_vport_send - send a packet on a device
|
||||||
|
@ -572,4 +572,4 @@ void ovs_vport_deferred_free(struct vport *vport)
|
||||||
|
|
||||||
call_rcu(&vport->rcu, free_vport_rcu);
|
call_rcu(&vport->rcu, free_vport_rcu);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(ovs_vport_deferred_free);
|
EXPORT_SYMBOL_GPL(ovs_vport_deferred_free);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue