Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
feat(papi): use newer API messages
[csit.git]
/
resources
/
libraries
/
python
/
DpdkUtil.py
diff --git
a/resources/libraries/python/DpdkUtil.py
b/resources/libraries/python/DpdkUtil.py
index
24c4d57
..
8ee0dde
100644
(file)
--- a/
resources/libraries/python/DpdkUtil.py
+++ b/
resources/libraries/python/DpdkUtil.py
@@
-1,4
+1,4
@@
-# Copyright (c) 202
0
Cisco and/or its affiliates.
+# Copyright (c) 202
1
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:
# 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,14
+37,10
@@
class DpdkUtil:
)
# Add a PCI device in white list.
options.add_with_value_from_dict(
)
# 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(
)
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"
+ u"a", u"eal_pci_whitelist1", kwargs
)
# Load an external driver. Multiple -d options are allowed.
options.add_with_value_if_from_dict(
)
# Load an external driver. Multiple -d options are allowed.
options.add_with_value_if_from_dict(
@@
-130,7
+126,7
@@
class DpdkUtil:
options.add_equals_from_dict(
u"max-pkt-len", u"pmd_max_pkt_len", kwargs
)
options.add_equals_from_dict(
u"max-pkt-len", u"pmd_max_pkt_len", kwargs
)
- # Set the m
ax packet length
.
+ # Set the m
buf size
.
options.add_equals_from_dict(
u"mbuf-size", u"pmd_mbuf_size", kwargs
)
options.add_equals_from_dict(
u"mbuf-size", u"pmd_mbuf_size", kwargs
)
@@
-165,7
+161,7
@@
class DpdkUtil:
:rtype: OptionString
"""
options = OptionString()
: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))
options.extend(DpdkUtil.get_eal_options(**kwargs))
options.add(u"--")
options.extend(DpdkUtil.get_testpmd_pmd_options(**kwargs))
@@
-223,10
+219,6
@@
class DpdkUtil:
options.add_equals_from_dict(
u"config", u"pmd_config", kwargs
)
options.add_equals_from_dict(
u"config", u"pmd_config", kwargs
)
- # Enables jumbo frames.
- options.add_if_from_dict(
- u"enable-jumbo", u"pmd_enable_jumbo", kwargs, False
- )
# Set the max packet length.
options.add_with_value_if_from_dict(
u"max-pkt-len", u"9200", u"pmd_max_pkt_len", kwargs, False
# Set the max packet length.
options.add_with_value_if_from_dict(
u"max-pkt-len", u"9200", u"pmd_max_pkt_len", kwargs, False