X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fsfc%2Fsfc.h;h=30679014e385fccbaf0d86bbdca51f58c906d4b8;hb=63abf8d29225;hp=5a40a73c7fe3cc7a6c1fe0ee0c21bbe640c6a59c;hpb=6de52059e142a1cb6ab78b82ab5a38a6de983eb5;p=dpdk.git diff --git a/drivers/net/sfc/sfc.h b/drivers/net/sfc/sfc.h index 5a40a73c7f..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" { @@ -219,6 +220,8 @@ struct sfc_counter_rxq { struct sfc_sw_stat_data { const struct sfc_sw_stat_descr *descr; + /* Cache fragment */ + uint64_t *cache; }; struct sfc_sw_stats { @@ -227,6 +230,11 @@ struct sfc_sw_stats { /* 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;