Skip to content

Commit

Permalink
Recipes: added XDP tx recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
enhaut authored and olichtne committed Nov 12, 2024
1 parent f4e828e commit a5ee313
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lnst/Recipes/ENRT/XDPTxRecipe.py
Original file line number Diff line number Diff line change
@@ -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.
1 change: 1 addition & 0 deletions lnst/Recipes/ENRT/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a5ee313

Please sign in to comment.