File Add-support-for-ExaNIC-network-cards-5.patch of Package biosdevname.19075
From: Ka-Shu Wong <31426385+kashuwong@users.noreply.github.com>
Subject: Add support for ExaNIC network cards (#5)
References: bsc#1184341
Patch-Mainline:
Git-commit: 7460046a5430e92cd6a4ef0c938f80e95669b5bc
Git-repo: https://github.com/dell/biosdevname.git.git
ExaNIC cards have multiple physical ports on the same PCI function and
need to be numbered using the dev_port attribute.
Signed-off-by: <trenn@suse.com>
diff --git a/src/bios_device.c b/src/bios_device.c
index e9d5177..3cc528b 100644
--- a/src/bios_device.c
+++ b/src/bios_device.c
@@ -221,6 +221,8 @@ int ismultiport(const char *driver)
return 1;
if (!strncmp(driver, "cxgb", 4))
return 1;
+ if (!strncmp(driver, "exanic", 6))
+ return 1;
return 0;
}