Skip to contentSkip to conversation

net/i40e: fix dropped packets statistics name

PATCH Applied David Marchand 4 participants 8 messages Jun 3, 2019 – Jun 18, 2019 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 net/i40e: fix dropped packets statistics name

i40e and i40evf currently use two different names for the statistic on dropped packets on the rx and tx sides.
Let's prefer i40evf so that all statistics are suffixed with _packets.

This also avoids a statistic name conflict in OVS.

Fixes f4a91c38b4ad ("i40e: add extended stats")
---
 drivers/net/i40e/i40e_ethdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/i40e/i40e_ethdev.c +2 -2
index 7fa9e1b..2384d4d 100644
@@ -526,13 +526,13 @@ struct rte_i40e_xstats_name_off {
 	{"rx_unicast_packets", offsetof(struct i40e_eth_stats, rx_unicast)},
 	{"rx_multicast_packets", offsetof(struct i40e_eth_stats, rx_multicast)},
 	{"rx_broadcast_packets", offsetof(struct i40e_eth_stats, rx_broadcast)},
-	{"rx_dropped", offsetof(struct i40e_eth_stats, rx_discards)},
+	{"rx_dropped_packets", offsetof(struct i40e_eth_stats, rx_discards)},
 	{"rx_unknown_protocol_packets", offsetof(struct i40e_eth_stats,
 		rx_unknown_protocol)},
 	{"tx_unicast_packets", offsetof(struct i40e_eth_stats, tx_unicast)},
 	{"tx_multicast_packets", offsetof(struct i40e_eth_stats, tx_multicast)},
 	{"tx_broadcast_packets", offsetof(struct i40e_eth_stats, tx_broadcast)},
-	{"tx_dropped", offsetof(struct i40e_eth_stats, tx_discards)},
+	{"tx_dropped_packets", offsetof(struct i40e_eth_stats, tx_discards)},
 };
 
 #define I40E_NB_ETH_XSTATS (sizeof(rte_i40e_stats_strings) / \
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 2/2 net/ice: fix dropped packets statistics name

Copy/paste from i40e, let's align with the fix on i40e.

Fixes a37bde56314d ("net/ice: support statistics")
---
 drivers/net/ice/ice_ethdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ice/ice_ethdev.c +2 -2
index bdbceb4..6cd1c74 100644
@@ -153,13 +153,13 @@ struct ice_xstats_name_off {
 	{"rx_unicast_packets", offsetof(struct ice_eth_stats, rx_unicast)},
 	{"rx_multicast_packets", offsetof(struct ice_eth_stats, rx_multicast)},
 	{"rx_broadcast_packets", offsetof(struct ice_eth_stats, rx_broadcast)},
-	{"rx_dropped", offsetof(struct ice_eth_stats, rx_discards)},
+	{"rx_dropped_packets", offsetof(struct ice_eth_stats, rx_discards)},
 	{"rx_unknown_protocol_packets", offsetof(struct ice_eth_stats,
 		rx_unknown_protocol)},
 	{"tx_unicast_packets", offsetof(struct ice_eth_stats, tx_unicast)},
 	{"tx_multicast_packets", offsetof(struct ice_eth_stats, tx_multicast)},
 	{"tx_broadcast_packets", offsetof(struct ice_eth_stats, tx_broadcast)},
-	{"tx_dropped", offsetof(struct ice_eth_stats, tx_discards)},
+	{"tx_dropped_packets", offsetof(struct ice_eth_stats, tx_discards)},
 };
 
 #define ICE_NB_ETH_XSTATS (sizeof(ice_stats_strings) / \
Signature · 1 line
1.8.3.1
Acked-by on v1 1/2
#4 lore raw
In reply to David Marchand

Looks good to me…

Quoted 42 lines · David Marchand

i40e and i40evf currently use two different names for the statistic on dropped packets on the rx and tx sides.
Let's prefer i40evf so that all statistics are suffixed with _packets.

This also avoids a statistic name conflict in OVS.

Fixes f4a91c38b4ad ("i40e: add extended stats")
---
 drivers/net/i40e/i40e_ethdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/i40e/i40e_ethdev.c +1 -1
index 7fa9e1b..2384d4d 100644
@@ -526,13 +526,13 @@ struct rte_i40e_xstats_name_off {
 	{"rx_unicast_packets", offsetof(struct i40e_eth_stats, rx_unicast)},
 	{"rx_multicast_packets", offsetof(struct i40e_eth_stats, 
 rx_multicast)},
 	{"rx_broadcast_packets", offsetof(struct i40e_eth_stats, 
 rx_broadcast)},
-	{"rx_dropped", offsetof(struct i40e_eth_stats, rx_discards)},
+	{"rx_dropped_packets", offsetof(struct i40e_eth_stats, 
 rx_discards)},
 	{"rx_unknown_protocol_packets", offsetof(struct i40e_eth_stats,
 		rx_unknown_protocol)},
 	{"tx_unicast_packets", offsetof(struct i40e_eth_stats, tx_unicast)},
 	{"tx_multicast_packets", offsetof(struct i40e_eth_stats, 
 tx_multicast)},
 	{"tx_broadcast_packets", offsetof(struct i40e_eth_stats, 

tx_broadcast)},

drivers/net/i40e/i40e_ethdev.c +1 -1
-	{"tx_dropped", offsetof(struct i40e_eth_stats, tx_discards)},
+	{"tx_dropped_packets", offsetof(struct i40e_eth_stats, 

tx_discards)},
};

#define I40E_NB_ETH_XSTATS (sizeof(rte_i40e_stats_strings) / \

Signature · 1 line
1.8.3.1
Acked-by on v1 2/2
#2 lore raw

Re: [dpdk-dev] [dpdk-stable] [PATCH 2/2] net/ice: fix dropped packets statistics name

In reply to David Marchand

Looks good to me…

Quoted 32 lines · David Marchand

Copy/paste from i40e, let's align with the fix on i40e.

Fixes a37bde56314d ("net/ice: support statistics")
---
 drivers/net/ice/ice_ethdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ice/ice_ethdev.c +2 -2
index bdbceb4..6cd1c74 100644
@@ -153,13 +153,13 @@ struct ice_xstats_name_off {
 	{"rx_unicast_packets", offsetof(struct ice_eth_stats, rx_unicast)},
 	{"rx_multicast_packets", offsetof(struct ice_eth_stats, rx_multicast)},
 	{"rx_broadcast_packets", offsetof(struct ice_eth_stats, rx_broadcast)},
-	{"rx_dropped", offsetof(struct ice_eth_stats, rx_discards)},
+	{"rx_dropped_packets", offsetof(struct ice_eth_stats, rx_discards)},
 	{"rx_unknown_protocol_packets", offsetof(struct ice_eth_stats,
 		rx_unknown_protocol)},
 	{"tx_unicast_packets", offsetof(struct ice_eth_stats, tx_unicast)},
 	{"tx_multicast_packets", offsetof(struct ice_eth_stats, tx_multicast)},
 	{"tx_broadcast_packets", offsetof(struct ice_eth_stats, tx_broadcast)},
-	{"tx_dropped", offsetof(struct ice_eth_stats, tx_discards)},
+	{"tx_dropped_packets", offsetof(struct ice_eth_stats, tx_discards)},
 };
 
 #define ICE_NB_ETH_XSTATS (sizeof(ice_stats_strings) / \
Signature · 1 line
1.8.3.1
#5 lore raw
In reply to David Marchand

Hello guys,

Can you review this patch please?

Thanks.

Quoted 47 lines · David Marchand

i40e and i40evf currently use two different names for the statistic on dropped packets on the rx and tx sides.
Let's prefer i40evf so that all statistics are suffixed with _packets.

This also avoids a statistic name conflict in OVS.

Fixes f4a91c38b4ad ("i40e: add extended stats")
---
 drivers/net/i40e/i40e_ethdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/i40e/i40e_ethdev.c +1 -1
index 7fa9e1b..2384d4d 100644
@@ -526,13 +526,13 @@ struct rte_i40e_xstats_name_off {
        {"rx_unicast_packets", offsetof(struct i40e_eth_stats,
 rx_unicast)},
        {"rx_multicast_packets", offsetof(struct i40e_eth_stats,
 rx_multicast)},
        {"rx_broadcast_packets", offsetof(struct i40e_eth_stats,
 rx_broadcast)},
-       {"rx_dropped", offsetof(struct i40e_eth_stats, rx_discards)},
+       {"rx_dropped_packets", offsetof(struct i40e_eth_stats,
 rx_discards)},
        {"rx_unknown_protocol_packets", offsetof(struct i40e_eth_stats,
                rx_unknown_protocol)},
        {"tx_unicast_packets", offsetof(struct i40e_eth_stats,
 tx_unicast)},
        {"tx_multicast_packets", offsetof(struct i40e_eth_stats,

tx_multicast)},
{"tx_broadcast_packets", offsetof(struct i40e_eth_stats,
tx_broadcast)},

drivers/net/i40e/i40e_ethdev.c +1 -1
-       {"tx_dropped", offsetof(struct i40e_eth_stats, tx_discards)},
+       {"tx_dropped_packets", offsetof(struct i40e_eth_stats,

tx_discards)},
};

#define I40E_NB_ETH_XSTATS (sizeof(rte_i40e_stats_strings) / \
--
1.8.3.1

Signature · 1 line
David Marchand
Acked-by on v1 1/2
#6 lore raw
In reply to David Marchand
Quoted 47 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of David Marchand
Sent: Monday, June 3, 2019 4:31 PM
To: [email protected]
Cc: [email protected]; Xing, Beilei <[email protected]>; Zhang, Qi Z <[email protected]>
Subject: [dpdk-dev] [PATCH 1/2] net/i40e: fix dropped packets statistics name

i40e and i40evf currently use two different names for the statistic on dropped packets on the rx and tx sides.
Let's prefer i40evf so that all statistics are suffixed with _packets.

This also avoids a statistic name conflict in OVS.

Fixes f4a91c38b4ad ("i40e: add extended stats")
---
 drivers/net/i40e/i40e_ethdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/i40e/i40e_ethdev.c +2 -2
index 7fa9e1b..2384d4d 100644
@@ -526,13 +526,13 @@ struct rte_i40e_xstats_name_off {
 	{"rx_unicast_packets", offsetof(struct i40e_eth_stats, rx_unicast)},
 	{"rx_multicast_packets", offsetof(struct i40e_eth_stats,
 rx_multicast)},
 	{"rx_broadcast_packets", offsetof(struct i40e_eth_stats,
 rx_broadcast)},
-	{"rx_dropped", offsetof(struct i40e_eth_stats, rx_discards)},
+	{"rx_dropped_packets", offsetof(struct i40e_eth_stats, rx_discards)},
 	{"rx_unknown_protocol_packets", offsetof(struct i40e_eth_stats,
 		rx_unknown_protocol)},
 	{"tx_unicast_packets", offsetof(struct i40e_eth_stats, tx_unicast)},
 	{"tx_multicast_packets", offsetof(struct i40e_eth_stats, tx_multicast)},
 	{"tx_broadcast_packets", offsetof(struct i40e_eth_stats,
 tx_broadcast)},
-	{"tx_dropped", offsetof(struct i40e_eth_stats, tx_discards)},
+	{"tx_dropped_packets", offsetof(struct i40e_eth_stats, tx_discards)},

};

Quoted 3 lines

#define I40E_NB_ETH_XSTATS (sizeof(rte_i40e_stats_strings) / \
--
1.8.3.1

Applied
#7 lore raw
Quoted 27 lines

-----Original Message-----
From: Xing, Beilei
Sent: Wednesday, June 12, 2019 9:35 AM
To: David Marchand <[email protected]>; [email protected]
Cc: [email protected]; Zhang, Qi Z <[email protected]>
Subject: RE: [dpdk-dev] [PATCH 1/2] net/i40e: fix dropped packets statistics name

Quoted 15 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of David Marchand
Sent: Monday, June 3, 2019 4:31 PM
To: [email protected]
Cc: [email protected]; Xing, Beilei <[email protected]>; Zhang, Qi Z <[email protected]>
Subject: [dpdk-dev] [PATCH 1/2] net/i40e: fix dropped packets statistics name

i40e and i40evf currently use two different names for the statistic on dropped packets on the rx and tx sides.
Let's prefer i40evf so that all statistics are suffixed with _packets.

This also avoids a statistic name conflict in OVS.

Quoted 7 lines
Quoted 5 lines
Fixes f4a91c38b4ad ("i40e: add extended stats")

---

Applied to dpdk-next-net-intel.

Thanks
Qi

Applied
#3 lore raw

Re: [dpdk-dev] [dpdk-stable] [PATCH 2/2] net/ice: fix dropped packets statistics name

In reply to Eelco Chaudron
Quoted 46 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Eelco Chaudron
Sent: Monday, June 3, 2019 4:53 PM
To: David Marchand <[email protected]>
Cc: [email protected]; [email protected]; Yang, Qiming <[email protected]>; Lu, Wenzhuo <[email protected]>
Subject: Re: [dpdk-dev] [dpdk-stable] [PATCH 2/2] net/ice: fix dropped packets statistics name

Looks good to me…

Quoted 29 lines · David Marchand

Copy/paste from i40e, let's align with the fix on i40e.

Fixes a37bde56314d ("net/ice: support statistics")
---
 drivers/net/ice/ice_ethdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/drivers/net/ice/ice_ethdev.c index bdbceb4..6cd1c74 100644

drivers/net/ice/ice_ethdev.c +2 -2
@@ -153,13 +153,13 @@ struct ice_xstats_name_off {
 	{"rx_unicast_packets", offsetof(struct ice_eth_stats, rx_unicast)},
 	{"rx_multicast_packets", offsetof(struct ice_eth_stats, rx_multicast)},
 	{"rx_broadcast_packets", offsetof(struct ice_eth_stats, rx_broadcast)},
-	{"rx_dropped", offsetof(struct ice_eth_stats, rx_discards)},
+	{"rx_dropped_packets", offsetof(struct ice_eth_stats, rx_discards)},
 	{"rx_unknown_protocol_packets", offsetof(struct ice_eth_stats,
 		rx_unknown_protocol)},
 	{"tx_unicast_packets", offsetof(struct ice_eth_stats, tx_unicast)},
 	{"tx_multicast_packets", offsetof(struct ice_eth_stats, tx_multicast)},
 	{"tx_broadcast_packets", offsetof(struct ice_eth_stats, tx_broadcast)},
-	{"tx_dropped", offsetof(struct ice_eth_stats, tx_discards)},
+	{"tx_dropped_packets", offsetof(struct ice_eth_stats, tx_discards)},
 };
 
Quoted 3 lines
Quoted 3 lines
drivers/net/ice/ice_ethdev.c +0 -1
 #define ICE_NB_ETH_XSTATS (sizeof(ice_stats_strings) / \
--

1.8.3.1

Applied to dpdk-next-next-intel.

Thanks
Qi