ipsec: Default the IPSec interface MTU to 9000 01/32401/2
authorNeale Ranns <neale@graphiant.com>
Thu, 20 May 2021 16:03:59 +0000 (16:03 +0000)
committerDamjan Marion <dmarion@me.com>
Fri, 21 May 2021 06:24:50 +0000 (06:24 +0000)
Type: fix

The same value is used for other tunnel types.

Signed-off-by: Neale Ranns <neale@graphiant.com>
Change-Id: I6593001918993d65f127cc9f716c95e932239842

src/vnet/ipsec/ipsec_itf.c

index 5f04fcf..ae8e342 100644 (file)
@@ -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);