From: Florin Coras Date: Mon, 10 Jan 2022 22:26:21 +0000 (-0800) Subject: session: increase postponed mq message min size X-Git-Tag: v22.06-rc0~37 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=6ac74e44e545b7003b3a7da62b35b6adffb6ccdc;p=vpp.git session: increase postponed mq message min size Reported by coverity Type: fix Signed-off-by: Florin Coras Change-Id: Ib1db0d120321b061f4c2c20117acdfb6e7dc0626 --- diff --git a/src/vnet/session/application.h b/src/vnet/session/application.h index 54a616a99b1..09737a6752d 100644 --- a/src/vnet/session/application.h +++ b/src/vnet/session/application.h @@ -36,7 +36,7 @@ typedef struct app_wrk_postponed_msg_ u8 ring; u8 is_sapi; int fd; - u8 data[SESSION_CTRL_MSG_MAX_SIZE]; + u8 data[SESSION_CTRL_MSG_TX_MAX_SIZE]; } app_wrk_postponed_msg_t; typedef struct app_worker_ diff --git a/src/vnet/session/session_types.h b/src/vnet/session/session_types.h index 0cf463d569d..8a8571bc9ee 100644 --- a/src/vnet/session/session_types.h +++ b/src/vnet/session/session_types.h @@ -22,6 +22,7 @@ #define SESSION_INVALID_INDEX ((u32)~0) #define SESSION_INVALID_HANDLE ((u64)~0) #define SESSION_CTRL_MSG_MAX_SIZE 86 +#define SESSION_CTRL_MSG_TX_MAX_SIZE 160 #define SESSION_NODE_FRAME_SIZE 128 #define foreach_session_endpoint_fields \