1
Hardware and Performance / Re: Disable flow control Mellanox ConnectX 2 on boot
« on: November 26, 2022, 12:58:38 pm »
Finnaly had some time to play with the suggestions and came to the conclusion that there are no tuneables for these X2 cards in OPNSense/FreeBSD and all is done via ipconfig.
The pdf mentioned is for newer generation cards which uses a different driver.
In the end I found a pdf for de X2 cards which uses ipconfig command for rxpause,txpause settings and sysctl commands for the most other settings of the X2 cards.
https://usermanual.wiki/m/d86f82c808d6b799caa50e77b7e97b12495b5b4b89b64471678c8d9e6895eab3.pdf
So I resulted to Torsten his suggestion of using a script in /usr/local/etc/rc.syshook.d/start/99-fc
which is working fine.
So no longer I need to enter these commands manually after boot.
Thanks for the help.
The pdf mentioned is for newer generation cards which uses a different driver.
In the end I found a pdf for de X2 cards which uses ipconfig command for rxpause,txpause settings and sysctl commands for the most other settings of the X2 cards.
https://usermanual.wiki/m/d86f82c808d6b799caa50e77b7e97b12495b5b4b89b64471678c8d9e6895eab3.pdf
So I resulted to Torsten his suggestion of using a script in /usr/local/etc/rc.syshook.d/start/99-fc
Code: [Select]
#!/bin/sh
ifconfig mlxen0 -mediaopt txpause,rxpause
ifconfig mlxen1 -mediaopt txpause,rxpause
which is working fine.
So no longer I need to enter these commands manually after boot.
Thanks for the help.