git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
examples: remove useless check of port count
[dpdk.git]
/
doc
/
guides
/
sample_app_ug
/
l2_forward_job_stats.rst
diff --git
a/doc/guides/sample_app_ug/l2_forward_job_stats.rst
b/doc/guides/sample_app_ug/l2_forward_job_stats.rst
index
03d9977
..
2444e36
100644
(file)
--- a/
doc/guides/sample_app_ug/l2_forward_job_stats.rst
+++ b/
doc/guides/sample_app_ug/l2_forward_job_stats.rst
@@
-238,9
+238,6
@@
in the *DPDK Programmer's Guide* and the *DPDK API Reference*.
if (nb_ports == 0)
rte_exit(EXIT_FAILURE, "No Ethernet ports - bye\n");
- if (nb_ports > RTE_MAX_ETHPORTS)
- nb_ports = RTE_MAX_ETHPORTS;
-
/* reset l2fwd_dst_ports */
for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++)