Skip to content

NetTLP header and packet

Yohei Kuga edited this page Dec 2, 2019 · 5 revisions

NetTLP header and packet

  • Length: 6 Byte fixed
  2               1               0B
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |  CMD  | Mask  |               |
  +---------------+               |
  |                               |
  |                               |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Command and Mask fields

  1               0B
  +-+-+-+-+-+-+-+-+
  |  CMD  | Mask  |
  +-+-+-+-+-+-+-+-+

CMD, 4b, Command

command description
0_000b NetTLP header
0_001b Reserved
0_010b Reserved
0_011b Reserved
0_100b PCIe configuration packet Read
1_100b PCIe configuration packet Write
0_101b Adapter configuration packet Read
1_101b Adapter configuration packet Write

Mask, 4b, Byte enable mask

command description
0000b -
0001b Lower 1 Byte
0011b Lower 2 Byte
1000b Higher 1 Byte
1100b Higher 2 Byte
1111b All 4 Byte

Command 1: NetTLP header

  2               1               0B
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |  CMD  |       Sequence        |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |           Timestamp           |
  |                               |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |              TLP              |
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Sequence, 12b, TLP Sequence number

Timestamp, 32b, Received timestamp

Command 2: PCIe configuration packet

  2               1               0B
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |  CMD  | Mask  |    DWaddr     |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |             Data              |
  |                               |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

DWaddr, 8b, PCIe configuration address (DWORD)

  • Little endian
DWaddr Mask RW Description
00h 0011b RW Device ID
00h 1100b RW Vender ID
04h 1111b RW BAR0
05h 1111b RW BAR1
06h 1111b RW BAR2
07h 1111b RW BAR3
08h 1111b RW BAR4
09h 1111b RW BAR5
0Ah 1111b RW BAR6
0Bh 0011b RW Sub Device ID
0Bh 1100b RW Sub Vender ID

Data, 32b, Data

Command 3: Adapter configuration packet

  2               1               0B
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |  CMD  | Mask  |    DWaddr     |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |             Data              |
  |                               |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

DWaddr, 8b, NetTLP adapter configuration address (DWORD)

  • Little endian
DWaddr Mask RW Description
00h 1111b R Magic code (default: 01234567)
01h 1111b RW Destination MAC address low
02h 0011b RW Destination MAC address high
03h 1111b RW Source MAC address low
04h 0011b RW Source MAC address high
05h 1111b RW Destination IP address
06h 1111b RW Source IP address
07h 1111b RW Destination port number
0Bh 1111b RW Source port number

Data, 32b, Data