| 95 | } __rte_packed; |
| 96 | |
| 97 | static uint16_t |
| 98 | get_udptcp_checksum(struct rte_mbuf *m, void *l3_hdr, uint16_t l4_off, |
| 99 | uint16_t ethertype) |
| 100 | { |
| 101 | if (ethertype == _htons(RTE_ETHER_TYPE_IPV4)) |
| 102 | return rte_ipv4_udptcp_cksum_mbuf(m, l3_hdr, l4_off); |
| 103 | else /* assume ethertype == RTE_ETHER_TYPE_IPV6 */ |
| 104 | return rte_ipv6_udptcp_cksum_mbuf(m, l3_hdr, l4_off); |
| 105 | } |
| 106 | |
| 107 | /* Parse an IPv4 header to fill l3_len, l4_len, and l4_proto */ |
| 108 | static void |
no test coverage detected