Skip to content

Setup tc redirect for Loopback interface #1604

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

Merged
merged 5 commits into from
Jun 12, 2025

Conversation

AkeelAli
Copy link
Contributor

Previously, the loopback interface would be deleted and recreated as a tap interface with the VPP linux-cp plugin. During this time, route installation may fail and result in some routes stuck in queued state. This affected a number of testcases that expect the routes to be installed. The failures may appear intermittent and the tests unstable depending on which routes were not successfully programmed. One way to verify if you encountered this problem is if this command's output is not empty, showing some routes are stuck in queue: vtysh -c "show ip route" | grep q.

In this PR, I removed the old way of recreating the loopback and instead used a tc redirect from the tap to the original loopback. I no longer see the queued routes with this change. I did a few config reloads, re-launched the topo too, and the routes appear to be successfully installed each time. The sonic-mgmt sanity suite was also run a number of times with this change and showed improvement in the stability of some tests (including bgp and acl).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

yue-fred-gao
yue-fred-gao previously approved these changes May 29, 2025
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yue-fred-gao
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yue-fred-gao yue-fred-gao merged commit 28b7285 into sonic-net:master Jun 12, 2025
15 checks passed
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.

4 participants