]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: xgmac: report L3/L4 filter match count in ethtool stats
authorNazim Amirul <muhammad.nazim.amirul.nazle.asmade@altera.com>
Thu, 4 Jun 2026 08:30:37 +0000 (01:30 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Jun 2026 02:17:05 +0000 (19:17 -0700)
commit903db046d5579bef0ea699eae4b279dd6455fc9f
tree74d79b0977b7998bb0a6b04ec0b6d347d38f9bda
parent46e50367338702abe3df661df7795bdada40fef7
net: stmmac: xgmac: report L3/L4 filter match count in ethtool stats

Read the L3FM and L4FM bits from the RX descriptor status word (RDES2)
and increment the corresponding ethtool statistics counters. This allows
users to observe L3/L4 filter hit rates via ethtool -S.

Signed-off-by: Rohan G Thomas <rohan.g.thomas@altera.com>
Signed-off-by: Nazim Amirul <muhammad.nazim.amirul.nazle.asmade@altera.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/20260604083037.24407-1-muhammad.nazim.amirul.nazle.asmade@altera.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c