net/pcap: support imissed stats
authorIdo Goshen <ido@cgstowernetworks.com>
Thu, 4 Feb 2021 10:33:57 +0000 (12:33 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 22 Feb 2021 18:11:50 +0000 (19:11 +0100)
commit9d8d3032da726fd46d511dc5c54f607b4dab3b22
tree8a8bd6f905b81f48260c4bab3acf5c4b57999956
parenta3c9a11ab2d667c9eca001a50c79d8ddab707578
net/pcap: support imissed stats

Get value from pcap_stats.ps_drop (see man pcap_stats)
the value is adjusted in this cases:
 - port stop - pcap is closed and will lose count
 - stats reset - pcap doesn't provide reset api
 - rollover - pcap counter size is u_32 only

Signed-off-by: Ido Goshen <ido@cgstowernetworks.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/pcap/rte_eth_pcap.c