commit | d6733a42ca95c59fcf5e772fa039a64b1bdd0477 | [log] [tgz] |
---|---|---|
author | Ioana Ciornei <ioana.ciornei@nxp.com> | Tue May 23 16:47:44 2023 +0300 |
committer | Peng Fan <peng.fan@nxp.com> | Wed Jun 14 18:40:16 2023 +0800 |
tree | 430e4914fa8e32ca2ee7a49c2496d9d4fb64048b | |
parent | ae0638f60c67761cede65dcf66974f04229269af [diff] |
net: ldpaa_eth: transform dpni_statistics from a struct to a union In order to simplify code, dpni_statistics can be written as a union. Using the raw accessors we can just loop through all the statistics from a page without trying to access each an every one independently. Make this change to a union. Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>