From: Neale Ranns Date: Thu, 20 May 2021 16:03:59 +0000 (+0000) Subject: ipsec: Default the IPSec interface MTU to 9000 X-Git-Tag: v21.10-rc0~29 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=5606c82c7221feba47932bd958ce1d8d9a92ace9 ipsec: Default the IPSec interface MTU to 9000 Type: fix The same value is used for other tunnel types. Signed-off-by: Neale Ranns Change-Id: I6593001918993d65f127cc9f716c95e932239842 --- diff --git a/src/vnet/ipsec/ipsec_itf.c b/src/vnet/ipsec/ipsec_itf.c index 5f04fcf0a04..ae8e3427b12 100644 --- a/src/vnet/ipsec/ipsec_itf.c +++ b/src/vnet/ipsec/ipsec_itf.c @@ -305,6 +305,7 @@ ipsec_itf_create (u32 user_instance, tunnel_mode_t mode, u32 * sw_if_indexp) t_idx); hi = vnet_get_hw_interface (vnm, hw_if_index); + vnet_sw_interface_set_mtu (vnm, hi->sw_if_index, 9000); vec_validate_init_empty (ipsec_itf_index_by_sw_if_index, hi->sw_if_index, INDEX_INVALID);