diff options
author | Florin Coras <fcoras@cisco.com> | 2022-10-18 18:37:56 -0700 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2022-10-20 18:14:32 +0000 |
commit | f8ee39ff715ec713045af69da465ba4da8248212 (patch) | |
tree | b9625b2f2b3effaabaded647b06d6ba871d71d6a /src/vnet/udp/udp_output.c | |
parent | 20de85b6da7e0b6dd0d73bc8358e7c67564d0c36 (diff) |
udp: support for disabling tx csum
Type: feature
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I84843eb3a0a66c64cd46536624633e0dae1c4681
Diffstat (limited to 'src/vnet/udp/udp_output.c')
-rw-r--r-- | src/vnet/udp/udp_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/udp/udp_output.c b/src/vnet/udp/udp_output.c index 1252bfb3bad..3ab21d32270 100644 --- a/src/vnet/udp/udp_output.c +++ b/src/vnet/udp/udp_output.c @@ -81,7 +81,7 @@ udp_output_push_ip (vlib_main_t *vm, vlib_buffer_t *b, udp_connection_t *uc, { if (uc->c_is_ip4) vlib_buffer_push_ip4_custom (vm, b, &uc->c_lcl_ip4, &uc->c_rmt_ip4, - IP_PROTOCOL_UDP, 1 /* csum offload */, + IP_PROTOCOL_UDP, udp_csum_offload (uc), 0 /* is_df */, uc->c_dscp); else vlib_buffer_push_ip6 (vm, b, &uc->c_lcl_ip6, &uc->c_rmt_ip6, |