-
Notifications
You must be signed in to change notification settings - Fork 531
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
[202012][cherry-pick]Update orchagent to support new field pfcwd_sw_enable
#2302
[202012][cherry-pick]Update orchagent to support new field pfcwd_sw_enable
#2302
Conversation
Signed-off-by: bingwang <bingwang@microsoft.com>
Signed-off-by: bingwang <wang.bing@microsoft.com>
Signed-off-by: bingwang <wang.bing@microsoft.com>
Signed-off-by: bingwang <wang.bing@microsoft.com>
cfgmgr/buffermgr.cpp
Outdated
speed = m_speedLookup[port]; | ||
if (m_portStatusLookup.count(port) == 0) | ||
{ | ||
// admin_statue is not available yet. This can happen when notification of `PORT_QOS_MAP` table |
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.
spell check: admin_status
@@ -473,37 +573,37 @@ void BufferMgr::doTask(Consumer &consumer) | |||
} | |||
if (fvField(i) == "admin_status") | |||
{ | |||
admin_up = ("up" == fvValue(i)); |
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.
remove the declaration in L567
orchagent/portsorch.cpp
Outdated
|
||
m_portList[p.m_alias] = p; | ||
|
||
SWSS_LOG_INFO("Set PFC watchdog port id=0x%" PRIx64 ", bitmast=0x%x", portId, pfcwd_bitmask); |
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.
spell check: bitmask
@neethajohn Thanks. All fixed. |
What I did
This PR is to cherry-pick #2171 after resolving conflicts.
Currently, the entry
pfc_enable
in tablePORT_QOS_MAP
is used to specify pfc and pfc_watchdog are enabled on which queues.To avoid PFC deadlock in Dual-ToR scrnario, we are going to introduce two extra lossless queues to carry bounced back traffic.HLD.
The extra lossless queues require another two pfc_watchdogs, and the new watchdogs will be implemented by hardware due to limited resources. The hardware pfc watchdog is not covered in this PR.
To specify on which queue to enable pfc watchdog, we need to define new table
pfcwd_sw_enable
.This PR is to update orchagent to support new field
pfcwd_sw_enable
.As two extra lossless PGs (2 and 6) are to be added,
buffermgrd
is also updated in this PR to generate lossless profile for the new PGs.Why I did it
Update orchagent to support new field
pfcwd_sw_enable
.How I verified it
Verified by UT.
Test cases in sonic-mgmt is working in progress.
Details if related