5 #ifndef _RTE_NET_PTYPE_H_
6 #define _RTE_NET_PTYPE_H_
54 int __rte_experimental
55 rte_net_skip_ip6_ext(uint16_t proto,
const struct rte_mbuf *m, uint32_t *off,
89 uint32_t rte_net_get_ptype(
const struct rte_mbuf *m,
113 rte_net_intel_cksum_flags_prepare(
struct rte_mbuf *m, uint64_t ol_flags)
119 uint64_t inner_l3_offset = m->
l2_len;
121 #ifdef RTE_LIBRTE_ETHDEV_DEBUG
135 #ifdef RTE_LIBRTE_ETHDEV_DEBUG
155 if (ol_flags & PKT_TX_IPV4) {
156 udp_hdr = (
struct udp_hdr *)((
char *)ipv4_hdr +
165 inner_l3_offset + m->
l3_len);
171 if (ol_flags & PKT_TX_IPV4) {
173 tcp_hdr = (
struct tcp_hdr *)((
char *)ipv4_hdr +
182 inner_l3_offset + m->
l3_len);
210 rte_net_intel_cksum_prepare(
struct rte_mbuf *m)
212 return rte_net_intel_cksum_flags_prepare(m, m->
ol_flags);