Skip to content

Commit

Permalink
openvswitch: Export symbols as GPL symbols.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pravin B Shelar committed Nov 10, 2014
1 parent c0560b9 commit 9ba559d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions net/openvswitch/datapath.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
#include "vport-netdev.h"

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_flow_genl_family;
Expand Down Expand Up @@ -131,7 +131,7 @@ int lockdep_ovsl_is_held(void)
else
return 1;
}
EXPORT_SYMBOL(lockdep_ovsl_is_held);
EXPORT_SYMBOL_GPL(lockdep_ovsl_is_held);
#endif

static struct vport *new_vport(const struct vport_parms *);
Expand Down
12 changes: 6 additions & 6 deletions net/openvswitch/vport.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ int ovs_vport_ops_register(struct vport_ops *ops)
ovs_unlock();
return err;
}
EXPORT_SYMBOL(ovs_vport_ops_register);
EXPORT_SYMBOL_GPL(ovs_vport_ops_register);

void ovs_vport_ops_unregister(struct vport_ops *ops)
{
ovs_lock();
list_del(&ops->list);
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
Expand Down Expand Up @@ -165,7 +165,7 @@ struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *ops,

return vport;
}
EXPORT_SYMBOL(ovs_vport_alloc);
EXPORT_SYMBOL_GPL(ovs_vport_alloc);

/**
* ovs_vport_free - uninitialize and free vport
Expand All @@ -186,7 +186,7 @@ void ovs_vport_free(struct vport *vport)
free_percpu(vport->percpu_stats);
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)
{
Expand Down Expand Up @@ -493,7 +493,7 @@ void ovs_vport_receive(struct vport *vport, struct sk_buff *skb,
}
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
Expand Down Expand Up @@ -572,4 +572,4 @@ void ovs_vport_deferred_free(struct vport *vport)

call_rcu(&vport->rcu, free_vport_rcu);
}
EXPORT_SYMBOL(ovs_vport_deferred_free);
EXPORT_SYMBOL_GPL(ovs_vport_deferred_free);

0 comments on commit 9ba559d

Please sign in to comment.