[hns3-0114]net: hns3: fix ETS bandwidth validation bug
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kunpeng920 |
Fix Released
|
Undecided
|
Unassigned | ||
Ubuntu-18.04 |
Fix Released
|
Undecided
|
Taihsiang Ho | ||
Ubuntu-18.04-hwe |
Fix Released
|
Undecided
|
Unassigned | ||
Ubuntu-19.10 |
Fix Released
|
Undecided
|
Unassigned | ||
Ubuntu-20.04 |
Fix Released
|
Undecided
|
Unassigned | ||
Upstream-kernel |
Fix Released
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Eoan |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When a TC's PFC is disabled or enabled, the RX private buffer for
this TC need to be changed too, otherwise this may cause packet
dropped problem.
[Impact]
The corresponding ethernet interface could not be up again.
[Fix]
cherry picked from commit c2d56897819338e
net: hns3: fix ETS bandwidth validation bug
[Test Case]
1.lldpad -d
2.lldptool -L -i eth0 adminStatus=rxtx
3.lldptool -T -i eth0 -V ETS-CFG
tsa=0:ets,
up2tc=0:
4.down device
5.up
[Regression Risk]
Low, the patch is only specific to the hns3 driver.
====== Original Bug Description ======
[Bug Description]
When a TC's PFC is disabled or enabled, the RX private buffer for
this TC need to be changed too, otherwise this may cause packet
dropped problem.
[Steps to Reproduce]
1.lldpad -d
2.lldptool -L -i eth0 adminStatus=rxtx
3.lldptool -T -i eth0 -V ETS-CFG tsa=0:ets,
4.down device
5.up
[Actual Results]
up fail
[Expected Results]
up ok
[Reproducibility]
Inevitably
[Additional information]
Hardware: D06
Firmware: NA
Kernel: NA
[Resolution]
This patch fixes it by calling hclge_buffer_alloc to reallocate
buffer when pfc_en changes.
c2d568978193 net: hns3: fix ETS bandwidth validation bug
CVE References
description: | updated |
tags: | added: ikeradar |
tags: | added: tairadar |
Changed in kunpeng920: | |
status: | New → In Progress |
tags: | removed: ikeradar |
description: | updated |
Changed in linux (Ubuntu Focal): | |
status: | Incomplete → Fix Released |
Changed in linux (Ubuntu Bionic): | |
status: | New → Incomplete |
status: | Incomplete → In Progress |
Changed in linux (Ubuntu Eoan): | |
status: | New → Fix Released |
Changed in linux (Ubuntu Bionic): | |
status: | In Progress → Fix Committed |
Changed in kunpeng920: | |
status: | In Progress → Fix Committed |
tags: | removed: tairadar |
Changed in kunpeng920: | |
status: | Fix Committed → Fix Released |
The fix landed in eoan kernel 5.3.0-40.32.
===
$ git log lp/master-next --abbrev-commit --pretty=onel
ine --grep="net: hns3: fix ETS bandwidth validation bug"
0afb5b928e17 net: hns3: fix ETS bandwidth validation bug
$ git tag --contains 0afb5b928e17 raspi2- 5.3.0-1018. 20 raspi2- 5.3.0-1019. 21
Ubuntu-5.3.0-40.32
Ubuntu-5.3.0-41.33
Ubuntu-5.3.0-42.34
Ubuntu-
Ubuntu-
$ rmadison -asource linux
<skip>
linux | 5.3.0-18.19 | eoan | source
linux | 5.3.0-40.32 | eoan-security | source
linux | 5.3.0-40.32 | eoan-updates | source
linux | 5.3.0-42.34 | eoan-proposed | source
<skip>