Searched refs:common_bits (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/net/wireguard/ |
H A D | allowedips.c | 87 static u8 common_bits(const struct allowedips_node *node, const u8 *key, in common_bits() function 104 * the rest, but it turns out that common_bits is already super fast on in prefix_matches() 108 return common_bits(node, key, bits) >= node->cidr; in prefix_matches() 222 cidr = min(cidr, common_bits(down, key, bits)); in add()
|
/kernel/linux/linux-6.6/drivers/net/wireguard/ |
H A D | allowedips.c | 87 static u8 common_bits(const struct allowedips_node *node, const u8 *key, in common_bits() function 104 * the rest, but it turns out that common_bits is already super fast on in prefix_matches() 108 return common_bits(node, key, bits) >= node->cidr; in prefix_matches() 222 cidr = min(cidr, common_bits(down, key, bits)); in add()
|
Completed in 2 milliseconds