diff mbox series

[4/5,pktgen] expose number of missed Rx packets

Message ID 1547136846-23319-5-git-send-email-rk@semihalf.com (mailing list archive)
State Not Applicable, archived
Headers show
Series fixes and minor features | expand


Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Rafal Kozik Jan. 10, 2019, 4:14 p.m. UTC
Expose number of missed Rx packets from DPDK NIC statistics to Lua API.

Signed-off-by: Rafal Kozik <rk@semihalf.com>
 app/lpktgenlib.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series


diff --git a/app/lpktgenlib.c b/app/lpktgenlib.c
index 9a6307c..e9c7241 100644
--- a/app/lpktgenlib.c
+++ b/app/lpktgenlib.c
@@ -2888,6 +2888,7 @@  port_stats(lua_State *L, port_info_t *info, char *type)
 	setf_integer(L, "ierrors", stats.ierrors);
 	setf_integer(L, "oerrors", stats.oerrors);
 	setf_integer(L, "rx_nombuf", stats.rx_nombuf);
+	setf_integer(L, "imissed", stats.imissed);
 	if (strcmp(type, "rate") == 0) {
 		setf_integer(L, "pkts_rx", stats.ipackets);