* [PATCH] net: igb: expose rx_dropped via ethtool -S
@ 2025-08-28 11:42 Ranganath V N
2025-08-28 13:18 ` Vadim Fedorenko
2025-08-28 15:48 ` [Intel-wired-lan] " Loktionov, Aleksandr
0 siblings, 2 replies; 4+ messages in thread
From: Ranganath V N @ 2025-08-28 11:42 UTC (permalink / raw)
To: anthony.l.nguyen, przemyslaw.kitszel, andrew+netdev, davem,
edumazet, kuba, pabeni, intel-wired-lan, netdev, linux-kernel
Cc: linux-kernel-mentees, skhan, Ranganath V N
Currently the igb driver does not reports RX dropped
packets in the ethtool -S statistics output, even though
this information is already available in struct
rtnl_link_stats64.
This patch adds rx_dropped, so users can monitor dropped
packet counts directly with ethtool.
Signed-off-by: Ranganath V N <vnranganath.20@gmail.com>
---
drivers/net/ethernet/intel/igb/igb_ethtool.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c b/drivers/net/ethernet/intel/igb/igb_ethtool.c
index 92ef33459aec..3c6289e80ba0 100644
--- a/drivers/net/ethernet/intel/igb/igb_ethtool.c
+++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c
@@ -81,6 +81,7 @@ static const struct igb_stats igb_gstrings_stats[] = {
}
static const struct igb_stats igb_gstrings_net_stats[] = {
IGB_NETDEV_STAT(rx_errors),
+ IGB_NETDEV_STAT(rx_dropped),
IGB_NETDEV_STAT(tx_errors),
IGB_NETDEV_STAT(tx_dropped),
IGB_NETDEV_STAT(rx_length_errors),
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] net: igb: expose rx_dropped via ethtool -S
2025-08-28 11:42 [PATCH] net: igb: expose rx_dropped via ethtool -S Ranganath V N
@ 2025-08-28 13:18 ` Vadim Fedorenko
2025-08-28 19:25 ` Ranganath V N
2025-08-28 15:48 ` [Intel-wired-lan] " Loktionov, Aleksandr
1 sibling, 1 reply; 4+ messages in thread
From: Vadim Fedorenko @ 2025-08-28 13:18 UTC (permalink / raw)
To: Ranganath V N, przemyslaw.kitszel, andrew+netdev, davem, kuba,
pabeni
Cc: linux-kernel-mentees, skhan, linux-kernel, netdev,
anthony.l.nguyen, intel-wired-lan, edumazet
On 28/08/2025 12:42, Ranganath V N wrote:
> Currently the igb driver does not reports RX dropped
> packets in the ethtool -S statistics output, even though
> this information is already available in struct
> rtnl_link_stats64.
>
> This patch adds rx_dropped, so users can monitor dropped
> packet counts directly with ethtool.
>
> Signed-off-by: Ranganath V N <vnranganath.20@gmail.com>
> ---
> drivers/net/ethernet/intel/igb/igb_ethtool.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c b/drivers/net/ethernet/intel/igb/igb_ethtool.c
> index 92ef33459aec..3c6289e80ba0 100644
> --- a/drivers/net/ethernet/intel/igb/igb_ethtool.c
> +++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c
> @@ -81,6 +81,7 @@ static const struct igb_stats igb_gstrings_stats[] = {
> }
> static const struct igb_stats igb_gstrings_net_stats[] = {
> IGB_NETDEV_STAT(rx_errors),
> + IGB_NETDEV_STAT(rx_dropped),
> IGB_NETDEV_STAT(tx_errors),
> IGB_NETDEV_STAT(tx_dropped),
> IGB_NETDEV_STAT(rx_length_errors),
This stat is never used in the igb driver, what's the benefit of
constant 0 value in the output?
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [Intel-wired-lan] [PATCH] net: igb: expose rx_dropped via ethtool -S
2025-08-28 11:42 [PATCH] net: igb: expose rx_dropped via ethtool -S Ranganath V N
2025-08-28 13:18 ` Vadim Fedorenko
@ 2025-08-28 15:48 ` Loktionov, Aleksandr
1 sibling, 0 replies; 4+ messages in thread
From: Loktionov, Aleksandr @ 2025-08-28 15:48 UTC (permalink / raw)
To: Ranganath V N, Nguyen, Anthony L, Kitszel, Przemyslaw,
andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com,
intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: linux-kernel-mentees@lists.linuxfoundation.org,
skhan@linuxfoundation.org
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf
> Of Ranganath V N
> Sent: Thursday, August 28, 2025 1:42 PM
> To: Nguyen, Anthony L <anthony.l.nguyen@intel.com>; Kitszel,
> Przemyslaw <przemyslaw.kitszel@intel.com>; andrew+netdev@lunn.ch;
> davem@davemloft.net; edumazet@google.com; kuba@kernel.org;
> pabeni@redhat.com; intel-wired-lan@lists.osuosl.org;
> netdev@vger.kernel.org; linux-kernel@vger.kernel.org
> Cc: linux-kernel-mentees@lists.linuxfoundation.org;
> skhan@linuxfoundation.org; Ranganath V N <vnranganath.20@gmail.com>
> Subject: [Intel-wired-lan] [PATCH] net: igb: expose rx_dropped via
> ethtool -S
>
> Currently the igb driver does not reports RX dropped
Minor fix: s/reports/report/
> packets in the ethtool -S statistics output, even though
> this information is already available in struct
> rtnl_link_stats64.
>
> This patch adds rx_dropped, so users can monitor dropped
> packet counts directly with ethtool.
>
Should it have Fixes: tag, what do you think?
> Signed-off-by: Ranganath V N <vnranganath.20@gmail.com>
Looks good for me.
Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
> ---
> drivers/net/ethernet/intel/igb/igb_ethtool.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c
> b/drivers/net/ethernet/intel/igb/igb_ethtool.c
> index 92ef33459aec..3c6289e80ba0 100644
> --- a/drivers/net/ethernet/intel/igb/igb_ethtool.c
> +++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c
> @@ -81,6 +81,7 @@ static const struct igb_stats igb_gstrings_stats[] =
> {
> }
> static const struct igb_stats igb_gstrings_net_stats[] = {
> IGB_NETDEV_STAT(rx_errors),
> + IGB_NETDEV_STAT(rx_dropped),
> IGB_NETDEV_STAT(tx_errors),
> IGB_NETDEV_STAT(tx_dropped),
> IGB_NETDEV_STAT(rx_length_errors),
> --
> 2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] net: igb: expose rx_dropped via ethtool -S
2025-08-28 13:18 ` Vadim Fedorenko
@ 2025-08-28 19:25 ` Ranganath V N
0 siblings, 0 replies; 4+ messages in thread
From: Ranganath V N @ 2025-08-28 19:25 UTC (permalink / raw)
To: vadim.fedorenko
Cc: andrew+netdev, anthony.l.nguyen, davem, edumazet, intel-wired-lan,
kuba, linux-kernel-mentees, linux-kernel, netdev, pabeni,
przemyslaw.kitszel, skhan, vnranganath.20, aleksandr.loktionov
>> On 28/08/2025 12:42, Ranganath V N wrote:
>> Currently the igb driver does not reports RX dropped
>> packets in the ethtool -S statistics output, even though
>> this information is already available in struct
>> rtnl_link_stats64.
>>
>> This patch adds rx_dropped, so users can monitor dropped
>> packet counts directly with ethtool.
>>
>> Signed-off-by: Ranganath V N <vnranganath.20@gmail.com>
>> ---
>> drivers/net/ethernet/intel/igb/igb_ethtool.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c b/drivers/net/ethernet/intel/igb/igb_ethtool.c
>> index 92ef33459aec..3c6289e80ba0 100644
>> --- a/drivers/net/ethernet/intel/igb/igb_ethtool.c
>> +++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c
>> @@ -81,6 +81,7 @@ static const struct igb_stats igb_gstrings_stats[] = {
>> }
>> static const struct igb_stats igb_gstrings_net_stats[] = {
>> IGB_NETDEV_STAT(rx_errors),
>> + IGB_NETDEV_STAT(rx_dropped),
>> IGB_NETDEV_STAT(tx_errors),
>> IGB_NETDEV_STAT(tx_dropped),
>> IGB_NETDEV_STAT(rx_length_errors),
> This stat is never used in the igb driver, what's the benefit of
> constant 0 value in the output?
Hi,
I initially proposed exposing it, but after reviewing
the driver, I realized that stats.rx_dropped is never
updated in igb. Exposing it would always show 0.
Ixgbe behaves the same: the counter is present
but never incremented.But this patch wouldn't provide meaningful data.
Thanks again for your guidance.
Ranganath
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-08-28 19:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-28 11:42 [PATCH] net: igb: expose rx_dropped via ethtool -S Ranganath V N
2025-08-28 13:18 ` Vadim Fedorenko
2025-08-28 19:25 ` Ranganath V N
2025-08-28 15:48 ` [Intel-wired-lan] " Loktionov, Aleksandr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).