[ovs-dev] [PATCH] datapath: Dont export get_dp().

Pravin B Shelar pshelar at nicira.com
Thu Nov 17 00:45:34 UTC 2011


Signed-off-by: Pravin B Shelar <pshelar at nicira.com>
---
 datapath/datapath.c |    3 +--
 datapath/datapath.h |    1 -
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/datapath/datapath.c b/datapath/datapath.c
index 44d31a8..47f696e 100644
--- a/datapath/datapath.c
+++ b/datapath/datapath.c
@@ -95,7 +95,7 @@ static int queue_userspace_packet(int dp_ifindex, struct sk_buff *,
 				  const struct dp_upcall_info *);
 
 /* Must be called with rcu_read_lock, genl_mutex, or RTNL lock. */
-struct datapath *get_dp(int dp_ifindex)
+static struct datapath *get_dp(int dp_ifindex)
 {
 	struct datapath *dp = NULL;
 	struct net_device *dev;
@@ -111,7 +111,6 @@ struct datapath *get_dp(int dp_ifindex)
 
 	return dp;
 }
-EXPORT_SYMBOL_GPL(get_dp);
 
 /* Must be called with genl_mutex. */
 static struct flow_table *get_table_protected(struct datapath *dp)
diff --git a/datapath/datapath.h b/datapath/datapath.h
index 9d9cbcf..dc2c75c 100644
--- a/datapath/datapath.h
+++ b/datapath/datapath.h
@@ -140,7 +140,6 @@ void dp_detach_port(struct vport *);
 int dp_upcall(struct datapath *, struct sk_buff *,
 	      const struct dp_upcall_info *);
 
-struct datapath *get_dp(int dp_idx);
 const char *dp_name(const struct datapath *dp);
 struct sk_buff *ovs_vport_cmd_build_info(struct vport *, u32 pid, u32 seq,
 					 u8 cmd);
-- 
1.7.1




More information about the dev mailing list