MCPcopy Create free account
hub / github.com/F-Stack/f-stack / get_udptcp_checksum

Function get_udptcp_checksum

dpdk/app/test-pmd/csumonly.c:97–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95} __rte_packed;
96
97static uint16_t
98get_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 */
108static void

Callers 2

process_inner_cksumsFunction · 0.85
process_outer_cksumsFunction · 0.85

Calls 2

Tested by

no test coverage detected