MCPcopy Create free account
hub / github.com/F-Stack/f-stack / route6_rewirte_table_update

Function route6_rewirte_table_update

dpdk/app/graph/ip6_route.c:64–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64static int
65route6_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
82static int
83route_ip6_add(struct route_ipv6_config *route)

Callers 2

route_ip6_addFunction · 0.85
route_ip6_add_to_lookupFunction · 0.85

Calls 4

ethdev_portid_by_ip6Function · 0.85
rte_node_ip6_route_addFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected