aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch/datapath.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2013-04-29 09:06:41 -0400
committerDavid S. Miller <davem@davemloft.net>2013-04-30 00:19:11 -0400
commitcff63a52924c6a78fa525c67d81480c85736ff3c (patch)
treec0feae3b064dc61f28a7ad7e44d0c7551be88f15 /net/openvswitch/datapath.c
parent0c772159d1ae15c664304f0830c9aec4702593da (diff)
openvswitch: Remove unneeded ovs_netdev_get_ifindex()
The only user is get_dpifindex(), no need to redirect via the port operations. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch/datapath.c')
-rw-r--r--net/openvswitch/datapath.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c
index 74a5fe6feae3..d12d6b8b5e8b 100644
--- a/net/openvswitch/datapath.c
+++ b/net/openvswitch/datapath.c
@@ -56,6 +56,7 @@
56#include "datapath.h" 56#include "datapath.h"
57#include "flow.h" 57#include "flow.h"
58#include "vport-internal_dev.h" 58#include "vport-internal_dev.h"
59#include "vport-netdev.h"
59 60
60 61
61#define REHASH_FLOW_INTERVAL (10 * 60 * HZ) 62#define REHASH_FLOW_INTERVAL (10 * 60 * HZ)
@@ -151,7 +152,7 @@ static int get_dpifindex(struct datapath *dp)
151 152
152 local = ovs_vport_rcu(dp, OVSP_LOCAL); 153 local = ovs_vport_rcu(dp, OVSP_LOCAL);
153 if (local) 154 if (local)
154 ifindex = local->ops->get_ifindex(local); 155 ifindex = netdev_vport_priv(local)->dev->ifindex;
155 else 156 else
156 ifindex = 0; 157 ifindex = 0;
157 158