Skip to content

Increase Vrf pool to 4k#4168

Merged
prsunny merged 2 commits intosonic-net:masterfrom
ypcisco:increase_vrf_pool_to_4k
Mar 18, 2026
Merged

Increase Vrf pool to 4k#4168
prsunny merged 2 commits intosonic-net:masterfrom
ypcisco:increase_vrf_pool_to_4k

Conversation

@ypcisco
Copy link
Copy Markdown
Contributor

@ypcisco ypcisco commented Jan 29, 2026

What I did

Increase VRF pool size from 999 to 4096 to support hardware platforms with higher VRF scale capabilities.

Why I did it

Current VRF pool is limited to 999 instances (VRF_TABLE_END=2000, VRF_TABLE_START=1001) which artificially restricts VRF scale even on hardware platforms that support more VRFs.

How I verified it

Details if related

Signed-off-by: Yash Pandit <ypcisco@gmail.com>
@ypcisco ypcisco requested a review from prsunny as a code owner January 29, 2026 12:52
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@anish-n
Copy link
Copy Markdown
Contributor

anish-n commented Feb 4, 2026

Please can we also backport to 202511?

#define VRF_TABLE_END 2000
#define VRF_TABLE_END 5097
#define TABLE_LOCAL_PREF 1001 // after l3mdev-table
#define MGMT_VRF_TABLE_ID 5000
Copy link
Copy Markdown
Contributor

@venkatmahalingam venkatmahalingam Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have updated the current PR and created following PRs to track the updated mgmt vrf table id :
sonic-net/sonic-buildimage#25504
sonic-net/sonic-utilities#4279

Copy link
Copy Markdown
Contributor

@venkatmahalingam venkatmahalingam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address the comments.

Signed-off-by: Yash Pandit <ypcisco@gmail.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@Aravind-Subbaroyan
Copy link
Copy Markdown

@venkatmahalingam - could you please review the code? The comments are addressed

@prsunny prsunny merged commit 376b36d into sonic-net:master Mar 18, 2026
12 checks passed
StormLiangMS pushed a commit to sonic-net/sonic-buildimage that referenced this pull request Mar 19, 2026
Why I did it
The Vrf Pool is being increased to 4096 by PR : sonic-net/sonic-swss#4168
Therefore the mgmt vrf tabled id is being moved to 6000.

Signed-off-by: Yash Pandit <ypcisco@gmail.com>
qiluo-msft pushed a commit to sonic-net/sonic-utilities that referenced this pull request Mar 19, 2026
What I did
The Vrf Pool is being increased to 4096 by PR : sonic-net/sonic-swss#4168
Therefore the mgmt vrf tabled id is being moved to 6000.
Updating the "show mgmt-vrf routes" for the same.
ypcisco added a commit to ypcisco/sonic-swss that referenced this pull request Mar 25, 2026
What I did

Increase VRF pool size from 999 to 4096 to support hardware platforms with higher VRF scale capabilities.

Why I did it

Current VRF pool is limited to 999 instances (VRF_TABLE_END=2000, VRF_TABLE_START=1001) which artificially restricts VRF scale even on hardware platforms that support more VRFs.
ypcisco added a commit to ypcisco/sonic-swss that referenced this pull request Mar 25, 2026
What I did

Increase VRF pool size from 999 to 4096 to support hardware platforms with higher VRF scale capabilities.

Why I did it

Current VRF pool is limited to 999 instances (VRF_TABLE_END=2000, VRF_TABLE_START=1001) which artificially restricts VRF scale even on hardware platforms that support more VRFs.

Signed-off-by: ypcisco <ypcisco@gmail.com>
ypcisco added a commit to ypcisco/sonic-buildimage that referenced this pull request Mar 25, 2026
Why I did it
The Vrf Pool is being increased to 4096 by PR : sonic-net/sonic-swss#4168
Therefore the mgmt vrf tabled id is being moved to 6000.

Signed-off-by: Yash Pandit <ypcisco@gmail.com>
Signed-off-by: ypcisco <ypcisco@gmail.com>
ypcisco added a commit to ypcisco/sonic-utilities that referenced this pull request Mar 25, 2026
What I did
The Vrf Pool is being increased to 4096 by PR : sonic-net/sonic-swss#4168
Therefore the mgmt vrf tabled id is being moved to 6000.
Updating the "show mgmt-vrf routes" for the same.

Signed-off-by: ypcisco <ypcisco@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants