Skip to content

Packet Trimming: Asymmetric DSCP HLD#1988

Merged
r12f merged 2 commits intosonic-net:masterfrom
nazariig:master-trim-asym
Jul 7, 2025
Merged

Packet Trimming: Asymmetric DSCP HLD#1988
r12f merged 2 commits intosonic-net:masterfrom
nazariig:master-trim-asym

Conversation

@nazariig
Copy link
Collaborator

@nazariig nazariig commented May 8, 2025

Signed-off-by: Nazarii Hnydyn [email protected]

This document provides general information about Packet Trimming implementation in SONiC

In scope:

  1. Symmetric/Asymmetric DSCP remapping
PR title state context
YANG Model GitHub issue/pull request detail GitHub pull request check contexts
VS Library GitHub issue/pull request detail GitHub pull request check contexts
SWSS GitHub issue/pull request detail GitHub pull request check contexts
CLI GitHub issue/pull request detail GitHub pull request check contexts
Test Plan GitHub issue/pull request detail GitHub pull request check contexts
Test GitHub issue/pull request detail GitHub pull request check contexts

@mssonicbld
Copy link
Collaborator

/azp run

@nazariig nazariig requested a review from liat-grozovik May 8, 2025 11:30
@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@nazariig
Copy link
Collaborator Author

nazariig commented May 8, 2025

@sridhartalari you might be interested in this small extension

@nazariig nazariig requested a review from rck-innovium May 8, 2025 11:32
@nazariig
Copy link
Collaborator Author

nazariig commented May 8, 2025

@adyeung / @pavannaregundi FYI

@nazariig nazariig force-pushed the master-trim-asym branch from 93ba77b to db1cde2 Compare May 19, 2025 11:26
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@liat-grozovik
Copy link
Collaborator

@kperumalbfn can you please approve the HLD and merge it?
@nazariig there is an issue with the links to the list of PRs. Can you please fix it so we can see the status of each?

Signed-off-by: Nazarii Hnydyn <[email protected]>
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@nazariig
Copy link
Collaborator Author

@kperumalbfn can you please approve the HLD and merge it? @nazariig there is an issue with the links to the list of PRs. Can you please fix it so we can see the status of each?

@liat-grozovik done. Links have been updated

mssonicbld added a commit to mssonicbld/sonic-sairedis that referenced this pull request Jul 4, 2025
Signed-off-by: Nazarii Hnydyn <[email protected]>

**DEPENDS:**
1. sonic-net/sonic-swss#3712

**HLD:** sonic-net/SONiC#1988

Requires SAI API v1.16.1

#### A picture of a cute animal (not mandatory but encouraged)
```
      .---.        .-----------
     /     \  __  /    ------
    / /     \(  )/    -----
   //////   ' \/ `   ---
  //// / // :    : ---
 // /   /  /`    '--
//          //..\\
       ====UU====UU====
           '//||\\`
             ''``
```
@nazariig
Copy link
Collaborator Author

nazariig commented Jul 7, 2025

@prsunny / @qiluo-msft / @r12f / @kperumalbfn just a kind reminder - please help to merge the HLD

@r12f r12f merged commit 31989d8 into sonic-net:master Jul 7, 2025
1 check passed
mssonicbld added a commit to mssonicbld/sonic-buildimage that referenced this pull request Jul 10, 2025
Signed-off-by: Nazarii Hnydyn <[email protected]>

<!--
     Please make sure you've read and understood our contributing guidelines:
     https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

     ** Make sure all your commits include a signature generated with `git commit -s` **

     If this is a bug fix, make sure your description includes "fixes #xxxx", or
     "closes #xxxx" or "resolves #xxxx"

     Please provide the following information:
-->
**HLD:** sonic-net/SONiC#1988

#### Why I did it
* Added YANG model as part of Packet Trimming Asymmetric DSCP feature development

#### Work item tracking
* N/A

#### How I did it
* Added YANG model

#### How to verify it
<!--
If PR needs to be backported, then the PR must be tested against the base branch and the earliest backport release branch and provide tested image version on these two branches. For example, if the PR is requested for master, 202211 and 202012, then the requester needs to provide test results on master and 202012.
-->
1. Run Packet Trimming UTs

#### Which release branch to backport (provide reason below if selected)
<!--
- Note we only backport fixes to a release branch, *not* features!
- Please also provide a reason for the backporting below.
- e.g.
- [x] 202006
-->

- [ ] 201811
- [ ] 201911
- [ ] 202006
- [ ] 202012
- [ ] 202106
- [ ] 202111
- [ ] 202205
- [ ] 202211
- [ ] 202305

#### Tested branch (Please provide the tested image version)
<!--
- Please provide tested image version
- e.g.
- [x] 20201231.100
-->

- [x] master <!-- image version 1 -->
- [x] 202412 <!-- image version 2 -->

#### Description for the changelog
<!--
Write a short (one line) summary that describes the changes in this
pull request for inclusion in the changelog:
-->
* N/A

#### Link to config_db schema for YANG module changes
<!--
Provide a link to config_db schema for the table for which YANG model
is defined
Link should point to correct section on https://github.com/Azure/sonic-buildimage/blob/master/src/sonic-yang-models/doc/Configuration.md
-->
* [sonic-trimming.yang](https://github.com/sonic-net/sonic-buildimage/blob/master/src/sonic-yang-models/yang-models/sonic-trimming.yang)

#### A picture of a cute animal (not mandatory but encouraged)
```
      .---.        .-----------
     /     \  __  /    ------
    / /     \(  )/    -----
   //////   ' \/ `   ---
  //// / // :    : ---
 // /   /  /`    '--
//          //..\\
       ====UU====UU====
           '//||\\`
             ''``
```
mssonicbld added a commit to sonic-net/sonic-buildimage that referenced this pull request Jul 10, 2025
Signed-off-by: Nazarii Hnydyn <[email protected]>

<!--
 Please make sure you've read and understood our contributing guidelines:
 https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

 failure_prs.log skip_prs.log Make sure all your commits include a signature generated with `git commit -s` **

 If this is a bug fix, make sure your description includes "fixes #xxxx", or
 "closes #xxxx" or "resolves #xxxx"

 Please provide the following information:
-->
**HLD:** sonic-net/SONiC#1988

#### Why I did it
* Added YANG model as part of Packet Trimming Asymmetric DSCP feature development

#### Work item tracking
* N/A

#### How I did it
* Added YANG model

#### How to verify it
<!--
If PR needs to be backported, then the PR must be tested against the base branch and the earliest backport release branch and provide tested image version on these two branches. For example, if the PR is requested for master, 202211 and 202012, then the requester needs to provide test results on master and 202012.
-->
1. Run Packet Trimming UTs

#### Which release branch to backport (provide reason below if selected)
<!--
- Note we only backport fixes to a release branch, *not* features!
- Please also provide a reason for the backporting below.
- e.g.
- [x] 202006
-->

- [ ] 201811
- [ ] 201911
- [ ] 202006
- [ ] 202012
- [ ] 202106
- [ ] 202111
- [ ] 202205
- [ ] 202211
- [ ] 202305

#### Tested branch (Please provide the tested image version)
<!--
- Please provide tested image version
- e.g.
- [x] 20201231.100
-->

- [x] master <!-- image version 1 -->
- [x] 202412 <!-- image version 2 -->

#### Description for the changelog
<!--
Write a short (one line) summary that describes the changes in this
pull request for inclusion in the changelog:
-->
* N/A

#### Link to config_db schema for YANG module changes
<!--
Provide a link to config_db schema for the table for which YANG model
is defined
Link should point to correct section on https://github.com/Azure/sonic-buildimage/blob/master/src/sonic-yang-models/doc/Configuration.md
-->
* [sonic-trimming.yang](https://github.com/sonic-net/sonic-buildimage/blob/master/src/sonic-yang-models/yang-models/sonic-trimming.yang)

#### A picture of a cute animal (not mandatory but encouraged)
```
 .---. .-----------
 / \ __ / ------
 / / \( )/ -----
 ////// ' \/ ` ---
 //// / // : : ---
 // / / /` '--
// //..\\
 ====UU====UU====
 '//||\\`
 ''``
```
qiluo-msft pushed a commit to sonic-net/sonic-utilities that referenced this pull request Jul 13, 2025
HLD: sonic-net/SONiC#1988

What I did
Implemented CLI for Packet Trimming Asymmetric DSCP feature
How I did it
Integrated Packet Trimming Asymmetric DSCP interface into config and show CLI root
How to verify it
Run Packet Trimming CLI UTs
Previous command output (if the output of a command-line utility has changed)
admin@sonic:/home/admin# show switch-trimming global
+-----------------------------+---------+
| Configuration               | Value   |
+=============================+=========+
| Packet trimming size        | 256     |
+-----------------------------+---------+
| Packet trimming DSCP value  | 25      |
+-----------------------------+---------+
| Packet trimming queue index | 5       |
+-----------------------------+---------+
New command output (if the output of a command-line utility has changed)
admin@sonic:/home/admin# show switch-trimming global
+-----------------------------+---------+
| Configuration               | Value   |
+=============================+=========+
| Packet trimming size        | 256     |
+-----------------------------+---------+
| Packet trimming DSCP value  | from-tc |
+-----------------------------+---------+
| Packet trimming TC value    | 10      |
+-----------------------------+---------+
| Packet trimming queue index | 5       |
+-----------------------------+---------+
mssonicbld added a commit to mssonicbld/sonic-utilities.msft that referenced this pull request Jul 13, 2025
Signed-off-by: Nazarii Hnydyn <[email protected]>

<!--
    Please make sure you've read and understood our contributing guidelines:
    https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

    ** Make sure all your commits include a signature generated with `git commit -s` **

    If this is a bug fix, make sure your description includes "closes #xxxx",
    "fixes #xxxx" or "resolves #xxxx" so that GitHub automatically closes the related
    issue when the PR is merged.

    If you are adding/modifying/removing any command or utility script, please also
    make sure to add/modify/remove any unit tests from the tests
    directory as appropriate.

    If you are modifying or removing an existing 'show', 'config' or 'sonic-clear'
    subcommand, or you are adding a new subcommand, please make sure you also
    update the Command Line Reference Guide (doc/Command-Reference.md) to reflect
    your changes.

    Please provide the following information:
-->

**HLD:** sonic-net/SONiC#1988

#### What I did
* Implemented CLI for Packet Trimming Asymmetric DSCP feature

#### How I did it
* Integrated Packet Trimming Asymmetric DSCP interface into `config` and `show` CLI root

#### How to verify it
1. Run Packet Trimming CLI UTs

#### Previous command output (if the output of a command-line utility has changed)
```
admin@sonic:/home/admin# show switch-trimming global
+-----------------------------+---------+
| Configuration               | Value   |
+=============================+=========+
| Packet trimming size        | 256     |
+-----------------------------+---------+
| Packet trimming DSCP value  | 25      |
+-----------------------------+---------+
| Packet trimming queue index | 5       |
+-----------------------------+---------+
```

#### New command output (if the output of a command-line utility has changed)
```
admin@sonic:/home/admin# show switch-trimming global
+-----------------------------+---------+
| Configuration               | Value   |
+=============================+=========+
| Packet trimming size        | 256     |
+-----------------------------+---------+
| Packet trimming DSCP value  | from-tc |
+-----------------------------+---------+
| Packet trimming TC value    | 10      |
+-----------------------------+---------+
| Packet trimming queue index | 5       |
+-----------------------------+---------+
```

#### A picture of a cute animal (not mandatory but encouraged)
```
      .---.        .-----------
     /     \  __  /    ------
    / /     \(  )/    -----
   //////   ' \/ `   ---
  //// / // :    : ---
 // /   /  /`    '--
//          //..\\
       ====UU====UU====
           '//||\\`
             ''``
```
mssonicbld added a commit to Azure/sonic-utilities.msft that referenced this pull request Jul 13, 2025
Signed-off-by: Nazarii Hnydyn <[email protected]>

<!--
 Please make sure you've read and understood our contributing guidelines:
 https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

 failure_prs.log Make sure all your commits include a signature generated with `git commit -s` **

 If this is a bug fix, make sure your description includes "closes #xxxx",
 "fixes #xxxx" or "resolves #xxxx" so that GitHub automatically closes the related
 issue when the PR is merged.

 If you are adding/modifying/removing any command or utility script, please also
 make sure to add/modify/remove any unit tests from the tests
 directory as appropriate.

 If you are modifying or removing an existing 'show', 'config' or 'sonic-clear'
 subcommand, or you are adding a new subcommand, please make sure you also
 update the Command Line Reference Guide (doc/Command-Reference.md) to reflect
 your changes.

 Please provide the following information:
-->

**HLD:** sonic-net/SONiC#1988

#### What I did
* Implemented CLI for Packet Trimming Asymmetric DSCP feature

#### How I did it
* Integrated Packet Trimming Asymmetric DSCP interface into `config` and `show` CLI root

#### How to verify it
1. Run Packet Trimming CLI UTs

#### Previous command output (if the output of a command-line utility has changed)
```
admin@sonic:/home/admin# show switch-trimming global
+-----------------------------+---------+
| Configuration | Value |
+=============================+=========+
| Packet trimming size | 256 |
+-----------------------------+---------+
| Packet trimming DSCP value | 25 |
+-----------------------------+---------+
| Packet trimming queue index | 5 |
+-----------------------------+---------+
```

#### New command output (if the output of a command-line utility has changed)
```
admin@sonic:/home/admin# show switch-trimming global
+-----------------------------+---------+
| Configuration | Value |
+=============================+=========+
| Packet trimming size | 256 |
+-----------------------------+---------+
| Packet trimming DSCP value | from-tc |
+-----------------------------+---------+
| Packet trimming TC value | 10 |
+-----------------------------+---------+
| Packet trimming queue index | 5 |
+-----------------------------+---------+
```

#### A picture of a cute animal (not mandatory but encouraged)
```
 .---. .-----------
 / \ __ / ------
 / / \( )/ -----
 ////// ' \/ ` ---
 //// / // : : ---
 // / / /` '--
// //..\\
 ====UU====UU====
 '//||\\`
 ''``
```
mssonicbld added a commit to mssonicbld/sonic-utilities that referenced this pull request Jul 14, 2025
Signed-off-by: Nazarii Hnydyn <[email protected]>

<!--
    Please make sure you've read and understood our contributing guidelines:
    https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

    ** Make sure all your commits include a signature generated with `git commit -s` **

    If this is a bug fix, make sure your description includes "closes #xxxx",
    "fixes #xxxx" or "resolves #xxxx" so that GitHub automatically closes the related
    issue when the PR is merged.

    If you are adding/modifying/removing any command or utility script, please also
    make sure to add/modify/remove any unit tests from the tests
    directory as appropriate.

    If you are modifying or removing an existing 'show', 'config' or 'sonic-clear'
    subcommand, or you are adding a new subcommand, please make sure you also
    update the Command Line Reference Guide (doc/Command-Reference.md) to reflect
    your changes.

    Please provide the following information:
-->

**HLD:** sonic-net/SONiC#1988

#### What I did
* Implemented CLI for Packet Trimming Asymmetric DSCP feature

#### How I did it
* Integrated Packet Trimming Asymmetric DSCP interface into `config` and `show` CLI root

#### How to verify it
1. Run Packet Trimming CLI UTs

#### Previous command output (if the output of a command-line utility has changed)
```
admin@sonic:/home/admin# show switch-trimming global
+-----------------------------+---------+
| Configuration               | Value   |
+=============================+=========+
| Packet trimming size        | 256     |
+-----------------------------+---------+
| Packet trimming DSCP value  | 25      |
+-----------------------------+---------+
| Packet trimming queue index | 5       |
+-----------------------------+---------+
```

#### New command output (if the output of a command-line utility has changed)
```
admin@sonic:/home/admin# show switch-trimming global
+-----------------------------+---------+
| Configuration               | Value   |
+=============================+=========+
| Packet trimming size        | 256     |
+-----------------------------+---------+
| Packet trimming DSCP value  | from-tc |
+-----------------------------+---------+
| Packet trimming TC value    | 10      |
+-----------------------------+---------+
| Packet trimming queue index | 5       |
+-----------------------------+---------+
```

#### A picture of a cute animal (not mandatory but encouraged)
```
      .---.        .-----------
     /     \  __  /    ------
    / /     \(  )/    -----
   //////   ' \/ `   ---
  //// / // :    : ---
 // /   /  /`    '--
//          //..\\
       ====UU====UU====
           '//||\\`
             ''``
```
mssonicbld added a commit to sonic-net/sonic-utilities that referenced this pull request Jul 14, 2025
Signed-off-by: Nazarii Hnydyn <[email protected]>

<!--
 Please make sure you've read and understood our contributing guidelines:
 https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

 failure_prs.log skip_prs.log Make sure all your commits include a signature generated with `git commit -s` **

 If this is a bug fix, make sure your description includes "closes #xxxx",
 "fixes #xxxx" or "resolves #xxxx" so that GitHub automatically closes the related
 issue when the PR is merged.

 If you are adding/modifying/removing any command or utility script, please also
 make sure to add/modify/remove any unit tests from the tests
 directory as appropriate.

 If you are modifying or removing an existing 'show', 'config' or 'sonic-clear'
 subcommand, or you are adding a new subcommand, please make sure you also
 update the Command Line Reference Guide (doc/Command-Reference.md) to reflect
 your changes.

 Please provide the following information:
-->

**HLD:** sonic-net/SONiC#1988

#### What I did
* Implemented CLI for Packet Trimming Asymmetric DSCP feature

#### How I did it
* Integrated Packet Trimming Asymmetric DSCP interface into `config` and `show` CLI root

#### How to verify it
1. Run Packet Trimming CLI UTs

#### Previous command output (if the output of a command-line utility has changed)
```
admin@sonic:/home/admin# show switch-trimming global
+-----------------------------+---------+
| Configuration | Value |
+=============================+=========+
| Packet trimming size | 256 |
+-----------------------------+---------+
| Packet trimming DSCP value | 25 |
+-----------------------------+---------+
| Packet trimming queue index | 5 |
+-----------------------------+---------+
```

#### New command output (if the output of a command-line utility has changed)
```
admin@sonic:/home/admin# show switch-trimming global
+-----------------------------+---------+
| Configuration | Value |
+=============================+=========+
| Packet trimming size | 256 |
+-----------------------------+---------+
| Packet trimming DSCP value | from-tc |
+-----------------------------+---------+
| Packet trimming TC value | 10 |
+-----------------------------+---------+
| Packet trimming queue index | 5 |
+-----------------------------+---------+
```

#### A picture of a cute animal (not mandatory but encouraged)
```
 .---. .-----------
 / \ __ / ------
 / / \( )/ -----
 ////// ' \/ ` ---
 //// / // : : ---
 // / / /` '--
// //..\\
 ====UU====UU====
 '//||\\`
 ''``
```
prsunny pushed a commit to sonic-net/sonic-swss that referenced this pull request Jul 14, 2025
DEPENDS:

[trim]: Add Packet Trimming Asym DSCP to VS lib sonic-sairedis#1610
[trim]: Add Packet Trimming to OA #3594
HLD: sonic-net/SONiC#1988

What I did

Implemented Packet Trimming Asymmetric DSCP feature
Why I did it

Implementation is done according to the Packet Trimming Asymmetric DSCP HLD
mssonicbld added a commit to mssonicbld/sonic-swss that referenced this pull request Jul 15, 2025
Signed-off-by: Nazarii Hnydyn <[email protected]>

<!--
Please make sure you have read and understood the contribution guildlines:
https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

1. Make sure your commit includes a signature generted with `git commit -s`
2. Make sure your commit title follows the correct format: [component]: description
3. Make sure your commit message contains enough details about the change and related tests
4. Make sure your pull request adds related reviewers, asignees, labels

Please also provide the following information in this pull request:
-->

**DEPENDS:**
1. sonic-net/sonic-sairedis#1610
2. sonic-net#3594

**HLD:** sonic-net/SONiC#1988

**What I did**
* Implemented Packet Trimming Asymmetric DSCP feature

**Why I did it**
* Implementation is done according to the Packet Trimming Asymmetric DSCP HLD

**How I verified it**
1. Run Packet Trimming VS UTs

**Details if related**
* N/A

#### A picture of a cute animal (not mandatory but encouraged)
```
      .---.        .-----------
     /     \  __  /    ------
    / /     \(  )/    -----
   //////   ' \/ `   ---
  //// / // :    : ---
 // /   /  /`    '--
//          //..\\
       ====UU====UU====
           '//||\\`
             ''``
```
mssonicbld added a commit to sonic-net/sonic-swss that referenced this pull request Jul 15, 2025
Signed-off-by: Nazarii Hnydyn <[email protected]>

<!--
Please make sure you have read and understood the contribution guildlines:
https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

1. Make sure your commit includes a signature generted with `git commit -s`
2. Make sure your commit title follows the correct format: [component]: description
3. Make sure your commit message contains enough details about the change and related tests
4. Make sure your pull request adds related reviewers, asignees, labels

Please also provide the following information in this pull request:
-->

**DEPENDS:**
1. sonic-net/sonic-sairedis#1610
2. #3594

**HLD:** sonic-net/SONiC#1988

**What I did**
* Implemented Packet Trimming Asymmetric DSCP feature

**Why I did it**
* Implementation is done according to the Packet Trimming Asymmetric DSCP HLD

**How I verified it**
1. Run Packet Trimming VS UTs

**Details if related**
* N/A

#### A picture of a cute animal (not mandatory but encouraged)
```
 .---. .-----------
 / \ __ / ------
 / / \( )/ -----
 ////// ' \/ ` ---
 //// / // : : ---
 // / / /` '--
// //..\\
 ====UU====UU====
 '//||\\`
 ''``
```
mssonicbld added a commit to sonic-net/sonic-sairedis that referenced this pull request Jul 22, 2025
Signed-off-by: Nazarii Hnydyn <[email protected]>

**DEPENDS:**
1. sonic-net/sonic-swss#3712

**HLD:** sonic-net/SONiC#1988

Requires SAI API v1.16.1

#### A picture of a cute animal (not mandatory but encouraged)
```
 .---. .-----------
 / \ __ / ------
 / / \( )/ -----
 ////// ' \/ ` ---
 //// / // : : ---
 // / / /` '--
// //..\\
 ====UU====UU====
 '//||\\`
 ''``
```
bobby-nexthop pushed a commit to bobby-nexthop/sonic-swss that referenced this pull request Jul 24, 2025
DEPENDS:

[trim]: Add Packet Trimming Asym DSCP to VS lib sonic-sairedis#1610
[trim]: Add Packet Trimming to OA sonic-net#3594
HLD: sonic-net/SONiC#1988

What I did

Implemented Packet Trimming Asymmetric DSCP feature
Why I did it

Implementation is done according to the Packet Trimming Asymmetric DSCP HLD
mssonicbld added a commit to mssonicbld/sonic-swss.msft that referenced this pull request Aug 3, 2025
Signed-off-by: Nazarii Hnydyn <[email protected]>

<!--
Please make sure you have read and understood the contribution guildlines:
https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

1. Make sure your commit includes a signature generted with `git commit -s`
2. Make sure your commit title follows the correct format: [component]: description
3. Make sure your commit message contains enough details about the change and related tests
4. Make sure your pull request adds related reviewers, asignees, labels

Please also provide the following information in this pull request:
-->

**DEPENDS:**
1. sonic-net/sonic-sairedis#1610
2. sonic-net/sonic-swss#3594

**HLD:** sonic-net/SONiC#1988

**What I did**
* Implemented Packet Trimming Asymmetric DSCP feature

**Why I did it**
* Implementation is done according to the Packet Trimming Asymmetric DSCP HLD

**How I verified it**
1. Run Packet Trimming VS UTs

**Details if related**
* N/A

#### A picture of a cute animal (not mandatory but encouraged)
```
      .---.        .-----------
     /     \  __  /    ------
    / /     \(  )/    -----
   //////   ' \/ `   ---
  //// / // :    : ---
 // /   /  /`    '--
//          //..\\
       ====UU====UU====
           '//||\\`
             ''``
```
prabhataravind pushed a commit to Azure/sonic-swss.msft that referenced this pull request Aug 4, 2025
Signed-off-by: Nazarii Hnydyn <[email protected]>

<!--
Please make sure you have read and understood the contribution guildlines:
https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

1. Make sure your commit includes a signature generted with `git commit -s`
2. Make sure your commit title follows the correct format: [component]: description
3. Make sure your commit message contains enough details about the change and related tests
4. Make sure your pull request adds related reviewers, asignees, labels

Please also provide the following information in this pull request:
-->

**DEPENDS:**
1. sonic-net/sonic-sairedis#1610
2. sonic-net/sonic-swss#3594

**HLD:** sonic-net/SONiC#1988

**What I did**
* Implemented Packet Trimming Asymmetric DSCP feature

**Why I did it**
* Implementation is done according to the Packet Trimming Asymmetric DSCP HLD

**How I verified it**
1. Run Packet Trimming VS UTs

**Details if related**
* N/A

#### A picture of a cute animal (not mandatory but encouraged)
```
      .---.        .-----------
     /     \  __  /    ------
    / /     \(  )/    -----
   //////   ' \/ `   ---
  //// / // :    : ---
 // /   /  /`    '--
//          //..\\
       ====UU====UU====
           '//||\\`
             ''``
```
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
DEPENDS:

[trim]: Add Packet Trimming Asym DSCP to VS lib sonic-sairedis#1610
[trim]: Add Packet Trimming to OA sonic-net#3594
HLD: sonic-net/SONiC#1988

What I did

Implemented Packet Trimming Asymmetric DSCP feature
Why I did it

Implementation is done according to the Packet Trimming Asymmetric DSCP HLD
balanokia pushed a commit to balanokia/sonic-swss that referenced this pull request Nov 17, 2025
DEPENDS:

[trim]: Add Packet Trimming Asym DSCP to VS lib sonic-sairedis#1610
[trim]: Add Packet Trimming to OA sonic-net#3594
HLD: sonic-net/SONiC#1988

What I did

Implemented Packet Trimming Asymmetric DSCP feature
Why I did it

Implementation is done according to the Packet Trimming Asymmetric DSCP HLD
YairRaviv pushed a commit to YairRaviv/sonic-utilities that referenced this pull request Jan 12, 2026
HLD: sonic-net/SONiC#1988

What I did
Implemented CLI for Packet Trimming Asymmetric DSCP feature
How I did it
Integrated Packet Trimming Asymmetric DSCP interface into config and show CLI root
How to verify it
Run Packet Trimming CLI UTs
Previous command output (if the output of a command-line utility has changed)
admin@sonic:/home/admin# show switch-trimming global
+-----------------------------+---------+
| Configuration               | Value   |
+=============================+=========+
| Packet trimming size        | 256     |
+-----------------------------+---------+
| Packet trimming DSCP value  | 25      |
+-----------------------------+---------+
| Packet trimming queue index | 5       |
+-----------------------------+---------+
New command output (if the output of a command-line utility has changed)
admin@sonic:/home/admin# show switch-trimming global
+-----------------------------+---------+
| Configuration               | Value   |
+=============================+=========+
| Packet trimming size        | 256     |
+-----------------------------+---------+
| Packet trimming DSCP value  | from-tc |
+-----------------------------+---------+
| Packet trimming TC value    | 10      |
+-----------------------------+---------+
| Packet trimming queue index | 5       |
+-----------------------------+---------+
theasianpianist pushed a commit to theasianpianist/sonic-swss that referenced this pull request Feb 4, 2026
DEPENDS:

[trim]: Add Packet Trimming Asym DSCP to VS lib sonic-sairedis#1610
[trim]: Add Packet Trimming to OA sonic-net#3594
HLD: sonic-net/SONiC#1988

What I did

Implemented Packet Trimming Asymmetric DSCP feature
Why I did it

Implementation is done according to the Packet Trimming Asymmetric DSCP HLD

Signed-off-by: Lawrence Lee <[email protected]>
baorliu pushed a commit to baorliu/sonic-swss that referenced this pull request Feb 23, 2026
DEPENDS:

[trim]: Add Packet Trimming Asym DSCP to VS lib sonic-sairedis#1610
[trim]: Add Packet Trimming to OA sonic-net#3594
HLD: sonic-net/SONiC#1988

What I did

Implemented Packet Trimming Asymmetric DSCP feature
Why I did it

Implementation is done according to the Packet Trimming Asymmetric DSCP HLD

Signed-off-by: Baorong Liu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants