[PATCH v3] net/af_packet: provide packet drop stats

2025-01-21 Thread Stefan Laesser
total count on its own. Next, I have added a counter for the case when mbuf could not be allocated. Signed-off-by: Stefan Laesser --- v3: * Introduced function for querying socket dropped counter and use it also to reset internal state when stats are reset. * Combined the for-loops in in

[PATCH v2] net/af_packet: provide packet drop stats

2025-01-21 Thread Stefan Laesser
total count on its own. Next, I have added a counter for the case when mbuf could not be allocated. Signed-off-by: Stefan Laesser --- v2: * Limited scope of tpacket_stats and socklen_t variables and moved them inside the for-loop in function eth_stats_get. * Removed q_errors counting as dropped

[PATCH] net/af_packet: provide packet drop stats

2025-01-16 Thread Stefan Laesser
total count on its own. Next, I have added a counter for the case when mbuf couldn't be allocated. Signed-off-by: Stefan Laesser --- drivers/net/af_packet/rte_eth_af_packet.c | 32 +-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/drivers/net/af_p

[PATCH v3] net/af_packet: add timestamp offloading support

2024-09-20 Thread Stefan Laesser
Add the packet timestamp from TPACKET_V2 to the mbuf dynamic rx timestamp register if offload RTE_ETH_RX_OFFLOAD_TIMESTAMP is enabled. TPACKET_V2 provides the timestamp with nanosecond resolution and UNIX origo, i.e. time since 1-JAN-1970 UTC. Signed-off-by: Stefan Laesser Acked-by: Morten

[PATCH v2] net/af_packet: add timestamp offloading support

2024-09-19 Thread Stefan Laesser
Add the packet timestamp from TPACKET_V2 to the mbuf dynamic rx timestamp register if offload RTE_ETH_RX_OFFLOAD_TIMESTAMP is enabled. TPACKET_V2 provides the timestamp with nanosecond resolution and UNIX origo, i.e. time since 1-JAN-1970 UTC. Signed-off-by: Stefan Laesser Acked-by: Morten

[PATCH] net/af_packet: add timestamp offloading support

2024-09-03 Thread Stefan Laesser
Add the packet timestamp from TPACKET_V2 to the mbuf dynamic rx timestamp register if offload RTE_ETH_RX_OFFLOAD_TIMESTAMP is enabled. TPACKET_V2 provides the timestamp with nanosecond resolution. Signed-off-by: Stefan Laesser --- .mailmap | 1 + doc/guides