net: hns3: add support to query/set TX pfc_prevention_tout for ethtool with RX prevention disabled

Add ethtool support to query and configure the PFC (Priority Flow Control)
storm prevention timeout. When TX continuously sends PFC frames, the peer
end is suppressed from sending packets. If this persists, a PFC frame storm
may occur.

This feature allows configuring a timeout to prevent such storms.

Signed-off-by: Hao Chen <chenhao418@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Link: https://patch.msgid.link/20260630134043.1532431-1-shaojijie@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
Hao Chen 2026-06-30 21:40:43 +08:00 • committed by Paolo Abeni
commit d7261cdb95
6 changed files with 217 additions and 0 deletions