Skip to content

[orchagent] Add PFC shared headroom support#368

Merged
yxieca merged 1 commit intosonic-net:masterfrom
vharish02:shared-headroom
Nov 7, 2017
Merged

[orchagent] Add PFC shared headroom support#368
yxieca merged 1 commit intosonic-net:masterfrom
vharish02:shared-headroom

Conversation

@vharish02
Copy link
Contributor

This commit adds new code to support PFC shared headroom pool size
(Ingress) for lossless traffic feature. This is one of the requirement
for PFC support on SONiC.

Verified by using a JSON configuration file to push the XOFF parameter
to program in Hardware. XOFF parameter in JSON file translates to
SAI_BUFFER_POOL_ATTR_XOFF_SIZE which gets programmed in register
THDI_HDRM_BUFFER_CELL_LIMIT_HP. The register was programmed with correct
values.

Signed-off-by: Harish Venkatraman Harish_Venkatraman@dell.com

@vharish02
Copy link
Contributor Author

@yxieca, please review the changes

Copy link
Contributor

@yxieca yxieca left a comment

Choose a reason for hiding this comment

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

Harish,

I didn't realized you've created this PR when I created PR 369. I will close mine.

But please take a look at my change, include the definition of buffer_pool_xoff_field_name in your change set.

The reason for defining a new string is to make sure that buffer pool and buffer profile could independently change field name.

Thanks,
Ying

@vharish02
Copy link
Contributor Author

Hi Ying,

I will make the change and resend it.

Thanks,
V Harish

This commit adds new code to support PFC shared headroom pool size
(Ingress) for lossless traffic feature.  This is one of the requirement
for PFC support on SONiC. Included the defintion of buffer_pool_xoff_field_name

Verified by using a JSON configuration file to push the XOFF parameter
to program in Hardware.  XOFF parameter in JSON file translates to
SAI_BUFFER_POOL_ATTR_XOFF_SIZE which gets programmed in register
THDI_HDRM_BUFFER_CELL_LIMIT_HP. The register was programmed with correct
values.

Signed-off-by: Harish Venkatraman <Harish_Venkatraman@dell.com>
@yxieca yxieca merged commit 26d37d1 into sonic-net:master Nov 7, 2017
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
ecnconfig check against invalid argument value (sonic-net#343)
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
Signed-off-by: Ying Xie <ying.xie@microsoft.com>
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
This commit adds new code to support PFC shared headroom pool size
(Ingress) for lossless traffic feature.  This is one of the requirement
for PFC support on SONiC. Included the defintion of buffer_pool_xoff_field_name

Verified by using a JSON configuration file to push the XOFF parameter
to program in Hardware.  XOFF parameter in JSON file translates to
SAI_BUFFER_POOL_ATTR_XOFF_SIZE which gets programmed in register
THDI_HDRM_BUFFER_CELL_LIMIT_HP. The register was programmed with correct
values.

Signed-off-by: Harish Venkatraman <Harish_Venkatraman@dell.com>
jianyuewu pushed a commit to jianyuewu/sonic-swss that referenced this pull request Dec 24, 2025
* Fix swss::exec return value
* Enum return values
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.

2 participants