From 4100791641906cb6cf83a2b3b6b3eba67820a7be Mon Sep 17 00:00:00 2001 From: Samuel Dobron Date: Thu, 17 Oct 2024 16:18:20 +0200 Subject: [PATCH] Recipes: added XDP tx recipe --- lnst/Recipes/ENRT/XDPTxRecipe.py | 17 +++++++++++++++++ lnst/Recipes/ENRT/__init__.py | 1 + 2 files changed, 18 insertions(+) create mode 100644 lnst/Recipes/ENRT/XDPTxRecipe.py diff --git a/lnst/Recipes/ENRT/XDPTxRecipe.py b/lnst/Recipes/ENRT/XDPTxRecipe.py new file mode 100644 index 000000000..db0dbcfce --- /dev/null +++ b/lnst/Recipes/ENRT/XDPTxRecipe.py @@ -0,0 +1,17 @@ +from lnst.Common.Parameters import ConstParam +from lnst.Recipes.ENRT.ConfigMixins.MultiDevInterruptHWConfigMixin import ( + MultiDevInterruptHWConfigMixin, +) +from lnst.Recipes.ENRT.SimpleNetworkRecipe import SimpleNetworkRecipe +from lnst.Recipes.ENRT.MeasurementGenerators.XDPFlowMeasurementGenerator import ( + XDPFlowMeasurementGenerator, +) + + +class XDPTxRecipe( + XDPFlowMeasurementGenerator, MultiDevInterruptHWConfigMixin, SimpleNetworkRecipe +): + xdp_command = ConstParam(value="tx") + # NOTE: Receiver's IRQs needs to be pinned to single CPU (due to test stability) + # Generator needs to reach line rate, therefore its' IRQ CPUs should not be limited. + # Simply use `multi_dev_interrupt_config` with single host. diff --git a/lnst/Recipes/ENRT/__init__.py b/lnst/Recipes/ENRT/__init__.py index 7668754a7..2069f0aa9 100644 --- a/lnst/Recipes/ENRT/__init__.py +++ b/lnst/Recipes/ENRT/__init__.py @@ -112,6 +112,7 @@ from lnst.Recipes.ENRT.DellLACPRecipe import DellLACPRecipe from lnst.Recipes.ENRT.SoftwareRDMARecipe import SoftwareRDMARecipe from lnst.Recipes.ENRT.XDPDropRecipe import XDPDropRecipe +from lnst.Recipes.ENRT.XDPTxRecipe import XDPTxRecipe from lnst.Recipes.ENRT.CTInsertionRateNftablesRecipe import CTInsertionRateNftablesRecipe from .CTFulltableInsertionRateRecipe import CTFulltableInsertionRateRecipe from lnst.Recipes.ENRT.BaseEnrtRecipe import BaseEnrtRecipe