| 320 | } |
| 321 | |
| 322 | static inline uint16_t |
| 323 | get_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 | |
| 333 | static inline void |
| 334 | crypto_op_reset(const struct rte_ipsec_session *ss, struct rte_mbuf *mb[], |
no test coverage detected