You run SAP HANA on an Azure VM with SUSE Linux Enterprise Server 15 SP5. Accelerated Networking is enabled. Inside the guest, the VM shows a synthetic interface that uses the hv_netvsc driver and a virtual function (VF) interface that uses the mlx5_core driver.
The team has decided to set the RX and TX ring buffers to 4096 on the Accelerated Networking interface. The solution must meet these requirements:
- The setting must persist across reboots.
- The setting must take effect on the existing interfaces without restarting the VM.
What should you do?
With Accelerated Networking on Linux, the VM exposes both a synthetic hv_netvsc interface and a VF interface bound to an accelerated driver such as mlx5_core, so tuning must target the VF interface. Ring buffer values set with ethtool do not persist on their own; a udev rule can restore them after a reboot and match the driver through ID_NET_DRIVER. Running udevadm control --reload-rules and udevadm trigger --action=add --subsystem-match=net applies the rule to interfaces that already exist, so no restart is needed.
- Not correct: Create a udev rule matching ID_NET_DRIVER mlx5_core that runs ethtool -G with rx 4096 tx 4096, then restart the VM. The rule targets the correct interface and persists, but restarting the VM violates the requirement; udev rules can be applied to existing interfaces by reloading rules and re-triggering the add action.
- Not correct: Run ethtool -G with rx 4096 tx 4096 against the mlx5_core interface and make no other changes. Ring buffer settings applied with ethtool do not persist across reboots on their own; this option provides no mechanism to restore them.
- Not correct: Create a udev rule matching ID_NET_DRIVER hv_netvsc that runs ethtool -G with rx 4096 tx 4096, then reload udev rules and trigger the add action. hv_netvsc is the synthetic interface; the Accelerated Networking VF interface on this VM uses mlx5_core, so this rule tunes the wrong interface.
- Correct: Create a udev rule matching ID_NET_DRIVER mlx5_core that runs ethtool -G with rx 4096 tx 4096, then reload udev rules and trigger the add action. A udev rule makes ring buffer settings persistent, mlx5_core identifies the Accelerated Networking (VF) interface on this VM, and reloading the rules and triggering the add action applies them to existing interfaces without a reboot.
- Optimize Azure VM network throughputMicrosoft Learn