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

#include <drv_xgbe_intf.h>

Data Fields

uint8_t tso: 1
 
uint8_t _unused: 3
 
uint8_t hash_for_home: 1
 
uint8_t compute_checksum: 1
 
uint8_t end_of_packet: 1
 
uint8_t send_completion: 1
 
uint8_t cpa_hi
 
uint16_t length
 
uint32_t cpa_lo
 
__netio_checksum_header_t checksum_data
 

Detailed Description

An egress DMA command for LEPP.

Definition at line 335 of file drv_xgbe_intf.h.

Field Documentation

uint8_t _unused

Unused padding bits.

Definition at line 345 of file drv_xgbe_intf.h.

Checksum information (only used if 'compute_checksum').

Definition at line 383 of file drv_xgbe_intf.h.

uint8_t compute_checksum

Should we compute a checksum?

Definition at line 353 of file drv_xgbe_intf.h.

uint8_t cpa_hi

High bits of Client Physical Address of the start of the buffer to be egressed.

NOTE: Only 6 bits are actually needed here, as CPAs are currently 38 bits. So two bits could be scavenged from this.

Definition at line 372 of file drv_xgbe_intf.h.

uint32_t cpa_lo

Low 32 bits of Client Physical Address of the start of the buffer to be egressed.

Definition at line 380 of file drv_xgbe_intf.h.

uint8_t end_of_packet

Is this the final buffer for this packet?

A single packet can be split over several input buffers (a "gather" operation). This flag indicates that this is the last buffer in a packet.

Definition at line 361 of file drv_xgbe_intf.h.

uint8_t hash_for_home

Should this packet be sent directly from caches instead of DRAM, using hash-for-home to locate the packet data?

Definition at line 350 of file drv_xgbe_intf.h.

uint16_t length

The number of bytes to be egressed.

Definition at line 375 of file drv_xgbe_intf.h.

uint8_t send_completion

Should LEPP advance 'comp_busy' when this DMA is fully finished?

Definition at line 364 of file drv_xgbe_intf.h.

uint8_t tso

Is this a TSO transfer?

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

Definition at line 342 of file drv_xgbe_intf.h.


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