staticuint16_trte_raw_cksum(constvoid*buf,size_tlen)[inline],[static]
Process the non-complemented checksum of a buffer.
Parametersbuf Pointer to the buffer.
len Length of the buffer.
Returns
The non-complemented checksum.
Definition at line 94 of file rte_cksum.h.
staticintrte_raw_cksum_mbuf(conststructrte_mbuf*m,uint32_toff,uint32_tlen,uint16_t*cksum)[inline],[static]
Compute the raw (non complemented) checksum of a packet.
Parametersm The pointer to the mbuf.
off The offset in bytes to start the checksum.
len The length in bytes of the data to checksum.
cksum A pointer to the checksum, filled on success.
Returns
0 on success, -1 on error (bad length or offset).
Definition at line 117 of file rte_cksum.h.