Skip to content

Commit

Permalink
udev: mark the SRIO-V functions as unamanged by NetworkManager
Browse files Browse the repository at this point in the history
From https://bugzilla.redhat.com/show_bug.cgi?id=1720157:

Accelerated Networking on Azure exposes a new SRIOV interface to the VM.
This interface is transparently bonded to the synthetic interface,
so NetworkManager should just ignore any SRIOV interfaces.

The rule is originally from Haiyang Zhang <haiyangz@microsoft.com>.
  • Loading branch information
lkundrak committed Dec 8, 2019
1 parent 0ba8202 commit 0d8a01d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/68-azure-sriov-nm-unmanaged.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Accelerated Networking on Azure exposes a new SRIOV interface to the VM.
# This interface is transparently bonded to the synthetic interface,
# so NetworkManager should just ignore any SRIOV interfaces.
SUBSYSTEM=="net", DRIVERS=="hv_pci", ACTION=="add", ENV{NM_UNMANAGED}="1"
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def set_openbsd_rc_files(data_files, dest="/etc/rc.d/",

def set_udev_files(data_files, dest="/etc/udev/rules.d/",
src=["config/66-azure-storage.rules",
"config/68-azure-sriov-nm-unmanaged.rules",
"config/99-azure-product-uuid.rules"]):
data_files.append((dest, src))

Expand Down

0 comments on commit 0d8a01d

Please sign in to comment.