Skip to content

Commit

Permalink
Merge pull request #42 from microsoft/stefan/issue41
Browse files Browse the repository at this point in the history
Added dummy first argument to all CmdLineOpts
  • Loading branch information
anujkaliaiitd authored Aug 21, 2024
2 parents 80e12ae + 8bcf4c6 commit 6c673a0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/drivers/dpdk/dpdk_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ int main(int argc, char **argv) {
testing::InitGoogleTest(&argc, argv);

auto kEalOpts = juggler::utils::CmdLineOpts(
{"-c", "0x0", "-n", "6", "--proc-type=auto", "-m", "1024", "--log-level",
{"", "-c", "0x0", "-n", "6", "--proc-type=auto", "-m", "1024", "--log-level",
"8", "--vdev=net_null0,copy=1", "--no-pci"});

auto d = juggler::dpdk::Dpdk();
Expand Down
2 changes: 1 addition & 1 deletion src/core/flow_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ int main(int argc, char **argv) {

// Initialize DPDK
auto kEalOpts = juggler::utils::CmdLineOpts(
{"-c", "0x0", "-n", "6", "--proc-type=auto", "-m", "1024", "--log-level",
{"", "-c", "0x0", "-n", "6", "--proc-type=auto", "-m", "1024", "--log-level",
"8", "--vdev=net_null0,copy=1", "--no-pci"});
auto d = juggler::dpdk::Dpdk();
d.InitDpdk(kEalOpts); /* Using default DPDK configurations */
Expand Down
2 changes: 1 addition & 1 deletion src/core/machnet_engine_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ int main(int argc, char **argv) {
testing::InitGoogleTest(&argc, argv);

auto kEalOpts = juggler::utils::CmdLineOpts(
{"-c", "0x0", "-n", "6", "--proc-type=auto", "-m", "1024", "--log-level",
{"", "-c", "0x0", "-n", "6", "--proc-type=auto", "-m", "1024", "--log-level",
"8", "--vdev=net_null0,copy=1", "--no-pci"});

auto d = juggler::dpdk::Dpdk();
Expand Down
2 changes: 1 addition & 1 deletion src/include/dpdk.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ namespace dpdk {

// Default EAL init arguments.
static auto kDefaultEalOpts =
juggler::utils::CmdLineOpts({"--log-level=eal,8", "--proc-type=auto"});
juggler::utils::CmdLineOpts({"", "--log-level=eal,8", "--proc-type=auto"});

class Dpdk {
public:
Expand Down

0 comments on commit 6c673a0

Please sign in to comment.