[PATCH] net: stmmac: xgmac: report L3/L4 filter match count in ethtool stats

Nazle Asmade, Muhammad Nazim Amirul muhammad.nazim.amirul.nazle.asmade at altera.com
Thu Jun 4 19:04:42 PDT 2026


On 5/6/2026 3:30 am, Andrew Lunn wrote:
> On Thu, Jun 04, 2026 at 01:30:37AM -0700, muhammad.nazim.amirul.nazle.asmade at altera.com wrote:
>> From: Nazim Amirul <muhammad.nazim.amirul.nazle.asmade at altera.com>
>>
>> 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.
> 
> Are there any more bits which are missing?
> 
> dwmac4 has RDES2_L3_L4_FILT_NB_MATCH_MASK for example.
> 
>         Andrew
Hi Jakub, Andrew

Thanks for the review!

To reply on Andrew question - As per what I'm seeing, the XGMAC2 RDES2 
only defines L3FM (bit 27) and L4FM (bit 28) — there is no FILT_NB_MATCH 
equivalent in the XGMAC2 descriptor layout, unlike dwmac4 which exposes 
it via RDES2 bits [27:26]. This patch covers all filter match bits 
available in XGMAC2 RDES2.

BR,
Nazim


More information about the linux-arm-kernel mailing list