| 62 | } |
| 63 | |
| 64 | static int |
| 65 | route6_rewirte_table_update(struct route_ipv6_config *ipv6route) |
| 66 | { |
| 67 | uint8_t depth; |
| 68 | int portid; |
| 69 | |
| 70 | portid = ethdev_portid_by_ip6(ipv6route->gateway, ipv6route->mask); |
| 71 | if (portid < 0) { |
| 72 | printf("Invalid portid found to install the route\n"); |
| 73 | return portid; |
| 74 | } |
| 75 | depth = convert_ip6_netmask_to_depth(ipv6route->mask); |
| 76 | |
| 77 | return rte_node_ip6_route_add(ipv6route->ip, depth, portid, |
| 78 | RTE_NODE_IP6_LOOKUP_NEXT_REWRITE); |
| 79 | |
| 80 | } |
| 81 | |
| 82 | static int |
| 83 | route_ip6_add(struct route_ipv6_config *route) |
no test coverage detected