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
net/txgbe: add MAC type and bus LAN id
[dpdk.git]
/
examples
/
l2fwd-event
/
main.c
diff --git
a/examples/l2fwd-event/main.c
b/examples/l2fwd-event/main.c
index
9f831b1
..
444ee4e
100644
(file)
--- a/
examples/l2fwd-event/main.c
+++ b/
examples/l2fwd-event/main.c
@@
-667,7
+667,7
@@
main(int argc, char **argv)
/* launch per-lcore init on every lcore */
rte_eal_mp_remote_launch(l2fwd_launch_one_lcore, rsrc,
/* launch per-lcore init on every lcore */
rte_eal_mp_remote_launch(l2fwd_launch_one_lcore, rsrc,
- SKIP_MA
STER
);
+ SKIP_MA
IN
);
l2fwd_event_print_stats(rsrc);
if (rsrc->event_mode) {
struct l2fwd_event_resources *evt_rsrc =
l2fwd_event_print_stats(rsrc);
if (rsrc->event_mode) {
struct l2fwd_event_resources *evt_rsrc =
@@
-683,7
+683,10
@@
main(int argc, char **argv)
if ((rsrc->enabled_port_mask &
(1 << port_id)) == 0)
continue;
if ((rsrc->enabled_port_mask &
(1 << port_id)) == 0)
continue;
- rte_eth_dev_stop(port_id);
+ ret = rte_eth_dev_stop(port_id);
+ if (ret < 0)
+ printf("rte_eth_dev_stop:err=%d, port=%u\n",
+ ret, port_id);
}
rte_eal_mp_wait_lcore();
}
rte_eal_mp_wait_lcore();
@@
-705,7
+708,10
@@
main(int argc, char **argv)
(1 << port_id)) == 0)
continue;
printf("Closing port %d...", port_id);
(1 << port_id)) == 0)
continue;
printf("Closing port %d...", port_id);
- rte_eth_dev_stop(port_id);
+ ret = rte_eth_dev_stop(port_id);
+ if (ret < 0)
+ printf("rte_eth_dev_stop:err=%d, port=%u\n",
+ ret, port_id);
rte_eth_dev_close(port_id);
printf(" Done\n");
}
rte_eth_dev_close(port_id);
printf(" Done\n");
}