Skip to content

Commit

Permalink
tnl-neigh-cache: Remove tnl_arp_lookup().
Browse files Browse the repository at this point in the history
tnl_arp_lookup is not used anymore. All users have been converted to
IPv4-mapped addresses. New users need to use IPv4-mapped addresses and use
tnl_neigh_lookup.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
  • Loading branch information
Thadeu Lima de Souza Cascardo authored and blp committed Dec 4, 2015
1 parent 16e5c11 commit 4c825e5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
17 changes: 0 additions & 17 deletions lib/tnl-neigh-cache.c
Expand Up @@ -80,23 +80,6 @@ tnl_neigh_lookup__(const char br_name[IFNAMSIZ], const struct in6_addr *dst)
return NULL;
}

int
tnl_arp_lookup(const char br_name[IFNAMSIZ], ovs_be32 dst,
struct eth_addr *mac)
{
struct tnl_neigh_entry *neigh;
int res = ENOENT;
struct in6_addr dst6 = in6_addr_mapped_ipv4(dst);

neigh = tnl_neigh_lookup__(br_name, &dst6);
if (neigh) {
*mac = neigh->mac;
res = 0;
}

return res;
}

int
tnl_neigh_lookup(const char br_name[IFNAMSIZ], const struct in6_addr *dst,
struct eth_addr *mac)
Expand Down
2 changes: 0 additions & 2 deletions lib/tnl-neigh-cache.h
Expand Up @@ -38,6 +38,4 @@ int tnl_neigh_lookup(const char dev_name[], const struct in6_addr *dst,
void tnl_neigh_cache_init(void);
void tnl_neigh_cache_run(void);

int tnl_arp_lookup(const char dev_name[], ovs_be32 dst, struct eth_addr *mac);

#endif

0 comments on commit 4c825e5

Please sign in to comment.