commit 45e310a1023396057f1c4fb82ee0a98127653f78
Author: Jiri Prochazka <jprochaz(a)redhat.com>
Date: Fri Apr 10 15:35:17 2015 +0200
ENRT: Set offloads on host NICs in virtual setups
Based on our last meeting we agreed on setting offloads (gro, tso, gso) on both guest
NICs and host NICs.
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
.../phase1/virtual_bridge_2_vlans_over_bond.py | 8 ++++++++
.../phase1/virtual_bridge_vlan_in_guest.py | 2 ++
.../phase1/virtual_bridge_vlan_in_host.py | 2 ++
...l_ovs_bridge_2_vlans_over_active_backup_bond.py | 8 ++++++++
.../phase2/virtual_ovs_bridge_vlan_in_guest.py | 2 ++
.../phase2/virtual_ovs_bridge_vlan_in_host.py | 2 ++
6 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/recipes/regression_tests/phase1/virtual_bridge_2_vlans_over_bond.py
b/recipes/regression_tests/phase1/virtual_bridge_2_vlans_over_bond.py
index 52a2ae2..c3c43b8 100644
--- a/recipes/regression_tests/phase1/virtual_bridge_2_vlans_over_bond.py
+++ b/recipes/regression_tests/phase1/virtual_bridge_2_vlans_over_bond.py
@@ -146,6 +146,14 @@ ping_mod6_bad2 = ctl.get_module("Icmp6Ping",
for offload in offloads:
for state in ["on", "off"]:
+ h1.run("ethtool -K %s %s %s" % (h1.get_devname("nic1"),
+ offload, state))
+ h1.run("ethtool -K %s %s %s" % (h1.get_devname("nic2"),
+ offload, state))
+ h2.run("ethtool -K %s %s %s" % (h2.get_devname("nic1"),
+ offload, state))
+ h2.run("ethtool -K %s %s %s" % (h2.get_devname("nic2"),
+ offload, state))
g1.run("ethtool -K %s %s %s" % (g1.get_devname("guestnic"),
offload, state))
g2.run("ethtool -K %s %s %s" % (g2.get_devname("guestnic"),
diff --git a/recipes/regression_tests/phase1/virtual_bridge_vlan_in_guest.py
b/recipes/regression_tests/phase1/virtual_bridge_vlan_in_guest.py
index 4b9bafb..aefda4a 100644
--- a/recipes/regression_tests/phase1/virtual_bridge_vlan_in_guest.py
+++ b/recipes/regression_tests/phase1/virtual_bridge_vlan_in_guest.py
@@ -95,6 +95,8 @@ for offload in offloads:
for state in ["on", "off"]:
g1.run("ethtool -K %s %s %s" % (g1.get_devname("guestnic"),
offload, state))
+ h1.run("ethtool -K %s %s %s" % (h1.get_devname("nic"),
+ offload, state))
h2.run("ethtool -K %s %s %s" % (h2.get_devname("nic"),
offload, state))
diff --git a/recipes/regression_tests/phase1/virtual_bridge_vlan_in_host.py
b/recipes/regression_tests/phase1/virtual_bridge_vlan_in_host.py
index 29c6bcc..e2d32d6 100644
--- a/recipes/regression_tests/phase1/virtual_bridge_vlan_in_host.py
+++ b/recipes/regression_tests/phase1/virtual_bridge_vlan_in_host.py
@@ -95,6 +95,8 @@ for offload in offloads:
for state in ["on", "off"]:
g1.run("ethtool -K %s %s %s" %
(g1.get_devname("guestnic"),
offload, state))
+ h1.run("ethtool -K %s %s %s" % (h1.get_devname("nic"),
+ offload, state))
h2.run("ethtool -K %s %s %s" % (h2.get_devname("nic"),
offload, state))
if ipv == 'ipv4':
diff --git
a/recipes/regression_tests/phase2/virtual_ovs_bridge_2_vlans_over_active_backup_bond.py
b/recipes/regression_tests/phase2/virtual_ovs_bridge_2_vlans_over_active_backup_bond.py
index a5c927f..92e5253 100644
---
a/recipes/regression_tests/phase2/virtual_ovs_bridge_2_vlans_over_active_backup_bond.py
+++
b/recipes/regression_tests/phase2/virtual_ovs_bridge_2_vlans_over_active_backup_bond.py
@@ -149,6 +149,14 @@ ping_mod6_bad2 = ctl.get_module("Icmp6Ping",
for offload in offloads:
for state in ["on", "off"]:
+ h1.run("ethtool -K %s %s %s" % (h1.get_devname("nic1"),
+ offload, state))
+ h1.run("ethtool -K %s %s %s" % (h1.get_devname("nic2"),
+ offload, state))
+ h2.run("ethtool -K %s %s %s" % (h2.get_devname("nic1"),
+ offload, state))
+ h2.run("ethtool -K %s %s %s" % (h2.get_devname("nic2"),
+ offload, state))
g1.run("ethtool -K %s %s %s" % (g1.get_devname("guestnic"),
offload, state))
g2.run("ethtool -K %s %s %s" % (g2.get_devname("guestnic"),
diff --git a/recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_guest.py
b/recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_guest.py
index 03cd652..9adf380 100644
--- a/recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_guest.py
+++ b/recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_guest.py
@@ -94,6 +94,8 @@ netperf_cli_udp6 = ctl.get_module("Netperf",
for offload in offloads:
for state in ["on", "off"]:
+ h1.run("ethtool -K %s %s %s" % (h1.get_devname("nic"),
+ offload, state))
g1.run("ethtool -K %s %s %s" % (g1.get_devname("guestnic"),
offload, state))
h2.run("ethtool -K %s %s %s" % (h2.get_devname("nic"),
diff --git a/recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_host.py
b/recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_host.py
index bc50b18..fbda2cb 100644
--- a/recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_host.py
+++ b/recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_host.py
@@ -93,6 +93,8 @@ netperf_cli_udp6 = ctl.get_module("Netperf",
for offload in offloads:
for state in ["on", "off"]:
+ h1.run("ethtool -K %s %s %s" % (h1.get_devname("nic"),
+ offload, state))
g1.run("ethtool -K %s %s %s" %
(g1.get_devname("guestnic"),
offload, state))
h2.run("ethtool -K %s %s %s" % (h2.get_devname("nic"),