net/ipn3ke: add stats register and clearing
authorAndy Pei <andy.pei@intel.com>
Mon, 1 Jul 2019 10:36:25 +0000 (18:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 8 Jul 2019 19:26:52 +0000 (21:26 +0200)
commit2171c38eed8217089f6bdb4022b5bff87abe2f35
tree425ea2f2e062067419cd1585a39a77f6c29aa266
parentb15ad79ce9b6a216f90cccb4fcb310e3b174daff
net/ipn3ke: add stats register and clearing

ipn3ke can work on 10G mode and 25G mode.
10G mode and 25G mode has different MAC register address for statistics.
This patch implements statistics registers for 10G mode and 25G mode.

Also implements different stats clearing per mode.

Fixes: c01c748e4ae6 ("net/ipn3ke: add new driver")
Cc: stable@dpdk.org
Signed-off-by: Andy Pei <andy.pei@intel.com>
Acked-by: Rosen Xu <rosen.xu@intel.com>
drivers/net/ipn3ke/ipn3ke_ethdev.c
drivers/net/ipn3ke/ipn3ke_ethdev.h
drivers/net/ipn3ke/ipn3ke_representor.c