Skip to content

Commit

Permalink
[vnet] Set MTU for the VNET bridge RIF in BITMAP implementation (#1271)
Browse files Browse the repository at this point in the history
Signed-off-by: Volodymyr Samotiy <[email protected]>
  • Loading branch information
Volodymyr Samotiy authored and abdosi committed Apr 27, 2020
1 parent 71b5eee commit b949bf7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions orchagent/vnetorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions orchagent/vnetorch.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b949bf7

Please sign in to comment.