]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: ldpaa_eth: fix the memory layout of the dpmac_get_counters() API
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 23 May 2023 13:47:43 +0000 (16:47 +0300)
committerPeng Fan <peng.fan@nxp.com>
Wed, 14 Jun 2023 10:40:16 +0000 (18:40 +0800)
commit3e697627400fea74f2d4c5e63dac31eb557e9a83
treef08de68bf7d8e7800ea88a16a6374df2f39baf57
parente533228d9ec4713c26f5e9900d27fd65847ed44b
net: ldpaa_eth: fix the memory layout of the dpmac_get_counters() API

Each MC commands has a specific predefined memory layout that gets
interpreted by the firmware. The dpmac_get_counters() API memory layout
is wrong, thus the results returned by the command are incorrect.

Fix this by updating the offset of the counter field.

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>
include/fsl-mc/fsl_dpmac.h