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/vcl/vppcom.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/vcl/vppcom.h')
-rw-r--r-- | src/vcl/vppcom.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/vcl/vppcom.h b/src/vcl/vppcom.h index 08724cc31d8..c9f7b8b9403 100644 --- a/src/vcl/vppcom.h +++ b/src/vcl/vppcom.h @@ -63,6 +63,23 @@ extern "C" VPPCOM_IS_IP4, } vppcom_is_ip4_t; +#define VCL_UDP_OPTS_BASE (VPPCOM_PROTO_UDP << 16) +#define VCL_UDP_SEGMENT (VCL_UDP_OPTS_BASE + 0) + + typedef struct vppcom_endpt_tlv_t_ + { + uint32_t data_type; + uint32_t data_len; + union + { + /* data */ + uint64_t value; + uint32_t as_u32[2]; + uint16_t as_u16[4]; + uint8_t as_u8[8]; + }; + } vppcom_endpt_tlv_t; + typedef struct vppcom_endpt_t_ { uint8_t is_cut_thru; @@ -70,6 +87,7 @@ extern "C" uint8_t *ip; uint16_t port; uint64_t parent_handle; + vppcom_endpt_tlv_t app_data; } vppcom_endpt_t; typedef uint32_t vcl_session_handle_t; |