X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FDpdkUtil.py;h=4a5983affb25dbea4fe8f4348d2047505875b762;hp=24c4d576523ff021ae700eaf8fb866351427a854;hb=9780b57a9640e9ab40e40ec122ac80e09cd74c79;hpb=54beb458703ff91e9f522f8af0a57722966f093e diff --git a/resources/libraries/python/DpdkUtil.py b/resources/libraries/python/DpdkUtil.py index 24c4d57652..4a5983affb 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: @@ -42,10 +42,6 @@ class DpdkUtil: options.add_with_value_from_dict( u"w", u"eal_pci_whitelist1", kwargs ) - # Set master core. - options.add_with_value( - u"-master-lcore", u"0" - ) # Load an external driver. Multiple -d options are allowed. options.add_with_value_if_from_dict( u"d", u"/usr/lib/librte_pmd_virtio.so", u"eal_driver", kwargs, True @@ -130,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 ) @@ -165,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))