Add support for counting non dataplane related packets 35/64335/1
authorXavier Simonart <xavier.simonart@intel.com>
Mon, 22 Oct 2018 13:46:23 +0000 (15:46 +0200)
committerDeepak S <deepak.s@linux.intel.com>
Wed, 31 Oct 2018 23:08:27 +0000 (04:38 +0530)
commitade1ef11e0c54bb782bea863721964c53024c8ea
treea4b3a0a7b702b31d09b51990b8eb74b4618bd7c1
parent406fcc1e4b6ae368f3550abe4a187f73d797bcfa
Add support for counting non dataplane related packets

When performing some zero packet loss performance testing on dataplane, it
is important (not) to count non dataplane packets. For instance, one might
receive uexpected packets from a switch, or ARP packets. Or one might need
to transmit ARP packets. Such packets should not be counted as dataplane
packets as for thse packets there is no 1:1 mapping between transmitted
packets and received packets.
To support this, the counters reporting numbers of transmitted and received
packets remain unchanged but two new counters have been added to PROX,
counting respectively number of received and number of transmitted
non-dataplane packets.
On RX side, packets are counsidered as non-dataplane if being ARP or if
they do not countain the proper signature
On TX side, ARP packets are not considered as dataplane packets.
This feature requires configuration of signature.
"dp core stats" command has been added

Change-Id: I98e113cd02f36d540383d343a433592867ad86a9
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
VNFs/DPPD-PROX/cmd_parser.c
VNFs/DPPD-PROX/display_tasks.c
VNFs/DPPD-PROX/handle_lat.c
VNFs/DPPD-PROX/packet_utils.c
VNFs/DPPD-PROX/rx_pkt.c
VNFs/DPPD-PROX/stats_parser.c
VNFs/DPPD-PROX/stats_task.c
VNFs/DPPD-PROX/stats_task.h