diff options
author | Thomas Graf <tgraf@suug.ch> | 2013-04-29 15:06:41 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-30 06:19:11 +0200 |
commit | cff63a52924c6a78fa525c67d81480c85736ff3c (patch) | |
tree | c0feae3b064dc61f28a7ad7e44d0c7551be88f15 /net/openvswitch/vport-netdev.c | |
parent | net: Use consume_skb() to free gso segmented skb (diff) | |
download | linux-cff63a52924c6a78fa525c67d81480c85736ff3c.tar.xz linux-cff63a52924c6a78fa525c67d81480c85736ff3c.zip |
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/vport-netdev.c')
-rw-r--r-- | net/openvswitch/vport-netdev.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/net/openvswitch/vport-netdev.c b/net/openvswitch/vport-netdev.c index 40a89ae8e19f..4f01c6d2ffa4 100644 --- a/net/openvswitch/vport-netdev.c +++ b/net/openvswitch/vport-netdev.c @@ -150,12 +150,6 @@ const char *ovs_netdev_get_name(const struct vport *vport) return netdev_vport->dev->name; } -int ovs_netdev_get_ifindex(const struct vport *vport) -{ - const struct netdev_vport *netdev_vport = netdev_vport_priv(vport); - return netdev_vport->dev->ifindex; -} - static unsigned int packet_length(const struct sk_buff *skb) { unsigned int length = skb->len - ETH_HLEN; @@ -206,6 +200,5 @@ const struct vport_ops ovs_netdev_vport_ops = { .create = netdev_create, .destroy = netdev_destroy, .get_name = ovs_netdev_get_name, - .get_ifindex = ovs_netdev_get_ifindex, .send = netdev_send, }; |