Lines Matching refs:iaddr
36 static u8 ipvlan_get_v6_hash(const void *iaddr) in ipvlan_get_v6_hash() argument
38 const struct in6_addr *ip6_addr = iaddr; in ipvlan_get_v6_hash()
44 static u8 ipvlan_get_v6_hash(const void *iaddr) in ipvlan_get_v6_hash() argument
50 static u8 ipvlan_get_v4_hash(const void *iaddr) in ipvlan_get_v4_hash() argument
52 const struct in_addr *ip4_addr = iaddr; in ipvlan_get_v4_hash()
58 static bool addr_equal(bool is_v6, struct ipvl_addr *addr, const void *iaddr) in addr_equal() argument
61 struct in_addr *i4addr = (struct in_addr *)iaddr; in addr_equal()
66 struct in6_addr *i6addr = (struct in6_addr *)iaddr; in addr_equal()
76 const void *iaddr, bool is_v6) in ipvlan_ht_addr_lookup() argument
81 hash = is_v6 ? ipvlan_get_v6_hash(iaddr) : in ipvlan_ht_addr_lookup()
82 ipvlan_get_v4_hash(iaddr); in ipvlan_ht_addr_lookup()
84 if (addr_equal(is_v6, addr, iaddr)) in ipvlan_ht_addr_lookup()
107 const void *iaddr, bool is_v6) in ipvlan_find_addr() argument
113 if (addr_equal(is_v6, addr, iaddr)) { in ipvlan_find_addr()
122 bool ipvlan_addr_busy(struct ipvl_port *port, void *iaddr, bool is_v6) in ipvlan_addr_busy() argument
129 if (ipvlan_find_addr(ipvlan, iaddr, is_v6)) { in ipvlan_addr_busy()