Lines Matching defs:xstats
3317 "Cannot get ethdev port %u xstats ID from NULL xstat name",
3324 "Cannot get ethdev port %u xstats ID to NULL",
3332 RTE_ETHDEV_LOG_LINE(ERR, "Cannot get count of xstats");
3341 RTE_ETHDEV_LOG_LINE(ERR, "Cannot get xstats lookup");
3447 * Convert ids to xstats ids that PMD knows.
3536 /* If there are any driver-specific xstats, append them
3557 eth_basic_stats_get(uint16_t port_id, struct rte_eth_xstat *xstats)
3580 xstats[count++].value = val;
3593 xstats[count++].value = val;
3604 xstats[count++].value = val;
3631 struct rte_eth_xstat xstats[expected_entries];
3656 * Convert ids to xstats ids that PMD knows.
3676 /* Fill the xstats structure */
3678 ret = eth_basic_stats_get(port_id, xstats);
3680 ret = rte_eth_xstats_get(port_id, xstats, expected_entries);
3689 values[i] = xstats[i].value;
3699 values[i] = xstats[ids[i]].value;
3708 rte_eth_xstats_get(uint16_t port_id, struct rte_eth_xstat *xstats,
3717 if (xstats == NULL && n > 0)
3725 /* Retrieve the xstats from the driver at the end of the
3726 * xstats struct.
3729 (n > count) ? xstats + count : NULL,
3736 if (n < count + xcount || xstats == NULL)
3739 /* now fill the xstats structure */
3740 ret = eth_basic_stats_get(port_id, xstats);
3746 xstats[i].id = i;
3749 xstats[i].id += count;
3752 rte_eth_trace_xstats_get(port_id, xstats[i]);