Skip to content

Commit

Permalink
Merge pull request #112 from CESNET/dpdkhelp_fixtypo
Browse files Browse the repository at this point in the history
dpdk: improved help
  • Loading branch information
cejkato2 authored Dec 14, 2022
2 parents be0d3e6 + 5be023e commit 20bb951
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ Here are the examples of various plugins usage:
# Read packets using DPDK input interface and 1 DPDK queue, enable plugins for basic statistics, http and tls, output to IPFIX on a local machine
# DPDK EAL parameters are passed in `e, eal` parameters
# DPDK plugin configuration has to be specified in the first input interface, others dpdk interfaces inherit configuration from the first interface
For example: `./ipfixprobe -i "dpdk;p=0,q=1,e=-c 0x1 -a <[domain:]bus:devid.func>" -p http "-p" bstats -p tls -o "ipfix;h=127.0.0.1"`
# DPDK plugin configuration has to be specified in the first input interface.
# The following `dpdk` interfaces are given without parameters; their configuration is inherited from the first one.
# Example for the queue of 3 DPDK input plugins (`q=3`):
`./ipfixprobe -i "dpdk;p=0,q=3,e=-c 0x1 -a <[domain:]bus:devid.func>" -i dpdk -i dpdk -p http "-p" bstats -p tls -o "ipfix;h=127.0.0.1"`
```

## Extension
Expand Down
2 changes: 1 addition & 1 deletion input/dpdk.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class DpdkOptParser : public OptionsParser {
"q",
"queue",
"COUNT",
"Number of RX quues. Default: 1",
"Number of RX queues. Default: 1",
[this](const char* arg) {try{rx_queues_ = str2num<decltype(rx_queues_)>(arg);} catch (std::invalid_argument&){return false;} return true; },
RequiredArgument);
register_option(
Expand Down

0 comments on commit 20bb951

Please sign in to comment.