Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
lepp_tso_cmd_t Struct Reference

#include <drv_xgbe_intf.h>

Data Fields

uint8_t tso: 1
 
uint8_t _unused: 7
 
uint8_t header_size
 
uint8_t ip_offset
 
uint8_t tcp_offset
 
uint16_t payload_size
 
uint16_t num_frags
 
lepp_frag_t frags [0]
 

Detailed Description

An LEPP command that handles TSO.

Definition at line 405 of file drv_xgbe_intf.h.

Field Documentation

uint8_t _unused

Unused padding bits.

Definition at line 415 of file drv_xgbe_intf.h.

lepp_frag_t frags[0]

The actual frags.

Definition at line 443 of file drv_xgbe_intf.h.

uint8_t header_size

Size of the header[] array in bytes. It must be in the range [40, 127], which are the smallest header for a TCP packet over Ethernet and the maximum possible prepend size supported by hardware, respectively. Note that the array storage must be padded out to a multiple of four bytes so that the following LEPP command is aligned properly.

Definition at line 424 of file drv_xgbe_intf.h.

uint8_t ip_offset

Byte offset of the IP header in header[].

Definition at line 427 of file drv_xgbe_intf.h.

uint16_t num_frags

The length of the 'frags' array that follows this struct.

Definition at line 440 of file drv_xgbe_intf.h.

uint16_t payload_size

The number of bytes to use for the payload of each packet, except of course the last one, which may not have enough bytes. This means that each Ethernet packet except the last will have a size of header_size + payload_size.

Definition at line 437 of file drv_xgbe_intf.h.

uint8_t tcp_offset

Byte offset of the TCP header in header[].

Definition at line 430 of file drv_xgbe_intf.h.

uint8_t tso

Is this a TSO transfer?

NOTE: This field is always 1, to distinguish it from lepp_cmd_t. It must come first!

Definition at line 412 of file drv_xgbe_intf.h.


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