This also fixes the previous patch that added offload_combinations parameter that is useless unless the recipe inherits from OffloadSubConfigMixin.
Signed-off-by: Jan Tluka jtluka@redhat.com --- lnst/Recipes/ENRT/GeneveTunnelRecipe.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/lnst/Recipes/ENRT/GeneveTunnelRecipe.py b/lnst/Recipes/ENRT/GeneveTunnelRecipe.py index 43aaa954..1d79e093 100644 --- a/lnst/Recipes/ENRT/GeneveTunnelRecipe.py +++ b/lnst/Recipes/ENRT/GeneveTunnelRecipe.py @@ -11,9 +11,17 @@ from lnst.RecipeCommon.Ping.PingEndpoints import PingEndpoints from lnst.RecipeCommon.PacketAssert import PacketAssertConf from lnst.Common.Parameters import Param, StrParam, ChoiceParam from lnst.Recipes.ENRT.BaseTunnelRecipe import BaseTunnelRecipe +from lnst.Recipes.ENRT.ConfigMixins.OffloadSubConfigMixin import ( + OffloadSubConfigMixin, +) +from lnst.Recipes.ENRT.ConfigMixins.PauseFramesHWConfigMixin import ( + PauseFramesHWConfigMixin, +)
-class GeneveTunnelRecipe(BaseTunnelRecipe): +class GeneveTunnelRecipe( + PauseFramesHWConfigMixin, OffloadSubConfigMixin, BaseTunnelRecipe +): """ This class implements a recipe that configures a simple Geneve tunnel between two hosts. @@ -182,3 +190,7 @@ class GeneveTunnelRecipe(BaseTunnelRecipe): @property def offload_nics(self): return [self.matched.host1.eth0, self.matched.host2.eth0] + + @property + def pause_frames_dev_list(self): + return [self.matched.host1.eth0, self.matched.host2.eth0]