Messages in this thread Patch in this message | | | From | Guangbin Huang <> | Subject | [PATCH net-next 1/2] devlink: expand __DEVLINK_PARAM_MAX_STRING_VALUE to 256 | Date | Fri, 23 Sep 2022 09:38:17 +0800 |
| |
From: Hao Chen <chenhao418@huawei.com>
The string length of devlink parameter is limited to 32, it may be not enough if there are several parameters in one string, so expand it to 256.
Signed-off-by: Hao Chen <chenhao418@huawei.com> Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com> --- include/net/devlink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/net/devlink.h b/include/net/devlink.h index 264aa98e6da6..52aaafc92f56 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -400,7 +400,7 @@ typedef u64 devlink_resource_occ_get_t(void *priv); #define DEVLINK_RESOURCE_GENERIC_NAME_PORTS "physical_ports" -#define __DEVLINK_PARAM_MAX_STRING_VALUE 32 +#define __DEVLINK_PARAM_MAX_STRING_VALUE 256 enum devlink_param_type { DEVLINK_PARAM_TYPE_U8, DEVLINK_PARAM_TYPE_U16, -- 2.33.0
| |