Home
last modified time | relevance | path

Searched refs:rate_node_name (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/net/devlink/
H A Drate.c50 const char *rate_node_name; in devlink_rate_node_get_from_attrs() local
55 rate_node_name = nla_data(attrs[DEVLINK_ATTR_RATE_NODE_NAME]); in devlink_rate_node_get_from_attrs()
56 len = strlen(rate_node_name); in devlink_rate_node_get_from_attrs()
58 if (!len || strspn(rate_node_name, "0123456789") == len) in devlink_rate_node_get_from_attrs()
61 return devlink_rate_node_get_by_name(devlink, rate_node_name); in devlink_rate_node_get_from_attrs()
/openbmc/linux/tools/net/ynl/generated/
H A Ddevlink-user.h1683 char *rate_node_name; member
1721 const char *rate_node_name) in devlink_rate_get_req_set_rate_node_name() argument
1723 free(req->rate_node_name); in devlink_rate_get_req_set_rate_node_name()
1724 req->_present.rate_node_name_len = strlen(rate_node_name); in devlink_rate_get_req_set_rate_node_name()
1725 req->rate_node_name = malloc(req->_present.rate_node_name_len + 1); in devlink_rate_get_req_set_rate_node_name()
1726 memcpy(req->rate_node_name, rate_node_name, req->_present.rate_node_name_len); in devlink_rate_get_req_set_rate_node_name()
1727 req->rate_node_name[req->_present.rate_node_name_len] = 0; in devlink_rate_get_req_set_rate_node_name()
1741 char *rate_node_name; member
H A Ddevlink-user.c2554 free(req->rate_node_name); in devlink_rate_get_req_free()
2562 free(rsp->rate_node_name); in devlink_rate_get_rsp_free()
2612 dst->rate_node_name = malloc(len + 1); in devlink_rate_get_rsp_parse()
2613 memcpy(dst->rate_node_name, mnl_attr_get_str(attr), len); in devlink_rate_get_rsp_parse()
2614 dst->rate_node_name[len] = 0; in devlink_rate_get_rsp_parse()
2640 mnl_attr_put_strz(nlh, DEVLINK_ATTR_RATE_NODE_NAME, req->rate_node_name); in devlink_rate_get()
2669 free(rsp->obj.rate_node_name); in devlink_rate_get_list_free()