net/i40e: fix dropped packets statistics name
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.
--- drivers/net/i40e/i40e_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/i40e/i40e_ethdev.c +2 -2
@@ -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
PATCH 2/2 net/ice: fix dropped packets statistics name
Copy/paste from i40e, let's align with the fix on i40e.
--- drivers/net/ice/ice_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
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)}, };#define ICE_NB_ETH_XSTATS (sizeof(ice_stats_strings) / \
Signature · 1 line
1.8.3.1
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")Signed-off-by David Marchand <[email protected]>--- drivers/net/i40e/i40e_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/i40e/i40e_ethdev.c +1
-1@@ -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
Re: [dpdk-dev] [dpdk-stable] [PATCH 2/2] net/ice: fix dropped packets statistics name
In reply to David MarchandLooks 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")Signed-off-by David Marchand <[email protected]>--- drivers/net/ice/ice_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)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)}, };#define ICE_NB_ETH_XSTATS (sizeof(ice_stats_strings) / \Signature · 1 line
1.8.3.1
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")Signed-off-by David Marchand <[email protected]>--- drivers/net/i40e/i40e_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/i40e/i40e_ethdev.c +1
-1@@ -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(structi40e_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
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 namei40e 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")Signed-off-by David Marchand <[email protected]>--- drivers/net/i40e/i40e_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/i40e/i40e_ethdev.c +2
-2@@ -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
Zhang, Qi Z
AppliedQuoted 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 nameQuoted 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 namei40e 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")Signed-off-by David Marchand <[email protected]>---
Acked-by Beilei Xing <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi
Zhang, Qi Z
AppliedRe: [dpdk-dev] [dpdk-stable] [PATCH 2/2] net/ice: fix dropped packets statistics name
In reply to Eelco ChaudronQuoted 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 nameLooks good to me…
Acked-by Eelco Chaudron <[email protected]>Quoted 29 lines · David Marchand
Copy/paste from i40e, let's align with the fix on i40e.
Fixes a37bde56314d ("net/ice: support statistics")Signed-off-by David Marchand <[email protected]>--- drivers/net/ice/ice_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/drivers/net/ice/ice_ethdev.cindex bdbceb4..6cd1c74 100644drivers/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