From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rafal Kozik Subject: [PATCH 4/5] [pktgen] expose number of missed Rx packets Date: Thu, 10 Jan 2019 17:14:05 +0100 Message-ID: <1547136846-23319-5-git-send-email-rk@semihalf.com> References: <1547136846-23319-1-git-send-email-rk@semihalf.com> Cc: mw@semihalf.com, mk@semihalf.com, gtzalik@amazon.com, evgenys@amazon.com, matua@amazon.com, igorch@amazon.com, Rafal Kozik To: dev@dpdk.org, keith.wiles@intel.com Return-path: Received: from mail-lf1-f68.google.com (mail-lf1-f68.google.com [209.85.167.68]) by dpdk.org (Postfix) with ESMTP id AA5921B925 for ; Thu, 10 Jan 2019 17:14:23 +0100 (CET) Received: by mail-lf1-f68.google.com with SMTP id b20so8662373lfa.12 for ; Thu, 10 Jan 2019 08:14:23 -0800 (PST) In-Reply-To: <1547136846-23319-1-git-send-email-rk@semihalf.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Expose number of missed Rx packets from DPDK NIC statistics to Lua API. Signed-off-by: Rafal Kozik --- app/lpktgenlib.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.7.4