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

Function convert_ipv4_5tuple

dpdk/examples/l3fwd/l3fwd_em.c:334–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332#endif
333
334static void
335convert_ipv4_5tuple(struct ipv4_5tuple *key1,
336 union ipv4_5tuple_host *key2)
337{
338 key2->ip_dst = rte_cpu_to_be_32(key1->ip_dst);
339 key2->ip_src = rte_cpu_to_be_32(key1->ip_src);
340 key2->port_dst = rte_cpu_to_be_16(key1->port_dst);
341 key2->port_src = rte_cpu_to_be_16(key1->port_src);
342 key2->proto = key1->proto;
343 key2->pad0 = 0;
344 key2->pad1 = 0;
345}
346
347static void
348convert_ipv6_5tuple(struct ipv6_5tuple *key1,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected