1 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2 Date: Thu, 7 Jul 2016 13:58:34 +0200
3 Subject: [PATCH] Temporary: SR-IOV: Fix VNICs broken filter.
5 Some blades have VNICs (VFs on a PCI device), which are not
8 Bug report: "VNICs ignored due to SR-IOV filtering" [1]
10 HACK: Instead of checking for "physfn", we now rely on testing
11 for "sriov_totalvfs" file to determine whether current eth is
12 a SR-IOV VF or something else (thus keeping VNICs).
14 FIXME: Revert this patch once upstream closes bug [1].
16 [1] https://bugs.launchpad.net/fuel/+bug/1597775
18 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
21 1 file changed, 1 insertion(+), 1 deletion(-)
23 diff --git a/agent b/agent
24 index 89ab60f..eb2bfb4 100755
27 @@ -406,7 +406,7 @@ class NodeAgent
28 next if File.exist?("/sys/class/net/#{int}/phy80211") ||
29 File.exist?("/sys/class/net/#{int}/wireless")
30 # Skip virtual functions
31 - next if File.exists?("/sys/class/net/#{int}/device/physfn")
32 + next if File.exists?("/sys/class/net/#{int}/device/sriov_totalvfs")
33 int_meta = {:name => int}
34 int_meta[:interface_properties] = {}
35 int_meta[:state] = intinfo[:state]