diff options
author | Pierrick Louin <pierrick.louin@orange.com> | 2021-03-06 01:23:56 +0000 |
---|---|---|
committer | fmenguy <francoisregis.menguy@orange.com> | 2021-04-27 16:54:00 +0200 |
commit | e4f42c701172b6b27dea2126e095e2526bcdb365 (patch) | |
tree | c48b40f8d95dce6cc3dfca07d229e7fc3f192fad /nfvbench/nfvbench.py | |
parent | fc792bba0bfaaaeca8a9a1b6ca47c9cd9303d41f (diff) |
NFVBENCH-190: Add a 'i40e_mixed' option, trex accepts other i40e driven ports to run in kernel mode on the same board
Change-Id: I33b1d848f409e0431bd4e247456b1d697d8b9d04
Signed-off-by: Pierrick Louin <pierrick.louin@orange.com>
Diffstat (limited to 'nfvbench/nfvbench.py')
-rw-r--r-- | nfvbench/nfvbench.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nfvbench/nfvbench.py b/nfvbench/nfvbench.py index bd86810..598247a 100644 --- a/nfvbench/nfvbench.py +++ b/nfvbench/nfvbench.py @@ -530,6 +530,13 @@ def _parse_opts_from_cli(): 'tagged with given VLAN id(s) or not (given \'no-tag\') ' '\'true\': use current vlans; \'false\': disable this mode.') + parser.add_argument('--i40e-mixed', dest='i40e_mixed', + action='store', + default=None, + metavar='<ignore,check,unbind>', + help='TRex behavior when dealing with a i40e network card driver' + ' [ https://trex-tgn.cisco.com/youtrack/issue/trex-528 ]') + parser.add_argument('--user-info', dest='user_info', action='append', metavar='<data>', @@ -875,6 +882,8 @@ def main(): config.service_chain_count = len(vlans[0]) opts.l2_loopback = None + if config.i40e_mixed is None: + config.i40e_mixed = 'ignore' if config.use_sriov_middle_net is None: config.use_sriov_middle_net = False if opts.use_sriov_middle_net is not None: |