aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIoana Ciornei2023-05-23 16:47:43 +0300
committerPeng Fan2023-06-14 18:40:16 +0800
commit3e697627400fea74f2d4c5e63dac31eb557e9a83 (patch)
treef08de68bf7d8e7800ea88a16a6374df2f39baf57
parente533228d9ec4713c26f5e9900d27fd65847ed44b (diff)
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>
-rw-r--r--include/fsl-mc/fsl_dpmac.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/fsl-mc/fsl_dpmac.h b/include/fsl-mc/fsl_dpmac.h
index 1cea123a316..8f5e17fe222 100644
--- a/include/fsl-mc/fsl_dpmac.h
+++ b/include/fsl-mc/fsl_dpmac.h
@@ -84,7 +84,7 @@ do { \
/* cmd, param, offset, width, type, arg_name */
#define DPMAC_CMD_GET_COUNTER(cmd, type) \
- MC_CMD_OP(cmd, 1, 0, 64, enum dpmac_counter, type)
+ MC_CMD_OP(cmd, 0, 0, 8, enum dpmac_counter, type)
/* cmd, param, offset, width, type, arg_name */
#define DPMAC_RSP_GET_COUNTER(cmd, counter) \