Packages

PACKAGE eth_hdr_pack IS

RX Ethernet HDR items description:

Item bit range

Item name

Item description

0 to 15

LENGTH

Length of Ethernet frame in bytes

16 to 23

PORT

Source port/channel number in global format for the entire card; Examples: card with 2 ports each with 4 channels; third channel of the second port = 6; second channel of the first port = 1)

24 to 24

ERROR

Flag of global error, masked OR of all error bits

25 to 25

ERRORFRAME

Flag of frame error

26 to 26

ERRORMINTU

Flag of length below MINTU

27 to 27

ERRORMAXTU

Flag of length over MAXTU

28 to 28

ERRORCRC

Flag of CRC error

29 to 29

ERRORMAC

Flag of MAC error

30 to 30

BROADCAST

Flag of Broadcast MAC

31 to 31

MULTICAST

Flag of Multicast MAC

32 to 32

HITMACVLD

Flag of hit MAC address in TCAM memory

33 to 36

HITMAC

Index of hit MAC address in TCAM memory

37 to 37

TIMESTAMPVLD

Flag of valid timestamp

38 to 101

TIMESTAMP

Timestamp of frame (see TSU module docs for format description)

TX Ethernet HDR items description:

Item bit range

Item name

Item description

0 to 15

LENGTH

Length of Ethernet frame in bytes

16 to 23

PORT

Destination port/channel number in global format for the entire card; Examples: card with 2 ports each with 4 channels; third channel of the second port = 6; second channel of the first port = 1)

24 to 24

DISCARD

DRAFT ONLY: Discard frame before transmit to network

Ethernet Header Package

PACKAGE dma_bus_pack IS

Items description

LENGTH

Lenght of data in current request/completion in DWORDs (4B); for read request it is a requested size

TYPE

Request type, currently only read and write requests are supported

FIRSTIB

First invalid bytes - specifies, how many bytes at first data word are invalid; used to generate First BE

LASTIB

Last invalid bytes - specifies, how many bytes at last data word are invalid; used to generate Last BE

TAG

Transaction ID unique in scope of current unit; it will be translated to an PCI tag together with UNITID

UNITID

Transaction ID unique for each unit (in scope of 1 endpoint) and is used for routing of completions

GLOBAL

Global 64b address to main memory space of request

VFID

Virtual function ID for specifying PCI function

PASID

Process Address Space ID for better granularity of virtualization

PASIDVLD

PASID value is valid and will be used to generate TLP PASID prefix

RELAXED

Relaxed ordering in the mean of PCIe standard; typically needs to be set in all read requests