Lines Matching defs:ip
70 struct rte_ipv6_addr ip; /**< Rule IP address. */
77 struct rte_ipv6_addr ip; /**< Rule IP address. */
182 * note that ip must be already masked
185 rule_key_init(struct rte_lpm6_rule_key *key, const struct rte_ipv6_addr *ip, uint8_t depth)
187 key->ip = *ip;
203 rte_lpm6_add(lpm, &rule_key->ip, rule_key->depth,
432 rule_find(struct rte_lpm6 *lpm, struct rte_ipv6_addr *ip, uint8_t depth,
438 rule_key_init(&rule_key, ip, depth);
453 rule_add(struct rte_lpm6 *lpm, struct rte_ipv6_addr *ip, uint8_t depth, uint32_t next_hop)
460 rule_key_init(&rule_key, ip, depth);
542 get_bitshift(const struct rte_ipv6_addr *ip, uint8_t first_byte, uint8_t bytes)
553 entry_ind = entry_ind | ip->a[i-1] << bitshift;
568 struct rte_lpm6_tbl_entry **next_tbl, const struct rte_ipv6_addr *ip,
580 entry_ind = get_bitshift(ip, first_byte, bytes);
621 uint32_t *next_tbl_ind, struct rte_ipv6_addr *ip, uint8_t bytes,
634 entry_ind = get_bitshift(ip, first_byte, bytes);
823 rte_lpm6_add(struct rte_lpm6 *lpm, const struct rte_ipv6_addr *ip, uint8_t depth,
839 masked_ip = *ip;
882 const struct rte_lpm6_tbl_entry **tbl_next, const struct rte_ipv6_addr *ip,
894 tbl8_index = ip->a[first_byte-1] +
912 rte_lpm6_lookup(const struct rte_lpm6 *lpm, const struct rte_ipv6_addr *ip,
922 if ((lpm == NULL) || (ip == NULL) || (next_hop == NULL))
926 tbl24_index = (ip->a[0] << BYTES2_SIZE) | (ip->a[1] << BYTE_SIZE) | ip->a[2];
933 status = lookup_step(lpm, tbl, &tbl_next, ip, first_byte++, next_hop);
989 rte_lpm6_is_rule_present(struct rte_lpm6 *lpm, const struct rte_ipv6_addr *ip, uint8_t depth,
995 if ((lpm == NULL) || next_hop == NULL || ip == NULL ||
1000 masked_ip = *ip;
1014 rule_delete(struct rte_lpm6 *lpm, struct rte_ipv6_addr *ip, uint8_t depth)
1020 rule_key_init(&rule_key, ip, depth);
1113 rule_find_less_specific(struct rte_lpm6 *lpm, struct rte_ipv6_addr *ip, uint8_t depth,
1124 rule_key_init(&rule_key, ip, depth);
1135 rule_key.ip.a[depth >> 3] &= mask;
1140 rule->ip = rule_key.ip;
1153 rule_find_range(struct rte_lpm6 *lpm, const struct rte_ipv6_addr *ip, uint8_t depth,
1159 uint32_t first_3bytes = (uint32_t)ip->a[0] << 16 |
1160 ip->a[1] << 8 | ip->a[2];
1177 /* current ip byte, the top level is already behind */
1186 tbl += ip->a[byte];
1197 ind = ip->a[byte] & depth_to_mask_1b(depth);
1261 rte_lpm6_delete(struct rte_lpm6 *lpm, const struct rte_ipv6_addr *ip, uint8_t depth)
1275 masked_ip = *ip;