]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bnxt_en: Implement ethtool .set_tunable() for ETHTOOL_PFC_PREVENTION_TOUT
authorMichael Chan <michael.chan@broadcom.com>
Wed, 17 Sep 2025 04:08:39 +0000 (21:08 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 18 Sep 2025 11:09:43 +0000 (13:09 +0200)
commitfa18932afb29b51530508f28adcc824a8c00b712
tree3c62555d295ebd0fe17f3c712db302e626ff88e6
parent6684b91d04b408843bd65e2120f6db2159e4f40b
bnxt_en: Implement ethtool .set_tunable() for ETHTOOL_PFC_PREVENTION_TOUT

Support the setting of the tunable if it is supported by firmware.
The supported range is 0 to the maximum msec value reported by
firmware.  PFC_STORM_PREVENTION_AUTO is also supported and 0 means it
is disabled.

Reviewed-by: Andy Gospodarek <andrew.gospodarek@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://patch.msgid.link/20250917040839.1924698-11-michael.chan@broadcom.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
include/linux/bnxt/hsi.h