X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fsfc%2Fsfc.h;h=30679014e385fccbaf0d86bbdca51f58c906d4b8;hb=63abf8d29225;hp=331e06bac6c0df87123147a6114ccbd80eebec1d;hpb=fdd7719eb3c19a76536a3baecbb594c43376528b;p=dpdk.git diff --git a/drivers/net/sfc/sfc.h b/drivers/net/sfc/sfc.h index 331e06bac6..30679014e3 100644 --- a/drivers/net/sfc/sfc.h +++ b/drivers/net/sfc/sfc.h @@ -30,6 +30,7 @@ #include "sfc_sriov.h" #include "sfc_mae.h" #include "sfc_dp.h" +#include "sfc_sw_stats.h" #ifdef __cplusplus extern "C" { @@ -217,7 +218,23 @@ struct sfc_counter_rxq { struct rte_mempool *mp; }; -struct sfc_sw_xstats { +struct sfc_sw_stat_data { + const struct sfc_sw_stat_descr *descr; + /* Cache fragment */ + uint64_t *cache; +}; + +struct sfc_sw_stats { + /* Number extended statistics provided by SW stats */ + unsigned int xstats_count; + /* Supported SW statistics */ + struct sfc_sw_stat_data *supp; + unsigned int supp_count; + + /* Cache for all supported SW statistics */ + uint64_t *cache; + unsigned int cache_count; + uint64_t *reset_vals; rte_spinlock_t queues_bitmap_lock; @@ -257,7 +274,7 @@ struct sfc_adapter { struct sfc_sriov sriov; struct sfc_intr intr; struct sfc_port port; - struct sfc_sw_xstats sw_xstats; + struct sfc_sw_stats sw_stats; struct sfc_filter filter; struct sfc_mae mae;