net/pcap: improve Rx statistics
authorQiming Chen <chenqiming_huawei@163.com>
Thu, 9 Sep 2021 12:28:55 +0000 (20:28 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 9 Sep 2021 13:30:32 +0000 (15:30 +0200)
commitd70157c13fff675863520fd216ec9ab7647eafad
tree87b84f2232ba7247ab5ec13b018650f965fa5646
parentda0280b3a34c6f67f7e558fcc86c3110816fea28
net/pcap: improve Rx statistics

In the receiving direction, if alloc mbuf or jumbo process failed, there
is no err_pkts count, which makes it difficult to locate the problem.
Because alloc mbuf failed, the rx_nombuf field is counted.

Signed-off-by: Qiming Chen <chenqiming_huawei@163.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/pcap/pcap_ethdev.c