Lines Matching refs:iaddr
34 static u8 ipvlan_get_v6_hash(const void *iaddr) in ipvlan_get_v6_hash() argument
36 const struct in6_addr *ip6_addr = iaddr; in ipvlan_get_v6_hash()
42 static u8 ipvlan_get_v6_hash(const void *iaddr) in ipvlan_get_v6_hash() argument
48 static u8 ipvlan_get_v4_hash(const void *iaddr) in ipvlan_get_v4_hash() argument
50 const struct in_addr *ip4_addr = iaddr; in ipvlan_get_v4_hash()
56 static bool addr_equal(bool is_v6, struct ipvl_addr *addr, const void *iaddr) in addr_equal() argument
59 struct in_addr *i4addr = (struct in_addr *)iaddr; in addr_equal()
64 struct in6_addr *i6addr = (struct in6_addr *)iaddr; in addr_equal()
74 const void *iaddr, bool is_v6) in ipvlan_ht_addr_lookup() argument
79 hash = is_v6 ? ipvlan_get_v6_hash(iaddr) : in ipvlan_ht_addr_lookup()
80 ipvlan_get_v4_hash(iaddr); in ipvlan_ht_addr_lookup()
82 if (addr_equal(is_v6, addr, iaddr)) in ipvlan_ht_addr_lookup()
105 const void *iaddr, bool is_v6) in ipvlan_find_addr() argument
111 if (addr_equal(is_v6, addr, iaddr)) { in ipvlan_find_addr()
120 bool ipvlan_addr_busy(struct ipvl_port *port, void *iaddr, bool is_v6) in ipvlan_addr_busy() argument
127 if (ipvlan_find_addr(ipvlan, iaddr, is_v6)) { in ipvlan_addr_busy()