Hi Team,
We are experimenting around connection tracking(CT) offload into e-switch for CX6 cards. We utilize Ovs-Kernel with NIC in switch dev mode for data path offload. We utilize 128-bit CT labels so we want to enable ct_labels_mapping which is getting using in the mlx driver. I didn’t see equivalent devlink command to enable this. Can you please help to address this.
Hello,
Thank you for your question about enabling `ct_labels_mapping` for connection tracking offload with CX6 cards.
The `ct_labels_mapping` is a kernel module parameter for the mlx5 driver rather than a devlink parameter. This is why you couldn’t find it as a devlink command.
To enable `ct_labels_mapping` for 128-bit CT labels with CX6 cards, follow these steps:
1. **Temporary method (until next reboot):**
```
echo 1 > /sys/module/mlx5_core/parameters/ct_labels_mapping
```
2. **Persistent method (survives reboots):**
Add the following line to a file in `/etc/modprobe.d/`, for example `/etc/modprobe.d/mlx5.conf`:
```
options mlx5_core ct_labels_mapping=1
```
Then run `sudo update-initramfs -u` to update the initramfs.
3. **Verification:**
You can verify the current setting with:
```
cat /sys/module/mlx5_core/parameters/ct_labels_mapping
```
The `ct_labels_mapping` parameter enables the mapping of the 128-bit connection tracking labels in hardware offload scenarios, which is exactly what you need for your use case with OVS-Kernel and CX6 cards in switch dev mode.
If above does not work, plese open a technical case and talk with NVIDIA Technical support team for further analaysis.
/HyungKwang