From 48d87bcd204c6aa226b5dbdb8c68ead8d12b1745 Mon Sep 17 00:00:00 2001 From: Junxian Huang Date: Tue, 31 Oct 2023 20:51:38 +0800 Subject: hikptool/roce: Fix the wrong maximum of gmv index The RoCE driver supports up to 256 gmv table entry, the allowed gmv index of hikptool command roce_gmv should cover this range. Signed-off-by: Junxian Huang --- net/roce/roce_gmv/hikp_roce_gmv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/roce/roce_gmv/hikp_roce_gmv.h b/net/roce/roce_gmv/hikp_roce_gmv.h index 1ef5b93..a02b960 100644 --- a/net/roce/roce_gmv/hikp_roce_gmv.h +++ b/net/roce/roce_gmv/hikp_roce_gmv.h @@ -18,7 +18,7 @@ #define ROCE_HIKP_GMV_REG_NUM 7 #define ROCE_HIKP_GMV_REG_SWICTH 2 -#define ROCE_MAX_HIKPTOOL_GMV 128 +#define ROCE_MAX_HIKPTOOL_GMV 256 struct cmd_roce_gmv_param { struct tool_target target; uint32_t gmv_index; -- 2.30.0