API Reference Manual  1.45.0
odp_packet_lso_opt_t Struct Reference

LSO options. More...

#include <packet_types.h>

Collaboration diagram for odp_packet_lso_opt_t:
[legend]

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...
 

Detailed Description

LSO options.

Definition at line 385 of file api/spec/packet_types.h.

Field Documentation

◆ lso_profile

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 394 of file api/spec/packet_types.h.

◆ payload_offset

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 405 of file api/spec/packet_types.h.

◆ max_payload_len

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, 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 414 of file api/spec/packet_types.h.


The documentation for this struct was generated from the following file: