Hello.
On 26-04-2013 16:40, Thomas Graf wrote:
The only user is get_dpifindex(), no need to redirect via the port
operations.
Signed-off-by: Thomas Graf <[email protected]>
[...]
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c
index 74a5fe6..965c059 100644
--- a/net/openvswitch/datapath.c
+++ b/net/openvswitch/datapath.c
@@ -150,9 +150,10 @@ static int get_dpifindex(struct datapath *dp)
rcu_read_lock();
local = ovs_vport_rcu(dp, OVSP_LOCAL);
- if (local)
- ifindex = local->ops->get_ifindex(local);
- else
+ if (local) {
+ const struct netdev_vport *vport = netdev_vport_priv(local);
Empty line after declaration wouldn't hurt.
+ ifindex = vport->dev->ifindex;
+ } else
ifindex = 0;
rcu_read_unlock();
WBR, Sergei
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev