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

Function get_route

dpdk/examples/ipsec-secgw/ipsec_worker.c:322–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322static inline uint16_t
323get_route(struct rte_mbuf *pkt, struct route_table *rt, enum pkt_type type)
324{
325 if (type == PKT_TYPE_PLAIN_IPV4 || type == PKT_TYPE_IPSEC_IPV4)
326 return route4_pkt(pkt, rt->rt4_ctx);
327 else if (type == PKT_TYPE_PLAIN_IPV6 || type == PKT_TYPE_IPSEC_IPV6)
328 return route6_pkt(pkt, rt->rt6_ctx);
329
330 return RTE_MAX_ETHPORTS;
331}
332
333static inline void
334crypto_op_reset(const struct rte_ipsec_session *ss, struct rte_mbuf *mb[],

Callers 2

process_ipsec_ev_inboundFunction · 0.85

Calls 2

route4_pktFunction · 0.85
route6_pktFunction · 0.85

Tested by

no test coverage detected