[dpdk-dev] [PATCH v3 07/11] ixgbe: update statistic strings to scheme

2015-10-23 Thread Tahhan, Maryam
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Harry van Haaren
> Sent: Thursday, October 22, 2015 4:49 PM
> To: dev at dpdk.org
> Subject: [dpdk-dev] [PATCH v3 07/11] ixgbe: update statistic strings to
> scheme
> 
> Updated and add statistic strings as used by xstats_get().
> 
> Signed-off-by: Harry van Haaren 
> ---
>  drivers/net/ixgbe/ixgbe_ethdev.c | 295
> ---
>  1 file changed, 273 insertions(+), 22 deletions(-)
> 
> diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c
> b/drivers/net/ixgbe/ixgbe_ethdev.c
> index 1e5ffbf..2e9e260 100644
> --- a/drivers/net/ixgbe/ixgbe_ethdev.c
> +++ b/drivers/net/ixgbe/ixgbe_ethdev.c
> @@ -506,29 +506,280 @@ struct rte_ixgbe_xstats_name_off {  };
> 
>  static const struct rte_ixgbe_xstats_name_off rte_ixgbe_stats_strings[] = {
> - {"rx_illegal_byte_err", offsetof(struct ixgbe_hw_stats, errbc)},
> - {"rx_len_err", offsetof(struct ixgbe_hw_stats, rlec)},
> - {"rx_undersize_count", offsetof(struct ixgbe_hw_stats, ruc)},
> - {"rx_oversize_count", offsetof(struct ixgbe_hw_stats, roc)},
> - {"rx_fragment_count", offsetof(struct ixgbe_hw_stats, rfc)},
> - {"rx_jabber_count", offsetof(struct ixgbe_hw_stats, rjc)},
> - {"l3_l4_xsum_error", offsetof(struct ixgbe_hw_stats, xec)},
> - {"mac_local_fault", offsetof(struct ixgbe_hw_stats, mlfc)},
> - {"mac_remote_fault", offsetof(struct ixgbe_hw_stats, mrfc)},
> - {"mac_short_pkt_discard", offsetof(struct ixgbe_hw_stats, mspdc)},
> - {"fccrc_error", offsetof(struct ixgbe_hw_stats, fccrc)},
> - {"fcoe_drop", offsetof(struct ixgbe_hw_stats, fcoerpdc)},
> - {"fc_last_error", offsetof(struct ixgbe_hw_stats, fclast)},
> - {"rx_broadcast_packets", offsetof(struct ixgbe_hw_stats, bprc)},
> - {"rx_phy_multicast_packets", offsetof(struct ixgbe_hw_stats, mprc)},
> - {"mgmt_pkts_dropped", offsetof(struct ixgbe_hw_stats, mngpdc)},
>   {"rx_crc_errors", offsetof(struct ixgbe_hw_stats, crcerrs)},
> - {"fdir_match", offsetof(struct ixgbe_hw_stats, fdirmatch)},
> - {"fdir_miss", offsetof(struct ixgbe_hw_stats, fdirmiss)},
> - {"tx_flow_control_xon", offsetof(struct ixgbe_hw_stats, lxontxc)},
> - {"rx_flow_control_xon", offsetof(struct ixgbe_hw_stats, lxonrxc)},
> - {"tx_flow_control_xoff", offsetof(struct ixgbe_hw_stats, lxofftxc)},
> - {"rx_flow_control_xoff", offsetof(struct ixgbe_hw_stats, lxoffrxc)},
> + {"rx_illegal_byte_errors", offsetof(struct ixgbe_hw_stats, illerrc)},
> + {"rx_error_bytes", offsetof(struct ixgbe_hw_stats, errbc)},
> + {"mac_local_errors", offsetof(struct ixgbe_hw_stats, mlfc)},
> + {"mac_remote_errors", offsetof(struct ixgbe_hw_stats, mrfc)},
> + {"rx_length_errors", offsetof(struct ixgbe_hw_stats, rlec)},
> + {"tx_xon_packets", offsetof(struct ixgbe_hw_stats, lxontxc)},
> + {"rx_xon_packets", offsetof(struct ixgbe_hw_stats, lxonrxc)},
> + {"tx_xoff_packets", offsetof(struct ixgbe_hw_stats, lxofftxc)},
> + {"rx_xoff_packets", offsetof(struct ixgbe_hw_stats, lxoffrxc)},
> + {"rx_size_64_packets", offsetof(struct ixgbe_hw_stats, prc64)},
> + {"rx_size_65_to_127_packets", offsetof(struct ixgbe_hw_stats,
> prc127)},
> + {"rx_size_128_to_255_packets", offsetof(struct ixgbe_hw_stats,
> prc255)},
> + {"rx_size_256_to_511_packets", offsetof(struct ixgbe_hw_stats,
> prc511)},
> + {"rx_size_512_to_1023_packets", offsetof(struct ixgbe_hw_stats,
> + prc1023)},
> + {"rx_size_1024_to_max_packets", offsetof(struct ixgbe_hw_stats,
> + prc1522)},
> + {"rx_broadcast_packets", offsetof(struct ixgbe_hw_stats, bprc)},
> + {"rx_multicast_packets", offsetof(struct ixgbe_hw_stats, mprc)},
> + {"rx_fragment_errors", offsetof(struct ixgbe_hw_stats, rfc)},
> + {"rx_undersize_errors", offsetof(struct ixgbe_hw_stats, ruc)},
> + {"rx_oversize_errors", offsetof(struct ixgbe_hw_stats, roc)},
> + {"rx_jabber_errors", offsetof(struct ixgbe_hw_stats, rjc)},
> + {"rx_managment_packets", offsetof(struct ixgbe_hw_stats, mngprc)},
> + {"rx_managment_dropped", offsetof(struct ixgbe_hw_stats, mngpdc)},
> + {"tx_managment_packets", offsetof(struct ixgbe_hw_stats, mngptc)},
> + {"rx_total_packets", offsetof(struct 

[dpdk-dev] [PATCH v3 07/11] ixgbe: update statistic strings to scheme

2015-10-22 Thread Harry van Haaren
Updated and add statistic strings as used by xstats_get().

Signed-off-by: Harry van Haaren 
---
 drivers/net/ixgbe/ixgbe_ethdev.c | 295 ---
 1 file changed, 273 insertions(+), 22 deletions(-)

diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
index 1e5ffbf..2e9e260 100644
--- a/drivers/net/ixgbe/ixgbe_ethdev.c
+++ b/drivers/net/ixgbe/ixgbe_ethdev.c
@@ -506,29 +506,280 @@ struct rte_ixgbe_xstats_name_off {
 };

 static const struct rte_ixgbe_xstats_name_off rte_ixgbe_stats_strings[] = {
-   {"rx_illegal_byte_err", offsetof(struct ixgbe_hw_stats, errbc)},
-   {"rx_len_err", offsetof(struct ixgbe_hw_stats, rlec)},
-   {"rx_undersize_count", offsetof(struct ixgbe_hw_stats, ruc)},
-   {"rx_oversize_count", offsetof(struct ixgbe_hw_stats, roc)},
-   {"rx_fragment_count", offsetof(struct ixgbe_hw_stats, rfc)},
-   {"rx_jabber_count", offsetof(struct ixgbe_hw_stats, rjc)},
-   {"l3_l4_xsum_error", offsetof(struct ixgbe_hw_stats, xec)},
-   {"mac_local_fault", offsetof(struct ixgbe_hw_stats, mlfc)},
-   {"mac_remote_fault", offsetof(struct ixgbe_hw_stats, mrfc)},
-   {"mac_short_pkt_discard", offsetof(struct ixgbe_hw_stats, mspdc)},
-   {"fccrc_error", offsetof(struct ixgbe_hw_stats, fccrc)},
-   {"fcoe_drop", offsetof(struct ixgbe_hw_stats, fcoerpdc)},
-   {"fc_last_error", offsetof(struct ixgbe_hw_stats, fclast)},
-   {"rx_broadcast_packets", offsetof(struct ixgbe_hw_stats, bprc)},
-   {"rx_phy_multicast_packets", offsetof(struct ixgbe_hw_stats, mprc)},
-   {"mgmt_pkts_dropped", offsetof(struct ixgbe_hw_stats, mngpdc)},
{"rx_crc_errors", offsetof(struct ixgbe_hw_stats, crcerrs)},
-   {"fdir_match", offsetof(struct ixgbe_hw_stats, fdirmatch)},
-   {"fdir_miss", offsetof(struct ixgbe_hw_stats, fdirmiss)},
-   {"tx_flow_control_xon", offsetof(struct ixgbe_hw_stats, lxontxc)},
-   {"rx_flow_control_xon", offsetof(struct ixgbe_hw_stats, lxonrxc)},
-   {"tx_flow_control_xoff", offsetof(struct ixgbe_hw_stats, lxofftxc)},
-   {"rx_flow_control_xoff", offsetof(struct ixgbe_hw_stats, lxoffrxc)},
+   {"rx_illegal_byte_errors", offsetof(struct ixgbe_hw_stats, illerrc)},
+   {"rx_error_bytes", offsetof(struct ixgbe_hw_stats, errbc)},
+   {"mac_local_errors", offsetof(struct ixgbe_hw_stats, mlfc)},
+   {"mac_remote_errors", offsetof(struct ixgbe_hw_stats, mrfc)},
+   {"rx_length_errors", offsetof(struct ixgbe_hw_stats, rlec)},
+   {"tx_xon_packets", offsetof(struct ixgbe_hw_stats, lxontxc)},
+   {"rx_xon_packets", offsetof(struct ixgbe_hw_stats, lxonrxc)},
+   {"tx_xoff_packets", offsetof(struct ixgbe_hw_stats, lxofftxc)},
+   {"rx_xoff_packets", offsetof(struct ixgbe_hw_stats, lxoffrxc)},
+   {"rx_size_64_packets", offsetof(struct ixgbe_hw_stats, prc64)},
+   {"rx_size_65_to_127_packets", offsetof(struct ixgbe_hw_stats, prc127)},
+   {"rx_size_128_to_255_packets", offsetof(struct ixgbe_hw_stats, prc255)},
+   {"rx_size_256_to_511_packets", offsetof(struct ixgbe_hw_stats, prc511)},
+   {"rx_size_512_to_1023_packets", offsetof(struct ixgbe_hw_stats,
+   prc1023)},
+   {"rx_size_1024_to_max_packets", offsetof(struct ixgbe_hw_stats,
+   prc1522)},
+   {"rx_broadcast_packets", offsetof(struct ixgbe_hw_stats, bprc)},
+   {"rx_multicast_packets", offsetof(struct ixgbe_hw_stats, mprc)},
+   {"rx_fragment_errors", offsetof(struct ixgbe_hw_stats, rfc)},
+   {"rx_undersize_errors", offsetof(struct ixgbe_hw_stats, ruc)},
+   {"rx_oversize_errors", offsetof(struct ixgbe_hw_stats, roc)},
+   {"rx_jabber_errors", offsetof(struct ixgbe_hw_stats, rjc)},
+   {"rx_managment_packets", offsetof(struct ixgbe_hw_stats, mngprc)},
+   {"rx_managment_dropped", offsetof(struct ixgbe_hw_stats, mngpdc)},
+   {"tx_managment_packets", offsetof(struct ixgbe_hw_stats, mngptc)},
+   {"rx_total_packets", offsetof(struct ixgbe_hw_stats, tpr)},
+   {"rx_total_bytes", offsetof(struct ixgbe_hw_stats, tor)},
+   {"tx_total_packets", offsetof(struct ixgbe_hw_stats, tpt)},
+   {"tx_size_64_packets", offsetof(struct ixgbe_hw_stats, ptc64)},
+   {"tx_size_65_to_127_packets", offsetof(struct ixgbe_hw_stats, ptc127)},
+   {"tx_size_128_to_255_packets", offsetof(struct ixgbe_hw_stats, ptc255)},
+   {"tx_size_256_to_511_packets", offsetof(struct ixgbe_hw_stats, ptc511)},
+   {"tx_size_512_to_1023_packets", offsetof(struct ixgbe_hw_stats,
+   ptc1023)},
+   {"tx_size_1024_to_max_packets", offsetof(struct ixgbe_hw_stats,
+   ptc1522)},
+   {"tx_multicast_packets", offsetof(struct ixgbe_hw_stats, mptc)},
+   {"tx_broadcast_packets", offsetof(struct ixgbe_hw_stats, bptc)},
+   {"rx_mac_short_packet_discard", offsetof(struct ixgbe_hw_stats, mspdc)},
+   {"rx_l3_l4_xsum_error", offsetof(struct ixgbe_hw_stats, xec)},
+
+