From: Ondrej Lichtner <olichtne(a)redhat.com>
Adaptive coalescing configuration was added in a different way and
there's now no reason to keep this old commented out code around.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Recipes/ENRT/SimplePerfRecipe.py | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/lnst/Recipes/ENRT/SimplePerfRecipe.py
b/lnst/Recipes/ENRT/SimplePerfRecipe.py
index 1f0c614..bc23a97 100644
--- a/lnst/Recipes/ENRT/SimplePerfRecipe.py
+++ b/lnst/Recipes/ENRT/SimplePerfRecipe.py
@@ -31,18 +31,6 @@ class SimplePerfRecipe(BaseEnrtRecipe):
host1.eth0.mtu = self.params.mtu
host2.eth0.mtu = self.params.mtu
- #TODO redo
- # configuration.saved_coalescing_state = dict(
- # host1_if = dict(tx = host1.eth0.adaptive_tx_coalescing,
- # rx = host1.eth0.adaptive_rx_coalescing),
- # host2_if = dict(tx = host2.eth0.adaptive_tx_coalescing,
- # rx = host2.eth0.adaptive_rx_coalescing))
-
- # host1.eth0.adaptive_tx_coalescing = self.params.adaptive_coalescing
- # host1.eth0.adaptive_rx_coalescing = self.params.adaptive_coalescing
- # host2.eth0.adaptive_tx_coalescing = self.params.adaptive_coalescing
- # host2.eth0.adaptive_rx_coalescing = self.params.adaptive_coalescing
-
host1.eth0.ip_add(ipaddress("192.168.101.1/24"))
host1.eth0.ip_add(ipaddress("fc00::1/64"))
host1.eth0.up()
@@ -77,9 +65,3 @@ class SimplePerfRecipe(BaseEnrtRecipe):
if "dev_intr_cpu" in self.params:
for host in [host1, host2]:
host.run("service irqbalance start")
-
- # redo
- # host1.eth0.adaptive_tx_coalescing =
self.saved_coalescing_state["host1_if"]["tx"]
- # host1.eth0.adaptive_rx_coalescing =
self.saved_coalescing_state["host1_if"]["rx"]
- # host2.eth0.adaptive_tx_coalescing =
self.saved_coalescing_state["host2_if"]["tx"]
- # host2.eth0.adaptive_rx_coalescing =
self.saved_coalescing_state["host2_if"]["rx"]
--
2.21.0