Hardware bypass

MITIGATOR supports hardware bypass of Silicom and LR-Link adapters.

Tested Silicom adapters:

Tested LR-Link adapters:

Setup

To enable hardware bypass support:

  1. Compile and install the hardware bypass driver.
  2. Configure the creation of the bypass control device before starting the MITIGATOR.
  3. Check that hardware bypass control is present in the MITIGATOR.

All commands are executed as root.

Driver installation

The driver must be built on the target system or on an identical distributive.

  1. Install the packages required for the build:

    apt install -y gcc make dkms linux-headers-amd64
  2. Download the driver source code from our public repository, extract the archive and go into extracted folder:

  3. Build and install the driver:

    make -f Makefile.dkms

Creation of the control device

Create file /etc/systemd/system/mitigator.service.d/bypass.conf with following content:

[Service]
ExecStartPre=/bin/bpctl_start

Availability check

Start the MITIGATOR:

systemctl daemon-reload
systemctl restart mitigator

The «Hardware bypass» card will appear on the instance settings page.

Warning

Creation of the control device via bpctl_start script must be done before the binding of the ports of hardware bypass network cards to the DPDK driver (kernel module). Therefore, check that the MITIGATOR has not been started before configuring the hardware bypass. Otherwise stop the MITIGATOR and unbind the ports from the DPDK driver before this step.

Driver uninstallation

Hardware bypass driver may be uninstalled from the system if required.

Execute in driver source code folder:

make -f Makefile.dkms uninstall
Warning

To correctly uninstall the driver make sure that the MITIGATOR is stopped, the ports of hardware bypass network cards are not bound to the DPDK driver (kernel module), the control device is removed (via bpctl_stop script from the driver source code archive).