5 #ifndef _RTE_NET_PTYPE_H_
6 #define _RTE_NET_PTYPE_H_
56 rte_net_skip_ip6_ext(uint16_t proto,
const struct rte_mbuf *m, uint32_t *off,
90 uint32_t rte_net_get_ptype(
const struct rte_mbuf *m,
114 rte_net_intel_cksum_flags_prepare(
struct rte_mbuf *m, uint64_t ol_flags)
121 uint64_t inner_l3_offset = m->
l2_len;
123 #ifdef RTE_LIBRTE_ETHDEV_DEBUG
136 #ifdef RTE_LIBRTE_ETHDEV_DEBUG
156 if (ol_flags & PKT_TX_IPV4) {
157 udp_hdr = (
struct rte_udp_hdr *)((
char *)ipv4_hdr +
167 inner_l3_offset + m->
l3_len);
173 if (ol_flags & PKT_TX_IPV4) {
175 tcp_hdr = (
struct rte_tcp_hdr *)((
char *)ipv4_hdr +
185 inner_l3_offset + m->
l3_len);
213 rte_net_intel_cksum_prepare(
struct rte_mbuf *m)
215 return rte_net_intel_cksum_flags_prepare(m, m->
ol_flags);
#define PKT_TX_OUTER_IPV4
static uint16_t rte_ipv4_phdr_cksum(const struct rte_ipv4_hdr *ipv4_hdr, uint64_t ol_flags)
static uint16_t rte_ipv6_phdr_cksum(const struct rte_ipv6_hdr *ipv6_hdr, uint64_t ol_flags)
#define PKT_TX_OUTER_IPV6
#define rte_pktmbuf_data_len(m)
#define PKT_TX_OFFLOAD_MASK
#define rte_pktmbuf_mtod_offset(m, t, o)