All of lore.kernel.org
 help / color / mirror / Atom feed
* packet stats validation
@ 2022-02-11  8:48 Oleksij Rempel
  2022-02-11 21:50 ` Andrew Lunn
  0 siblings, 1 reply; 3+ messages in thread
From: Oleksij Rempel @ 2022-02-11  8:48 UTC (permalink / raw)
  To: netdev

Hi all,

I'm implementing stats64 for the ksz switch and by validating my
implementation found different by count methods in different sub
systems. For example, i send 64 byte packet with:

mausezahn enp1s0f3 -c 1 -a rand -p 64

- tshark is recognizing 64 byte frame with 50 byte data
- Intel igb is counting it as 64 byte
- ksz9477 switch HW counter is counting it as 68 bytes packet
- linux bridge is counting it as 50 byte packet

Can you please help me to understand this differences?
Do linux bridge is doing it correct or it is a bug?
ksz9477 is probably adding a tag and counting tagged packets. Should
this number be provided to stats64?

Regards,
Oleksij
-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-12  2:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-11  8:48 packet stats validation Oleksij Rempel
2022-02-11 21:50 ` Andrew Lunn
2022-02-12  2:21   ` Stephen Hemminger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.