From: Pravin B Shelar Date: Thu, 17 Nov 2011 00:52:24 +0000 (-0800) Subject: datapath: Dont export get_dp(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df2a06abbe1d9f4788fa794d0c7f0250dee2bda7;p=openvswitch datapath: Dont export get_dp(). Signed-off-by: Pravin B Shelar Acked-by: Jesse Gross --- diff --git a/datapath/datapath.c b/datapath/datapath.c index 44d31a83..47f696e9 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 9d9cbcf1..dc2c75c6 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);