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

Function route4_rewirte_table_update

dpdk/app/graph/ip4_route.c:61–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61static int
62route4_rewirte_table_update(struct route_ipv4_config *ipv4route)
63{
64 uint8_t depth;
65 int portid;
66
67 portid = ethdev_portid_by_ip4(ipv4route->via, ipv4route->netmask);
68 if (portid < 0) {
69 printf("Invalid portid found to install the route\n");
70 return portid;
71 }
72
73 depth = convert_netmask_to_depth(ipv4route->netmask);
74
75 return rte_node_ip4_route_add(ipv4route->ip, depth, portid,
76 RTE_NODE_IP4_LOOKUP_NEXT_REWRITE);
77}
78
79static int
80route_ip4_add(struct route_ipv4_config *route)

Callers 2

route_ip4_addFunction · 0.85
route_ip4_add_to_lookupFunction · 0.85

Calls 4

ethdev_portid_by_ip4Function · 0.85
convert_netmask_to_depthFunction · 0.85
rte_node_ip4_route_addFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected