summaryrefslogtreecommitdiff
path: root/examples/l2fwd-keepalive
diff options
context:
space:
mode:
authorPrashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>2017-12-11 16:31:29 +0900
committerThomas Monjalon <thomas@monjalon.net>2018-01-15 12:15:09 +0100
commitbacbf5ac505a3063943e83196f7332fc6436a09e (patch)
treec465f4d2b8335a1ec7046a59d2b1fcd69dd70ce1 /examples/l2fwd-keepalive
parentc89dc62533ac3b8a09e3b9f07a2aa1780ac7118a (diff)
downloaddpdk-bacbf5ac505a3063943e83196f7332fc6436a09e.zip
dpdk-bacbf5ac505a3063943e83196f7332fc6436a09e.tar.gz
dpdk-bacbf5ac505a3063943e83196f7332fc6436a09e.tar.xz
examples: remove unnecessary dev info queries
Removed rte_eth_dev_info_get() calls and declaration of struct rte_eth_dev_info where info is not used anymore. Signed-off-by: Prashant Bhole <bhole_prashant_q7@lab.ntt.co.jp> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Diffstat (limited to 'examples/l2fwd-keepalive')
-rw-r--r--examples/l2fwd-keepalive/main.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/examples/l2fwd-keepalive/main.c b/examples/l2fwd-keepalive/main.c
index 1afab54..5c349cb 100644
--- a/examples/l2fwd-keepalive/main.c
+++ b/examples/l2fwd-keepalive/main.c
@@ -527,7 +527,6 @@ int
main(int argc, char **argv)
{
struct lcore_queue_conf *qconf;
- struct rte_eth_dev_info dev_info;
int ret;
uint16_t nb_ports;
uint16_t nb_ports_available;
@@ -589,8 +588,6 @@ main(int argc, char **argv)
last_port = portid;
nb_ports_in_mask++;
-
- rte_eth_dev_info_get(portid, &dev_info);
}
if (nb_ports_in_mask % 2) {
printf("Notice: odd number of ports in portmask.\n");