Skip to content

Commit e215701

Browse files
committed
Merge branch 'ovs-remove-unused'
Jiri Benc says: ==================== openvswitch: remove unused code Removed unused functions and unnecessary EXPORT_SYMBOLs from openvswitch. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 57a09bf + 76e4cc7 commit e215701

File tree

4 files changed

+0
-21
lines changed

4 files changed

+0
-21
lines changed

net/openvswitch/datapath.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
#include "vport-netdev.h"
6060

6161
int ovs_net_id __read_mostly;
62-
EXPORT_SYMBOL_GPL(ovs_net_id);
6362

6463
static struct genl_family dp_packet_genl_family;
6564
static struct genl_family dp_flow_genl_family;
@@ -131,7 +130,6 @@ int lockdep_ovsl_is_held(void)
131130
else
132131
return 1;
133132
}
134-
EXPORT_SYMBOL_GPL(lockdep_ovsl_is_held);
135133
#endif
136134

137135
static struct vport *new_vport(const struct vport_parms *);

net/openvswitch/vport-netdev.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ void ovs_netdev_detach_dev(struct vport *vport)
162162
netdev_master_upper_dev_get(vport->dev));
163163
dev_set_promiscuity(vport->dev, -1);
164164
}
165-
EXPORT_SYMBOL_GPL(ovs_netdev_detach_dev);
166165

167166
static void netdev_destroy(struct vport *vport)
168167
{

net/openvswitch/vport.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -463,23 +463,6 @@ int ovs_vport_receive(struct vport *vport, struct sk_buff *skb,
463463
ovs_dp_process_packet(skb, &key);
464464
return 0;
465465
}
466-
EXPORT_SYMBOL_GPL(ovs_vport_receive);
467-
468-
static void free_vport_rcu(struct rcu_head *rcu)
469-
{
470-
struct vport *vport = container_of(rcu, struct vport, rcu);
471-
472-
ovs_vport_free(vport);
473-
}
474-
475-
void ovs_vport_deferred_free(struct vport *vport)
476-
{
477-
if (!vport)
478-
return;
479-
480-
call_rcu(&vport->rcu, free_vport_rcu);
481-
}
482-
EXPORT_SYMBOL_GPL(ovs_vport_deferred_free);
483466

484467
static unsigned int packet_length(const struct sk_buff *skb)
485468
{

net/openvswitch/vport.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ struct vport_ops {
149149
struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *,
150150
const struct vport_parms *);
151151
void ovs_vport_free(struct vport *);
152-
void ovs_vport_deferred_free(struct vport *vport);
153152

154153
#define VPORT_ALIGN 8
155154

0 commit comments

Comments
 (0)