diff options
author | Jakub Kicinski <kuba@kernel.org> | 2024-07-12 00:07:03 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-07-13 07:16:21 +0200 |
commit | d69ba6bbaf1f606ac354e925571a54d025e32aae (patch) | |
tree | 06e8fb4031386840f96bdf6f35ab56ce5ffd9ef1 /net/mac80211/ieee80211_i.h | |
parent | net: mctp-i2c: invalidate flows immediately on TX errors (diff) | |
download | linux-d69ba6bbaf1f606ac354e925571a54d025e32aae.tar.xz linux-d69ba6bbaf1f606ac354e925571a54d025e32aae.zip |
net: ethtool: let drivers remove lost RSS contexts
RSS contexts may get lost from a device, in various extreme circumstances.
Specifically if the firmware leaks resources and resets, or crashes and
either recovers in partially working state or the crash causes a
different FW version to run - creating the context again may fail.
Drivers should do their absolute best to prevent this from happening.
When it does, however, telling user that a context exists, when it can't
possibly be used any more is counter productive. Add a helper for
drivers to discard contexts. Print an error, in the future netlink
notification will also be sent.
More robust approaches were proposed, like keeping the contexts
but marking them as "dead" (but possibly resurrected by next reset).
That may be better but it's unclear at this stage whether the
effort is worth the benefits.
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Link: https://patch.msgid.link/20240711220713.283778-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
0 files changed, 0 insertions, 0 deletions