34 #ifndef _RTE_NET_PTYPE_H_
35 #define _RTE_NET_PTYPE_H_
91 uint32_t rte_net_get_ptype(
const struct rte_mbuf *m,
115 rte_net_intel_cksum_flags_prepare(
struct rte_mbuf *m, uint64_t ol_flags)
121 uint64_t inner_l3_offset = m->
l2_len;
135 udp_hdr = (
struct udp_hdr *)((
char *)ipv4_hdr +
144 inner_l3_offset + m->
l3_len);
150 if (ol_flags & PKT_TX_IPV4) {
154 if (ol_flags & PKT_TX_IP_CKSUM)
158 tcp_hdr = (
struct tcp_hdr *)((
char *)ipv4_hdr +
167 inner_l3_offset + m->
l3_len);
195 rte_net_intel_cksum_prepare(
struct rte_mbuf *m)
197 return rte_net_intel_cksum_flags_prepare(m, m->
ol_flags);