strset
static int hclgevf_get_sset_count(struct hnae3_handle *handle, int strset)
if (strset == ETH_SS_TEST)
else if (strset == ETH_SS_STATS)
static void hclgevf_get_strings(struct hnae3_handle *handle, u32 strset,
if (strset == ETH_SS_STATS)
struct strset *strs_set;
struct strset *set = NULL;
struct strset *strs_set;
struct strset *strtab_strs; /* STRTAB unique strings */
static void *strset_add_str_mem(struct strset *set, size_t add_sz)
int strset__find_str(struct strset *set, const char *s)
int strset__add_str(struct strset *set, const char *s)
const struct strset *s = ctx;
const struct strset *s = ctx;
struct strset *strset__new(size_t max_data_sz, const char *init_data, size_t init_data_sz)
struct strset *set = calloc(1, sizeof(*set));
void strset__free(struct strset *set)
size_t strset__data_size(const struct strset *set)
const char *strset__data(const struct strset *set)
struct strset;
struct strset *strset__new(size_t max_data_sz, const char *init_data, size_t init_data_sz);
void strset__free(struct strset *set);
const char *strset__data(const struct strset *set);
size_t strset__data_size(const struct strset *set);
int strset__find_str(struct strset *set, const char *s);
int strset__add_str(struct strset *set, const char *s);