On Mon, 26 Jun 2017 10:39:07 +0100 Radu Nicolau <radu.nico...@intel.com> wrote:
> +static const struct rte_ixgbe_xstats_name_off ixgbe_if_mib_strings[] = { > + {"ifNumber", offsetof(struct ixgbe_if_mib_stats, if_number)}, > + {"ifIndex", offsetof(struct ixgbe_if_mib_stats, if_index)}, > + {"ifType", offsetof(struct ixgbe_if_mib_stats, if_type)}, > + {"ifMtu", offsetof(struct ixgbe_if_mib_stats, if_mtu)}, > + {"ifSpeed", offsetof(struct ixgbe_if_mib_stats, if_speed)}, > + {"ifPhysAddress", offsetof(struct ixgbe_if_mib_stats, if_phys_address)}, > + {"ifOperStatus", offsetof(struct ixgbe_if_mib_stats, if_oper_status)}, > + {"ifLastChange", offsetof(struct ixgbe_if_mib_stats, if_last_change)}, > + {"ifHighSpeed", offsetof(struct ixgbe_if_mib_stats, if_high_speed)}, > + {"ifConnectorPresent", offsetof(struct ixgbe_if_mib_stats, > + if_connector_present)}, > + {"ifCounterDiscontinuityTime", offsetof(struct ixgbe_if_mib_stats, > + if_counter_discontinuity_time)}, Most of these should not be xstats. Things like if_index, type and MTU are available through other API's already.