API Reference Manual  1.45.0
odp_lso_capability_t Struct Reference

Large Send Offload (LSO) capabilities. More...

#include <packet_io_types.h>

Data Fields

uint32_t max_profiles
 Maximum number of LSO profiles. More...
 
uint32_t max_profiles_per_pktio
 Maximum number of LSO profiles per packet IO interface. More...
 
uint32_t max_packet_segments
 Maximum number of segments in an input packet. More...
 
uint32_t max_segments
 Maximum number of segments an LSO operation may create. More...
 
uint32_t max_payload_len
 Maximum payload length per an LSO generated packet (in bytes). More...
 
uint32_t max_payload_offset
 Maximum supported offset to the packet payload (in bytes). More...
 
struct {
   uint16_t   add_segment_num:1
 ODP_LSO_ADD_SEGMENT_NUM support.
 
   uint16_t   add_payload_len:1
 ODP_LSO_ADD_PAYLOAD_LEN support.
 
   uint16_t   add_payload_offset:1
 ODP_LSO_ADD_PAYLOAD_OFFSET support.
 
mod_op
 Supported LSO custom modification options.
 
uint8_t max_num_custom
 Maximum number of custom fields supported per LSO profile. More...
 
struct {
   uint32_t   custom:1
 ODP_LSO_PROTO_CUSTOM support.
 
   uint32_t   ipv4:1
 ODP_LSO_PROTO_IPV4 support.
 
   uint32_t   ipv6:1
 ODP_LSO_PROTO_IPV6 support.
 
   uint32_t   tcp_ipv4:1
 ODP_LSO_PROTO_TCP_IPV4 support.
 
   uint32_t   tcp_ipv6:1
 ODP_LSO_PROTO_TCP_IPV6 support.
 
   uint32_t   sctp_ipv4:1
 ODP_LSO_PROTO_SCTP_IPV4 support.
 
   uint32_t   sctp_ipv6:1
 ODP_LSO_PROTO_SCTP_IPV6 support.
 
proto
 Supported LSO protocol options.
 

Detailed Description

Large Send Offload (LSO) capabilities.

Definition at line 824 of file api/spec/packet_io_types.h.

Field Documentation

◆ max_profiles

uint32_t odp_lso_capability_t::max_profiles

Maximum number of LSO profiles.

When zero, LSO is not supported.

Examples
odp_sysinfo.c.

Definition at line 826 of file api/spec/packet_io_types.h.

◆ max_profiles_per_pktio

uint32_t odp_lso_capability_t::max_profiles_per_pktio

Maximum number of LSO profiles per packet IO interface.

When zero, LSO is not supported by the interface.

Examples
odp_sysinfo.c.

Definition at line 830 of file api/spec/packet_io_types.h.

◆ max_packet_segments

uint32_t odp_lso_capability_t::max_packet_segments

Maximum number of segments in an input packet.

When one, LSO operation accepts only non-segmented packets as input.

Examples
odp_sysinfo.c.

Definition at line 834 of file api/spec/packet_io_types.h.

◆ max_segments

uint32_t odp_lso_capability_t::max_segments

Maximum number of segments an LSO operation may create.

This implies that the maximum supported input packet payload size for an LSO operation is max_segments * max_payload_len bytes.

Examples
odp_sysinfo.c.

Definition at line 839 of file api/spec/packet_io_types.h.

◆ max_payload_len

uint32_t odp_lso_capability_t::max_payload_len

Maximum payload length per an LSO generated packet (in bytes).

This is the maximum value for max_payload_len in odp_packet_lso_opt_t.

Examples
odp_sysinfo.c.

Definition at line 843 of file api/spec/packet_io_types.h.

◆ max_payload_offset

uint32_t odp_lso_capability_t::max_payload_offset

Maximum supported offset to the packet payload (in bytes).

This is the maximum value for payload_offset in odp_packet_lso_opt_t.

Examples
odp_sysinfo.c.

Definition at line 847 of file api/spec/packet_io_types.h.

◆ max_num_custom

uint8_t odp_lso_capability_t::max_num_custom

Maximum number of custom fields supported per LSO profile.

When zero, custom fields are not supported.

Examples
odp_sysinfo.c.

Definition at line 864 of file api/spec/packet_io_types.h.


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