Thu, Sep 15, 2016 at 09:42:21AM CEST, idosch(a)idosch.org wrote:
From: Ido Schimmel <idosch(a)mellanox.com>
Apparently we need to set 'vlan_id' before 'vlan_p', so simply sort()
the options.
Signed-off-by: Ido Schimmel <idosch(a)mellanox.com>
---
test_modules/PktgenTx.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/test_modules/PktgenTx.py b/test_modules/PktgenTx.py
index 51fcd4c..49f50fb 100644
--- a/test_modules/PktgenTx.py
+++ b/test_modules/PktgenTx.py
@@ -78,6 +78,7 @@ class PktgenTx(TestGeneric):
]
pktgen_options = pktget_options_merge(pktgen_options,
default_pktgen_options)
+ pktgen_options.sort() # vlan_id must come before vlan_p
This is a bit weird solution IMO.
Why does it have to be set this way?
-Jan
>
> exec_cmd("modprobe pktgen")
>
>--
>2.7.4
>_______________________________________________
>LNST-developers mailing list
>lnst-developers(a)lists.fedorahosted.org
>https://lists.fedorahosted.org/admin/lists/lnst-developers@lists.fedorahosted.org