raw/ioat: create separate statistics structure
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 8 Oct 2020 09:51:29 +0000 (10:51 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 8 Oct 2020 12:33:20 +0000 (14:33 +0200)
commit8636b9a18e19a48fc7c133900b476ac581f02aaa
tree47e7ae006401b4842d7ecbb16a65e2cd503c902b
parent2e359075329f9d21eb769d01b397ce3b831f8556
raw/ioat: create separate statistics structure

Rather than having the xstats as fields inside the main driver structure,
create a separate structure type for them.

As part of the change, when updating the stats functions referring to the
stats by the old path, we can simplify them to use the id to directly index
into the stats structure, making the code shorter and simpler.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Kevin Laatz <kevin.laatz@intel.com>
Acked-by: Radu Nicolau <radu.nicolau@intel.com>
drivers/raw/ioat/ioat_rawdev.c
drivers/raw/ioat/rte_ioat_rawdev_fns.h