CNDP
22.08.0
|
Go to the source code of this file.
Functions | |
static int | cne_net_cksum_flags_prepare (pktmbuf_t *m, uint64_t ol_flags) |
static int | cne_net_cksum_prepare (pktmbuf_t *m) |
Network checksum functions to prepare pseudo header checksum for TSO and non-TSO TCP/UDP data.
Definition in file cne_net.h.
|
inlinestatic |
Prepare pseudo header checksum
This function prepares pseudo header checksum for TSO and non-TSO tcp/udp in provided mbufs packet data and based on the requested offload flags.
This function expects that used headers are in the first data segment of mbuf, are not fragmented and can be safely modified.
m | The packet mbuf to be fixed. |
ol_flags | TX offloads flags to use with this packet. |
|
inlinestatic |
Prepare pseudo header checksum
This function prepares pseudo header checksum for TSO and non-TSO tcp/udp in provided mbufs packet data.
This function expects that used headers are in the first data segment of mbuf, are not fragmented and can be safely modified.
m | The packet mbuf to be fixed. |