HW LAG support with ConnectX-5 adapter


I’m trying to use HW bonding in combination with SR-IOV on a dual-port ConnectX-5 adapter (Ethernet mode).

My understanding is that I need to bond the two PFs then a VM attached to single port VF will benefit from HW LAG transparently.

A couple of questions:

  • which version of the mlx5 driver support this ? Is kernel 5.0 needed (that features “support for mlx5 VF LAG”) ?
  • is there any specific configuration to be done on the PF or VF to activate transparent HW LAG ?


my current config:

modinfo mlx5_core

filename: /lib/modules/5.0.0/kernel/drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.ko

version: 5.0-0

license: Dual BSD/GPL

description: Mellanox 5th generation network adapters (ConnectX series) core driver

author: Eli Cohen eli@mellanox.com

srcversion: 27907CB8C3357478107452C

lspci |grep Mellanox

86:00.0 Ethernet controller: Mellanox Technologies MT27800 Family [ConnectX-5]

86:00.1 Ethernet controller: Mellanox Technologies MT27800 Family [ConnectX-5]

ethtool -i enp134s0f0

driver: mlx5_core

version: 5.0-0

firmware-version: 16.24.1000 (LNV0000000008)

Hi Frederic,

See the following link for your answers: