Temp: fuel-library: Increase tcp_retries2 value
[armband.git] / patches / fuel-nailgun-agent / 0002-Temporary-SR-IOV-Fix-VNICs-broken-filter.patch
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.
4
5 Some blades have VNICs (VFs on a PCI device), which are not
6 SR-IOV VFs.
7
8 Bug report: "VNICs ignored due to SR-IOV filtering" [1]
9
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).
13
14 FIXME: Revert this patch once upstream closes bug [1].
15
16 [1] https://bugs.launchpad.net/fuel/+bug/1597775
17
18 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
19 ---
20  agent | 2 +-
21  1 file changed, 1 insertion(+), 1 deletion(-)
22
23 diff --git a/agent b/agent
24 index 89ab60f..eb2bfb4 100755
25 --- a/agent
26 +++ b/agent
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]