From 382905381d547a3c050ec23ef9bd611bb2dea67a Mon Sep 17 00:00:00 2001 From: Volodymyr Samotiy Date: Thu, 23 Apr 2020 21:01:09 +0300 Subject: [PATCH] [vnet] Set MTU for the VNET bridge RIF in BITMAP implementation (#1271) Signed-off-by: Volodymyr Samotiy --- orchagent/vnetorch.cpp | 4 ++++ orchagent/vnetorch.h | 1 + 2 files changed, 5 insertions(+) diff --git a/orchagent/vnetorch.cpp b/orchagent/vnetorch.cpp index d45c44f315..e2167fbeab 100644 --- a/orchagent/vnetorch.cpp +++ b/orchagent/vnetorch.cpp @@ -429,6 +429,10 @@ VnetBridgeInfo VNetBitmapObject::getBridgeInfoByVni(uint32_t vni, string tunnelN attr.value.oid = info.bridge_id; rif_attrs.push_back(attr); + attr.id = SAI_ROUTER_INTERFACE_ATTR_MTU; + attr.value.u32 = VNET_BITMAP_RIF_MTU; + rif_attrs.push_back(attr); + status = sai_router_intfs_api->create_router_interface( &info.rif_id, gSwitchId, diff --git a/orchagent/vnetorch.h b/orchagent/vnetorch.h index 2cd3a4d2ea..1827e8af76 100644 --- a/orchagent/vnetorch.h +++ b/orchagent/vnetorch.h @@ -17,6 +17,7 @@ #define VNET_TUNNEL_SIZE 40960 #define VNET_NEIGHBOR_MAX 0xffff #define VXLAN_ENCAP_TTL 128 +#define VNET_BITMAP_RIF_MTU 9100 extern sai_object_id_t gVirtualRouterId;