* [PATCH] net/idpf: add hw stats ierrors
@ 2023-02-21 1:40 Mingxia Liu
2023-02-24 2:41 ` Mingxia Liu
2023-02-24 2:43 ` [PATCH v2] " Mingxia Liu
0 siblings, 2 replies; 4+ messages in thread
From: Mingxia Liu @ 2023-02-21 1:40 UTC (permalink / raw)
To: dev; +Cc: jingjing.wu, beilei.xing, Mingxia Liu
This patch add hw stats ierrors, when receive packets with
bad csum, ierrors value will increase.
Signed-off-by: Mingxia Liu <mingxia.liu@intel.com>
---
drivers/net/idpf/idpf_ethdev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c
index 38cbbf369d..5b4f4fd82b 100644
--- a/drivers/net/idpf/idpf_ethdev.c
+++ b/drivers/net/idpf/idpf_ethdev.c
@@ -291,6 +291,7 @@ idpf_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
pstats->rx_broadcast - pstats->rx_discards;
stats->opackets = pstats->tx_broadcast + pstats->tx_multicast +
pstats->tx_unicast;
+ stats->ierrors = pstats->rx_errors;
stats->imissed = pstats->rx_discards;
stats->oerrors = pstats->tx_errors + pstats->tx_discards;
stats->ibytes = pstats->rx_bytes;
--
2.25.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] net/idpf: add hw stats ierrors
2023-02-21 1:40 [PATCH] net/idpf: add hw stats ierrors Mingxia Liu
@ 2023-02-24 2:41 ` Mingxia Liu
2023-02-24 2:43 ` [PATCH v2] " Mingxia Liu
1 sibling, 0 replies; 4+ messages in thread
From: Mingxia Liu @ 2023-02-24 2:41 UTC (permalink / raw)
To: dev; +Cc: jingjing.wu, beilei.xing, Mingxia Liu
This patch adds hw stats ierrors, when receiving packets with
bad csum, ierrors value will increase.
Signed-off-by: Mingxia Liu <mingxia.liu@intel.com>
---
drivers/net/idpf/idpf_ethdev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c
index 38cbbf369d..5b4f4fd82b 100644
--- a/drivers/net/idpf/idpf_ethdev.c
+++ b/drivers/net/idpf/idpf_ethdev.c
@@ -291,6 +291,7 @@ idpf_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
pstats->rx_broadcast - pstats->rx_discards;
stats->opackets = pstats->tx_broadcast + pstats->tx_multicast +
pstats->tx_unicast;
+ stats->ierrors = pstats->rx_errors;
stats->imissed = pstats->rx_discards;
stats->oerrors = pstats->tx_errors + pstats->tx_discards;
stats->ibytes = pstats->rx_bytes;
--
2.25.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2] net/idpf: add hw stats ierrors
2023-02-21 1:40 [PATCH] net/idpf: add hw stats ierrors Mingxia Liu
2023-02-24 2:41 ` Mingxia Liu
@ 2023-02-24 2:43 ` Mingxia Liu
2023-02-24 3:52 ` Xing, Beilei
1 sibling, 1 reply; 4+ messages in thread
From: Mingxia Liu @ 2023-02-24 2:43 UTC (permalink / raw)
To: dev; +Cc: jingjing.wu, beilei.xing, Mingxia Liu
This patch adds hw stats ierrors, when receiving packets with
bad csum, ierrors value will increase.
Signed-off-by: Mingxia Liu <mingxia.liu@intel.com>
---
drivers/net/idpf/idpf_ethdev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c
index 38cbbf369d..5b4f4fd82b 100644
--- a/drivers/net/idpf/idpf_ethdev.c
+++ b/drivers/net/idpf/idpf_ethdev.c
@@ -291,6 +291,7 @@ idpf_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
pstats->rx_broadcast - pstats->rx_discards;
stats->opackets = pstats->tx_broadcast + pstats->tx_multicast +
pstats->tx_unicast;
+ stats->ierrors = pstats->rx_errors;
stats->imissed = pstats->rx_discards;
stats->oerrors = pstats->tx_errors + pstats->tx_discards;
stats->ibytes = pstats->rx_bytes;
--
2.25.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH v2] net/idpf: add hw stats ierrors
2023-02-24 2:43 ` [PATCH v2] " Mingxia Liu
@ 2023-02-24 3:52 ` Xing, Beilei
0 siblings, 0 replies; 4+ messages in thread
From: Xing, Beilei @ 2023-02-24 3:52 UTC (permalink / raw)
To: Liu, Mingxia, dev; +Cc: Wu, Jingjing
> -----Original Message-----
> From: Liu, Mingxia <mingxia.liu@intel.com>
> Sent: Friday, February 24, 2023 10:43 AM
> To: dev@dpdk.org
> Cc: Wu, Jingjing <jingjing.wu@intel.com>; Xing, Beilei <beilei.xing@intel.com>;
> Liu, Mingxia <mingxia.liu@intel.com>
> Subject: [PATCH v2] net/idpf: add hw stats ierrors
>
> This patch adds hw stats ierrors, when receiving packets with bad csum, ierrors
> value will increase.
>
> Signed-off-by: Mingxia Liu <mingxia.liu@intel.com>
> ---
> drivers/net/idpf/idpf_ethdev.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c
> index 38cbbf369d..5b4f4fd82b 100644
> --- a/drivers/net/idpf/idpf_ethdev.c
> +++ b/drivers/net/idpf/idpf_ethdev.c
> @@ -291,6 +291,7 @@ idpf_dev_stats_get(struct rte_eth_dev *dev, struct
> rte_eth_stats *stats)
> pstats->rx_broadcast - pstats->rx_discards;
> stats->opackets = pstats->tx_broadcast + pstats->tx_multicast
> +
> pstats->tx_unicast;
> + stats->ierrors = pstats->rx_errors;
> stats->imissed = pstats->rx_discards;
> stats->oerrors = pstats->tx_errors + pstats->tx_discards;
> stats->ibytes = pstats->rx_bytes;
> --
> 2.25.1
Acked-by: Beilei Xing <beilei.xing@intel.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-02-24 3:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-21 1:40 [PATCH] net/idpf: add hw stats ierrors Mingxia Liu
2023-02-24 2:41 ` Mingxia Liu
2023-02-24 2:43 ` [PATCH v2] " Mingxia Liu
2023-02-24 3:52 ` Xing, Beilei
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).