Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vnet] Set MTU for the VNET bridge RIF in BITMAP implementation #1271

Merged
merged 1 commit into from
Apr 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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