]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
eth: Update rmon hist range
authorMohsin Bashir <mohsin.bashr@gmail.com>
Tue, 10 Jun 2025 17:11:08 +0000 (10:11 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 Jun 2025 23:41:53 +0000 (16:41 -0700)
The fbnic driver reports up-to 11 ranges resulting in the drop of the
last range. This patch increment the value of ETHTOOL_RMON_HIST_MAX to
address this limitation.

Signed-off-by: Mohsin Bashir <mohsin.bashr@gmail.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20250610171109.1481229-2-mohsin.bashr@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/ethtool.h

index 5e0dd333ad1fb39a74dc4317d6886b4224ea661c..90da1aee6e5692dadd8bd55da14699e007588c5e 100644 (file)
@@ -536,7 +536,7 @@ struct ethtool_rmon_hist_range {
        u16 high;
 };
 
-#define ETHTOOL_RMON_HIST_MAX  10
+#define ETHTOOL_RMON_HIST_MAX  11
 
 /**
  * struct ethtool_rmon_stats - selected RMON (RFC 2819) statistics