diff options
author | Dou Chao <chao.dou@intel.com> | 2022-11-29 19:41:34 +0800 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2022-12-14 16:57:14 +0000 |
commit | 243a0433ff05a37113d6890bbeb163bbea033687 (patch) | |
tree | 1ac3ec8b63ed22649a30f1c6666ac5460a1ff9b3 /src/vnet/session/session_types.h | |
parent | 4b9935cd54e5ca31c192cb9113e3056016f0b728 (diff) |
vcl: enable gso for 'sendmsg' in LDP mode.
Some upon apps(e.g. Nginx-quic) package it's several protocol buffers into a struct msg
which is a combination of gso_buffer and gso_size.
but if HostStack regardless the gso_size to the buffer and split the buffer with default mss,
that cause peer client failed on parsing the package.
Type: improvement
Signed-off-by: Dou Chao <chao.dou@intel.com>
Change-Id: I805eb642be826038ba96d1b85dad8ec0c0f6c459
Signed-off-by: Dou Chao <chao.dou@intel.com>
Diffstat (limited to 'src/vnet/session/session_types.h')
-rw-r--r-- | src/vnet/session/session_types.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/session/session_types.h b/src/vnet/session/session_types.h index 95a88c5ab6e..dcbbd72ef8e 100644 --- a/src/vnet/session/session_types.h +++ b/src/vnet/session/session_types.h @@ -461,12 +461,12 @@ typedef struct session_dgram_header_ u16 rmt_port; u16 lcl_port; u8 is_ip4; + u16 gso_size; } __clib_packed session_dgram_hdr_t; #define SESSION_CONN_ID_LEN 37 -#define SESSION_CONN_HDR_LEN 45 - -STATIC_ASSERT (sizeof (session_dgram_hdr_t) == (SESSION_CONN_ID_LEN + 8), +#define SESSION_CONN_HDR_LEN 47 +STATIC_ASSERT (sizeof (session_dgram_hdr_t) == (SESSION_CONN_ID_LEN + 10), "session conn id wrong length"); #define foreach_session_error \ |