Skip to content

Instantly share code, notes, and snippets.

@Chester-Gillon
Last active September 27, 2026 10:51
Show Gist options
  • Select an option

  • Save Chester-Gillon/ea7bb91d2e46a04fb553fc3bd1ceaa5e to your computer and use it in GitHub Desktop.

Select an option

Save Chester-Gillon/ea7bb91d2e46a04fb553fc3bd1ceaa5e to your computer and use it in GitHub Desktop.
ConnectX host chaining

0. Introduction

This contains notes about ConnectX Host Chaining

1. Reference information

The ConnectX® -5 EN Card product brief contains:

ConnectX-5 enables an innovative storage rack design, Host Chaining, which enables different servers to interconnect without involving the Top of the Rack (ToR) switch. Leveraging Host Chaining, ConnectX-5 lowers the data center’s total cost of ownership (TCO) by reducing CAPEX (cables, NICs, and switch port expenses). OPEX is also reduced by cutting down on switch port management and overall power usage

Which includes a picture of 4 servers with dual port adapters connected in a ring:

image

The documentation seems a bit sparse, but found some information from NVIDIA employee's on the NVIDIA site.

Question on Host-chaining ConnectX5 card IP setup has the picture:

a schema of a bidirectional host chaining ring

How to configure host chaining for ConnectX-5 VPI has the following description of how the ring works:

  • Received packets from the wire with DMAC equal to the host MAC are forwarded to the local host
  • Received traffic from the physical port with DMAC different than the current MAC are forwarded to the other port:
  • Traffic can be transmitted by the other physical port
  • Traffic can reach functions on the port’s Physical Function
  • Device allows hosts to transmit traffic only with its permanent MAC
  • To prevent loops, the received traffic from the wire with SMAC equal to the port permanent MAC is dropped (the packet cannot start a new loop)

The mstconfig HOST_CHAINING_CACHE_DISABLE, HOST_CHAINING_MODE, HOST_CHAINING_DESCRIPTORS and HOST_CHAINING_TOTAL_BUFFER_SIZE options control host chaining. HOST CHAINING CONF has a description of the options.

On a ConnectX-5 EN MCX512A-ACAT card with the original firmware version 16.25.6000 HOST_CHAINING_CACHE_DISABLE wasn't reported in the output of mstconfig query. After updating to firmware 16.35.8008, then HOST_CHAINING_CACHE_DISABLE was reported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment