X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FDpdkUtil.py;h=9f3ee8d3f7efa07d3a9db54040187ac7ead0c1cc;hp=dcca73db1da63a0d68efe90f734a29f8aea9d245;hb=70fd262da8614a47843334f21819bf47732b58b3;hpb=3b2dcb0348e890950dfbc3fe4aec7008d4e1f63a diff --git a/resources/libraries/python/DpdkUtil.py b/resources/libraries/python/DpdkUtil.py index dcca73db1d..9f3ee8d3f7 100644 --- a/resources/libraries/python/DpdkUtil.py +++ b/resources/libraries/python/DpdkUtil.py @@ -1,4 +1,4 @@ -# Copyright (c) 2020 Cisco and/or its affiliates. +# Copyright (c) 2021 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -37,10 +37,10 @@ class DpdkUtil: ) # Add a PCI device in white list. options.add_with_value_from_dict( - u"w", u"eal_pci_whitelist0", kwargs + u"a", u"eal_pci_whitelist0", kwargs ) options.add_with_value_from_dict( - u"w", u"eal_pci_whitelist1", kwargs + u"a", u"eal_pci_whitelist1", kwargs ) # Load an external driver. Multiple -d options are allowed. options.add_with_value_if_from_dict( @@ -126,7 +126,7 @@ class DpdkUtil: options.add_equals_from_dict( u"max-pkt-len", u"pmd_max_pkt_len", kwargs ) - # Set the max packet length. + # Set the mbuf size. options.add_equals_from_dict( u"mbuf-size", u"pmd_mbuf_size", kwargs ) @@ -161,7 +161,7 @@ class DpdkUtil: :rtype: OptionString """ options = OptionString() - options.add(u"testpmd") + options.add(u"dpdk-testpmd") options.extend(DpdkUtil.get_eal_options(**kwargs)) options.add(u"--") options.extend(DpdkUtil.get_testpmd_pmd_options(**kwargs))