* 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. */
| 209 | * The non-complemented checksum. |
| 210 | */ |
| 211 | static inline uint16_t |
| 212 | rte_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. |