-
Notifications
You must be signed in to change notification settings - Fork 558
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
[DPU] Simplify SWSS initialization to meet DPU requirements. #2440
Conversation
Signed-off-by: Oleksandr Ivantsiv <oivantsiv@nvidia.com>
orchagent/orchdaemon.cpp
Outdated
vector<string> p4rt_tables = {APP_P4RT_TABLE_NAME}; | ||
gP4Orch = new P4Orch(m_applDb, p4rt_tables, vrf_orch, gCoppOrch); | ||
m_orchList.push_back(gP4Orch); | ||
if (gMySwitchType != "dpu") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this applicable? This should not be impacting even if initialized, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After reworking of P4Orch this is not needed anymore.
portsyncd/linksync.cpp
Outdated
/* In DPU SONiC this step is not needed as netdevs in Kernel are created in the early stage of the syncd service start, | ||
* when driver is loading. And exist while the driver is not unloaded. | ||
*/ | ||
if (g_switchType != "dpu") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just add the check and return if dpu
. If other platform require this in future, lets address it accordingly.
@prsunny I resolved all the comments. Can you please take a look? |
* [DPU] Simplify SWSS initialization to meet DPU requirements. Signed-off-by: Oleksandr Ivantsiv <oivantsiv@nvidia.com>
…et#2440) * [DPU] Simplify SWSS initialization to meet DPU requirements. Signed-off-by: Oleksandr Ivantsiv <oivantsiv@nvidia.com>
…et#2440) * [DPU] Simplify SWSS initialization to meet DPU requirements. Signed-off-by: Oleksandr Ivantsiv <oivantsiv@nvidia.com>
…et#2440) * [DPU] Simplify SWSS initialization to meet DPU requirements. Signed-off-by: Oleksandr Ivantsiv <oivantsiv@nvidia.com>
…et#2440) * [DPU] Simplify SWSS initialization to meet DPU requirements. Signed-off-by: Oleksandr Ivantsiv <oivantsiv@nvidia.com>
sonic-net#2440) * [DPU] Simplify SWSS initialization to meet DPU requirements. Signed-off-by: Oleksandr Ivantsiv <oivantsiv@nvidia.com>
Signed-off-by: Oleksandr Ivantsiv oivantsiv@nvidia.com
What I did
DPU supports features subset from Switch SONiC. To allow SWSS to run on DPU the initialization flow was simplified. During the start of the SWSS applications unsupported attributes are not configured. The list of SAI attributes supported by DPU is documented in DASH HLD.
Why I did it
To allow the SWSS application to run on DPU.
How I verified it
Run SWSS on DPU platform. Verify that unsupported attributes are not called.
Run SONiC as VS set as switch type DPU
Details if related