API Reference Manual
1.46.0
|
LSO options. More...
#include <packet_types.h>
Data Fields | |
odp_lso_profile_t | lso_profile |
LSO profile handle. More... | |
uint32_t | payload_offset |
LSO payload offset. More... | |
uint32_t | max_payload_len |
Maximum payload length in an LSO segment. More... | |
odp_lso_profile_t odp_packet_lso_opt_t::lso_profile |
LSO profile handle.
The selected LSO profile specifies details of the segmentation operation to be done. Depending on LSO profile options, additional metadata (e.g. L3/L4 protocol header offsets) may need to be set on the packet. See LSO documentation (e.g. odp_pktout_send_lso() and odp_lso_protocol_t) for additional metadata requirements.
Definition at line 395 of file api/spec/packet_types.h.
uint32_t odp_packet_lso_opt_t::payload_offset |
LSO payload offset.
LSO operation considers packet data before 'payload_offset' as protocol headers and copies those in front of every created segment. It will modify protocol headers according to the LSO profile before segment transmission.
When stored into a packet, this offset can be read with odp_packet_payload_offset() and modified with odp_packet_payload_offset_set().
Definition at line 406 of file api/spec/packet_types.h.
uint32_t odp_packet_lso_opt_t::max_payload_len |
Maximum payload length in an LSO segment.
Max_payload_len parameter defines the maximum number of payload bytes in each created segment. Depending on the implementation and the LSO profile, segments with less payload may be created. However, this value is used typically to divide packet payload evenly over all segments except the last one, which contains the remaining payload bytes.
Definition at line 416 of file api/spec/packet_types.h.