[pfc] pfc no-drop remains enabled even after no-drop prio are removed from qos_port_map. #1055
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
… from the port
What I did
Apply the config even for empty nodrop priorities as well(pfc_enable)so that the no-drop priorities don't get served by pfc when user disables them.
Why I did it
While applying qos map, pfc no-drop priorities were getting applied only when there is at least one no-drop priorities. If the no-drop priorities list is empty, then these setting were not pushed downwards. Hence no drop priorities were still getting served which is not correct.
How I verified it
Create a VLAN and add port P1,P2,P3 in this VLAN
Perform config qos reload to apply the pfc & qos configuration and to configure priorities 3-4 as no-drop.
Send line rate learnt traffic from P1 & P2 with dot1p 3 to P3 to create congestion at P3.
Pause frames on P1 & P2 will be observed.
Stop the traffic from P1 & P2.
Replace "pfc_enable" :"3,4" with "pfc_enable" : "" in PORT_QOS_MAP table of file /tmp/qos.json file and perform "config load /tmp/qos.json -y".
Start the traffic on P1 & P2 again
Without the fix, Pause frames were getting generated.
With the fix ,Pause frames on P1 & P2 are not observed for priority 3.
Details if related