From a9df8e40c78a1fa6a321661163c16045c0ff25fb Mon Sep 17 00:00:00 2001 From: John Lo Date: Mon, 2 Mar 2020 15:44:51 -0500 Subject: mpls: adjust mpls-frag size to account for mpls header Type: fix Signed-off-by: John Lo Change-Id: I0b3042317c58c5a4d64d82b16f62e70f0461e578 --- src/vnet/mpls/mpls_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vnet/mpls/mpls_output.c b/src/vnet/mpls/mpls_output.c index 5ede22aa410..e69a865863e 100644 --- a/src/vnet/mpls/mpls_output.c +++ b/src/vnet/mpls/mpls_output.c @@ -72,7 +72,7 @@ set_mpls_fragmentation(vlib_buffer_t * p0, ip_adjacency_t * adj0) vlib_buffer_advance (p0, vnet_buffer (p0)->mpls.mpls_hdr_length); /* IP fragmentation */ - ip_frag_set_vnet_buffer (p0, adj0[0].rewrite_header.max_l3_packet_bytes, + ip_frag_set_vnet_buffer (p0, adj0[0].rewrite_header.max_l3_packet_bytes - vnet_buffer (p0)->mpls.mpls_hdr_length, IP4_FRAG_NEXT_MPLS_OUTPUT, ((vnet_buffer (p0)->mpls.pyld_proto == DPO_PROTO_IP4) ? IP_FRAG_FLAG_IP4_HEADER:IP_FRAG_FLAG_IP6_HEADER)); -- cgit 1.2.3-korg