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

Function rte_raw_cksum

dpdk/lib/net/rte_ip.h:211–218  ·  view source on GitHub ↗

* Process the non-complemented checksum of a buffer. * * @param buf * Pointer to the buffer. * @param len * Length of the buffer. * @return * The non-complemented checksum. */

Source from the content-addressed store, hash-verified

209 * The non-complemented checksum.
210 */
211static inline uint16_t
212rte_raw_cksum(const void *buf, size_t len)
213{
214 uint32_t sum;
215
216 sum = __rte_raw_cksum(buf, len, 0);
217 return __rte_raw_cksum_reduce(sum);
218}
219
220/**
221 * Compute the raw (non complemented) checksum of a packet.

Callers 13

rte_raw_cksum_mbufFunction · 0.85
rte_ipv4_cksumFunction · 0.85
rte_ipv4_phdr_cksumFunction · 0.85
__rte_ipv4_udptcp_cksumFunction · 0.85
__rte_ipv6_udptcp_cksumFunction · 0.85
hinic_ipv4_phdr_cksumFunction · 0.85
flow_dv_translateFunction · 0.85
flow_dv_create_mtr_tblsFunction · 0.85
mlx5_lro_update_tcp_hdrFunction · 0.85
tap_verify_csumFunction · 0.85

Calls 2

__rte_raw_cksumFunction · 0.85
__rte_raw_cksum_reduceFunction · 0.85

Tested by 1

do_rte_raw_cksumFunction · 0.68