Lines Matching refs:nlh

675 int ethtool_header_put(struct nlmsghdr *nlh, unsigned int attr_type,  in ethtool_header_put()  argument
680 nest = mnl_attr_nest_start(nlh, attr_type); in ethtool_header_put()
682 mnl_attr_put_u32(nlh, ETHTOOL_A_HEADER_DEV_INDEX, obj->dev_index); in ethtool_header_put()
684 mnl_attr_put_strz(nlh, ETHTOOL_A_HEADER_DEV_NAME, obj->dev_name); in ethtool_header_put()
686 mnl_attr_put_u32(nlh, ETHTOOL_A_HEADER_FLAGS, obj->flags); in ethtool_header_put()
687 mnl_attr_nest_end(nlh, nest); in ethtool_header_put()
732 int ethtool_pause_stat_put(struct nlmsghdr *nlh, unsigned int attr_type, in ethtool_pause_stat_put() argument
737 nest = mnl_attr_nest_start(nlh, attr_type); in ethtool_pause_stat_put()
739 mnl_attr_put_u64(nlh, ETHTOOL_A_PAUSE_STAT_TX_FRAMES, obj->tx_frames); in ethtool_pause_stat_put()
741 mnl_attr_put_u64(nlh, ETHTOOL_A_PAUSE_STAT_RX_FRAMES, obj->rx_frames); in ethtool_pause_stat_put()
742 mnl_attr_nest_end(nlh, nest); in ethtool_pause_stat_put()
783 int ethtool_fec_stat_put(struct nlmsghdr *nlh, unsigned int attr_type, in ethtool_fec_stat_put() argument
788 nest = mnl_attr_nest_start(nlh, attr_type); in ethtool_fec_stat_put()
790 mnl_attr_put(nlh, ETHTOOL_A_FEC_STAT_CORRECTED, obj->_present.corrected_len, obj->corrected); in ethtool_fec_stat_put()
792 mnl_attr_put(nlh, ETHTOOL_A_FEC_STAT_UNCORR, obj->_present.uncorr_len, obj->uncorr); in ethtool_fec_stat_put()
794 mnl_attr_put(nlh, ETHTOOL_A_FEC_STAT_CORR_BITS, obj->_present.corr_bits_len, obj->corr_bits); in ethtool_fec_stat_put()
795 mnl_attr_nest_end(nlh, nest); in ethtool_fec_stat_put()
957 int ethtool_bitset_bit_put(struct nlmsghdr *nlh, unsigned int attr_type, in ethtool_bitset_bit_put() argument
962 nest = mnl_attr_nest_start(nlh, attr_type); in ethtool_bitset_bit_put()
964 mnl_attr_put_u32(nlh, ETHTOOL_A_BITSET_BIT_INDEX, obj->index); in ethtool_bitset_bit_put()
966 mnl_attr_put_strz(nlh, ETHTOOL_A_BITSET_BIT_NAME, obj->name); in ethtool_bitset_bit_put()
968 mnl_attr_put(nlh, ETHTOOL_A_BITSET_BIT_VALUE, 0, NULL); in ethtool_bitset_bit_put()
969 mnl_attr_nest_end(nlh, nest); in ethtool_bitset_bit_put()
1043 int ethtool_string_put(struct nlmsghdr *nlh, unsigned int attr_type, in ethtool_string_put() argument
1048 nest = mnl_attr_nest_start(nlh, attr_type); in ethtool_string_put()
1050 mnl_attr_put_u32(nlh, ETHTOOL_A_STRING_INDEX, obj->index); in ethtool_string_put()
1052 mnl_attr_put_strz(nlh, ETHTOOL_A_STRING_VALUE, obj->value); in ethtool_string_put()
1053 mnl_attr_nest_end(nlh, nest); in ethtool_string_put()
1140 int ethtool_bitset_bits_put(struct nlmsghdr *nlh, unsigned int attr_type, in ethtool_bitset_bits_put() argument
1145 nest = mnl_attr_nest_start(nlh, attr_type); in ethtool_bitset_bits_put()
1147 ethtool_bitset_bit_put(nlh, ETHTOOL_A_BITSET_BITS_BIT, &obj->bit[i]); in ethtool_bitset_bits_put()
1148 mnl_attr_nest_end(nlh, nest); in ethtool_bitset_bits_put()
1202 int ethtool_strings_put(struct nlmsghdr *nlh, unsigned int attr_type, in ethtool_strings_put() argument
1207 nest = mnl_attr_nest_start(nlh, attr_type); in ethtool_strings_put()
1209 ethtool_string_put(nlh, ETHTOOL_A_STRINGS_STRING, &obj->string[i]); in ethtool_strings_put()
1210 mnl_attr_nest_end(nlh, nest); in ethtool_strings_put()
1260 int ethtool_bitset_put(struct nlmsghdr *nlh, unsigned int attr_type, in ethtool_bitset_put() argument
1265 nest = mnl_attr_nest_start(nlh, attr_type); in ethtool_bitset_put()
1267 mnl_attr_put(nlh, ETHTOOL_A_BITSET_NOMASK, 0, NULL); in ethtool_bitset_put()
1269 mnl_attr_put_u32(nlh, ETHTOOL_A_BITSET_SIZE, obj->size); in ethtool_bitset_put()
1271 ethtool_bitset_bits_put(nlh, ETHTOOL_A_BITSET_BITS, &obj->bits); in ethtool_bitset_put()
1272 mnl_attr_nest_end(nlh, nest); in ethtool_bitset_put()
1322 int ethtool_stringset_put(struct nlmsghdr *nlh, unsigned int attr_type, in ethtool_stringset_put() argument
1327 nest = mnl_attr_nest_start(nlh, attr_type); in ethtool_stringset_put()
1329 mnl_attr_put_u32(nlh, ETHTOOL_A_STRINGSET_ID, obj->id); in ethtool_stringset_put()
1331 mnl_attr_put_u32(nlh, ETHTOOL_A_STRINGSET_COUNT, obj->count); in ethtool_stringset_put()
1333 ethtool_strings_put(nlh, ETHTOOL_A_STRINGSET_STRINGS, &obj->strings[i]); in ethtool_stringset_put()
1334 mnl_attr_nest_end(nlh, nest); in ethtool_stringset_put()
1462 int ethtool_stringsets_put(struct nlmsghdr *nlh, unsigned int attr_type, in ethtool_stringsets_put() argument
1467 nest = mnl_attr_nest_start(nlh, attr_type); in ethtool_stringsets_put()
1469 ethtool_stringset_put(nlh, ETHTOOL_A_STRINGSETS_STRINGSET, &obj->stringset[i]); in ethtool_stringsets_put()
1470 mnl_attr_nest_end(nlh, nest); in ethtool_stringsets_put()
1563 int ethtool_strset_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_strset_get_rsp_parse() argument
1573 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_strset_get_rsp_parse()
1605 struct nlmsghdr *nlh; in ethtool_strset_get() local
1608 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_STRSET_GET, 1); in ethtool_strset_get()
1613 ethtool_header_put(nlh, ETHTOOL_A_STRSET_HEADER, &req->header); in ethtool_strset_get()
1615 ethtool_stringsets_put(nlh, ETHTOOL_A_STRSET_STRINGSETS, &req->stringsets); in ethtool_strset_get()
1617 mnl_attr_put(nlh, ETHTOOL_A_STRSET_COUNTS_ONLY, 0, NULL); in ethtool_strset_get()
1624 err = ynl_exec(ys, nlh, &yrs); in ethtool_strset_get()
1655 struct nlmsghdr *nlh; in ethtool_strset_get_dump() local
1664 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_STRSET_GET, 1); in ethtool_strset_get_dump()
1668 ethtool_header_put(nlh, ETHTOOL_A_STRSET_HEADER, &req->header); in ethtool_strset_get_dump()
1670 ethtool_stringsets_put(nlh, ETHTOOL_A_STRSET_STRINGSETS, &req->stringsets); in ethtool_strset_get_dump()
1672 mnl_attr_put(nlh, ETHTOOL_A_STRSET_COUNTS_ONLY, 0, NULL); in ethtool_strset_get_dump()
1674 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_strset_get_dump()
1699 int ethtool_linkinfo_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_linkinfo_get_rsp_parse() argument
1709 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_linkinfo_get_rsp_parse()
1757 struct nlmsghdr *nlh; in ethtool_linkinfo_get() local
1760 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_LINKINFO_GET, 1); in ethtool_linkinfo_get()
1765 ethtool_header_put(nlh, ETHTOOL_A_LINKINFO_HEADER, &req->header); in ethtool_linkinfo_get()
1772 err = ynl_exec(ys, nlh, &yrs); in ethtool_linkinfo_get()
1802 struct nlmsghdr *nlh; in ethtool_linkinfo_get_dump() local
1811 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_LINKINFO_GET, 1); in ethtool_linkinfo_get_dump()
1815 ethtool_header_put(nlh, ETHTOOL_A_LINKINFO_HEADER, &req->header); in ethtool_linkinfo_get_dump()
1817 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_linkinfo_get_dump()
1846 struct nlmsghdr *nlh; in ethtool_linkinfo_set() local
1849 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_LINKINFO_SET, 1); in ethtool_linkinfo_set()
1853 ethtool_header_put(nlh, ETHTOOL_A_LINKINFO_HEADER, &req->header); in ethtool_linkinfo_set()
1855 mnl_attr_put_u8(nlh, ETHTOOL_A_LINKINFO_PORT, req->port); in ethtool_linkinfo_set()
1857 mnl_attr_put_u8(nlh, ETHTOOL_A_LINKINFO_PHYADDR, req->phyaddr); in ethtool_linkinfo_set()
1859 mnl_attr_put_u8(nlh, ETHTOOL_A_LINKINFO_TP_MDIX, req->tp_mdix); in ethtool_linkinfo_set()
1861 mnl_attr_put_u8(nlh, ETHTOOL_A_LINKINFO_TP_MDIX_CTRL, req->tp_mdix_ctrl); in ethtool_linkinfo_set()
1863 mnl_attr_put_u8(nlh, ETHTOOL_A_LINKINFO_TRANSCEIVER, req->transceiver); in ethtool_linkinfo_set()
1865 err = ynl_exec(ys, nlh, NULL); in ethtool_linkinfo_set()
1888 int ethtool_linkmodes_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_linkmodes_get_rsp_parse() argument
1898 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_linkmodes_get_rsp_parse()
1975 struct nlmsghdr *nlh; in ethtool_linkmodes_get() local
1978 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_LINKMODES_GET, 1); in ethtool_linkmodes_get()
1983 ethtool_header_put(nlh, ETHTOOL_A_LINKMODES_HEADER, &req->header); in ethtool_linkmodes_get()
1990 err = ynl_exec(ys, nlh, &yrs); in ethtool_linkmodes_get()
2022 struct nlmsghdr *nlh; in ethtool_linkmodes_get_dump() local
2031 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_LINKMODES_GET, 1); in ethtool_linkmodes_get_dump()
2035 ethtool_header_put(nlh, ETHTOOL_A_LINKMODES_HEADER, &req->header); in ethtool_linkmodes_get_dump()
2037 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_linkmodes_get_dump()
2070 struct nlmsghdr *nlh; in ethtool_linkmodes_set() local
2073 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_LINKMODES_SET, 1); in ethtool_linkmodes_set()
2077 ethtool_header_put(nlh, ETHTOOL_A_LINKMODES_HEADER, &req->header); in ethtool_linkmodes_set()
2079 mnl_attr_put_u8(nlh, ETHTOOL_A_LINKMODES_AUTONEG, req->autoneg); in ethtool_linkmodes_set()
2081 ethtool_bitset_put(nlh, ETHTOOL_A_LINKMODES_OURS, &req->ours); in ethtool_linkmodes_set()
2083 ethtool_bitset_put(nlh, ETHTOOL_A_LINKMODES_PEER, &req->peer); in ethtool_linkmodes_set()
2085 mnl_attr_put_u32(nlh, ETHTOOL_A_LINKMODES_SPEED, req->speed); in ethtool_linkmodes_set()
2087 mnl_attr_put_u8(nlh, ETHTOOL_A_LINKMODES_DUPLEX, req->duplex); in ethtool_linkmodes_set()
2089 mnl_attr_put_u8(nlh, ETHTOOL_A_LINKMODES_MASTER_SLAVE_CFG, req->master_slave_cfg); in ethtool_linkmodes_set()
2091 mnl_attr_put_u8(nlh, ETHTOOL_A_LINKMODES_MASTER_SLAVE_STATE, req->master_slave_state); in ethtool_linkmodes_set()
2093 mnl_attr_put_u32(nlh, ETHTOOL_A_LINKMODES_LANES, req->lanes); in ethtool_linkmodes_set()
2095 mnl_attr_put_u8(nlh, ETHTOOL_A_LINKMODES_RATE_MATCHING, req->rate_matching); in ethtool_linkmodes_set()
2097 err = ynl_exec(ys, nlh, NULL); in ethtool_linkmodes_set()
2118 int ethtool_linkstate_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_linkstate_get_rsp_parse() argument
2128 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_linkstate_get_rsp_parse()
2182 struct nlmsghdr *nlh; in ethtool_linkstate_get() local
2185 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_LINKSTATE_GET, 1); in ethtool_linkstate_get()
2190 ethtool_header_put(nlh, ETHTOOL_A_LINKSTATE_HEADER, &req->header); in ethtool_linkstate_get()
2197 err = ynl_exec(ys, nlh, &yrs); in ethtool_linkstate_get()
2227 struct nlmsghdr *nlh; in ethtool_linkstate_get_dump() local
2236 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_LINKSTATE_GET, 1); in ethtool_linkstate_get_dump()
2240 ethtool_header_put(nlh, ETHTOOL_A_LINKSTATE_HEADER, &req->header); in ethtool_linkstate_get_dump()
2242 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_linkstate_get_dump()
2268 int ethtool_debug_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_debug_get_rsp_parse() argument
2278 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_debug_get_rsp_parse()
2310 struct nlmsghdr *nlh; in ethtool_debug_get() local
2313 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_DEBUG_GET, 1); in ethtool_debug_get()
2318 ethtool_header_put(nlh, ETHTOOL_A_DEBUG_HEADER, &req->header); in ethtool_debug_get()
2325 err = ynl_exec(ys, nlh, &yrs); in ethtool_debug_get()
2356 struct nlmsghdr *nlh; in ethtool_debug_get_dump() local
2365 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_DEBUG_GET, 1); in ethtool_debug_get_dump()
2369 ethtool_header_put(nlh, ETHTOOL_A_DEBUG_HEADER, &req->header); in ethtool_debug_get_dump()
2371 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_debug_get_dump()
2401 struct nlmsghdr *nlh; in ethtool_debug_set() local
2404 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_DEBUG_SET, 1); in ethtool_debug_set()
2408 ethtool_header_put(nlh, ETHTOOL_A_DEBUG_HEADER, &req->header); in ethtool_debug_set()
2410 ethtool_bitset_put(nlh, ETHTOOL_A_DEBUG_MSGMASK, &req->msgmask); in ethtool_debug_set()
2412 err = ynl_exec(ys, nlh, NULL); in ethtool_debug_set()
2435 int ethtool_wol_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_wol_get_rsp_parse() argument
2445 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_wol_get_rsp_parse()
2487 struct nlmsghdr *nlh; in ethtool_wol_get() local
2490 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_WOL_GET, 1); in ethtool_wol_get()
2495 ethtool_header_put(nlh, ETHTOOL_A_WOL_HEADER, &req->header); in ethtool_wol_get()
2502 err = ynl_exec(ys, nlh, &yrs); in ethtool_wol_get()
2533 struct nlmsghdr *nlh; in ethtool_wol_get_dump() local
2542 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_WOL_GET, 1); in ethtool_wol_get_dump()
2546 ethtool_header_put(nlh, ETHTOOL_A_WOL_HEADER, &req->header); in ethtool_wol_get_dump()
2548 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_wol_get_dump()
2580 struct nlmsghdr *nlh; in ethtool_wol_set() local
2583 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_WOL_SET, 1); in ethtool_wol_set()
2587 ethtool_header_put(nlh, ETHTOOL_A_WOL_HEADER, &req->header); in ethtool_wol_set()
2589 ethtool_bitset_put(nlh, ETHTOOL_A_WOL_MODES, &req->modes); in ethtool_wol_set()
2591 mnl_attr_put(nlh, ETHTOOL_A_WOL_SOPASS, req->_present.sopass_len, req->sopass); in ethtool_wol_set()
2593 err = ynl_exec(ys, nlh, NULL); in ethtool_wol_set()
2618 int ethtool_features_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_features_get_rsp_parse() argument
2628 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_features_get_rsp_parse()
2687 struct nlmsghdr *nlh; in ethtool_features_get() local
2690 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_FEATURES_GET, 1); in ethtool_features_get()
2695 ethtool_header_put(nlh, ETHTOOL_A_FEATURES_HEADER, &req->header); in ethtool_features_get()
2702 err = ynl_exec(ys, nlh, &yrs); in ethtool_features_get()
2736 struct nlmsghdr *nlh; in ethtool_features_get_dump() local
2745 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_FEATURES_GET, 1); in ethtool_features_get_dump()
2749 ethtool_header_put(nlh, ETHTOOL_A_FEATURES_HEADER, &req->header); in ethtool_features_get_dump()
2751 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_features_get_dump()
2795 int ethtool_features_set_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_features_set_rsp_parse() argument
2805 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_features_set_rsp_parse()
2864 struct nlmsghdr *nlh; in ethtool_features_set() local
2867 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_FEATURES_SET, 1); in ethtool_features_set()
2872 ethtool_header_put(nlh, ETHTOOL_A_FEATURES_HEADER, &req->header); in ethtool_features_set()
2874 ethtool_bitset_put(nlh, ETHTOOL_A_FEATURES_HW, &req->hw); in ethtool_features_set()
2876 ethtool_bitset_put(nlh, ETHTOOL_A_FEATURES_WANTED, &req->wanted); in ethtool_features_set()
2878 ethtool_bitset_put(nlh, ETHTOOL_A_FEATURES_ACTIVE, &req->active); in ethtool_features_set()
2880 ethtool_bitset_put(nlh, ETHTOOL_A_FEATURES_NOCHANGE, &req->nochange); in ethtool_features_set()
2887 err = ynl_exec(ys, nlh, &yrs); in ethtool_features_set()
2913 int ethtool_privflags_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_privflags_get_rsp_parse() argument
2923 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_privflags_get_rsp_parse()
2956 struct nlmsghdr *nlh; in ethtool_privflags_get() local
2959 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_PRIVFLAGS_GET, 1); in ethtool_privflags_get()
2964 ethtool_header_put(nlh, ETHTOOL_A_PRIVFLAGS_HEADER, &req->header); in ethtool_privflags_get()
2971 err = ynl_exec(ys, nlh, &yrs); in ethtool_privflags_get()
3002 struct nlmsghdr *nlh; in ethtool_privflags_get_dump() local
3011 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_PRIVFLAGS_GET, 1); in ethtool_privflags_get_dump()
3015 ethtool_header_put(nlh, ETHTOOL_A_PRIVFLAGS_HEADER, &req->header); in ethtool_privflags_get_dump()
3017 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_privflags_get_dump()
3048 struct nlmsghdr *nlh; in ethtool_privflags_set() local
3051 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_PRIVFLAGS_SET, 1); in ethtool_privflags_set()
3055 ethtool_header_put(nlh, ETHTOOL_A_PRIVFLAGS_HEADER, &req->header); in ethtool_privflags_set()
3057 ethtool_bitset_put(nlh, ETHTOOL_A_PRIVFLAGS_FLAGS, &req->flags); in ethtool_privflags_set()
3059 err = ynl_exec(ys, nlh, NULL); in ethtool_privflags_set()
3080 int ethtool_rings_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_rings_get_rsp_parse() argument
3090 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_rings_get_rsp_parse()
3188 struct nlmsghdr *nlh; in ethtool_rings_get() local
3191 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_RINGS_GET, 1); in ethtool_rings_get()
3196 ethtool_header_put(nlh, ETHTOOL_A_RINGS_HEADER, &req->header); in ethtool_rings_get()
3203 err = ynl_exec(ys, nlh, &yrs); in ethtool_rings_get()
3233 struct nlmsghdr *nlh; in ethtool_rings_get_dump() local
3242 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_RINGS_GET, 1); in ethtool_rings_get_dump()
3246 ethtool_header_put(nlh, ETHTOOL_A_RINGS_HEADER, &req->header); in ethtool_rings_get_dump()
3248 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_rings_get_dump()
3276 struct nlmsghdr *nlh; in ethtool_rings_set() local
3279 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_RINGS_SET, 1); in ethtool_rings_set()
3283 ethtool_header_put(nlh, ETHTOOL_A_RINGS_HEADER, &req->header); in ethtool_rings_set()
3285 mnl_attr_put_u32(nlh, ETHTOOL_A_RINGS_RX_MAX, req->rx_max); in ethtool_rings_set()
3287 mnl_attr_put_u32(nlh, ETHTOOL_A_RINGS_RX_MINI_MAX, req->rx_mini_max); in ethtool_rings_set()
3289 mnl_attr_put_u32(nlh, ETHTOOL_A_RINGS_RX_JUMBO_MAX, req->rx_jumbo_max); in ethtool_rings_set()
3291 mnl_attr_put_u32(nlh, ETHTOOL_A_RINGS_TX_MAX, req->tx_max); in ethtool_rings_set()
3293 mnl_attr_put_u32(nlh, ETHTOOL_A_RINGS_RX, req->rx); in ethtool_rings_set()
3295 mnl_attr_put_u32(nlh, ETHTOOL_A_RINGS_RX_MINI, req->rx_mini); in ethtool_rings_set()
3297 mnl_attr_put_u32(nlh, ETHTOOL_A_RINGS_RX_JUMBO, req->rx_jumbo); in ethtool_rings_set()
3299 mnl_attr_put_u32(nlh, ETHTOOL_A_RINGS_TX, req->tx); in ethtool_rings_set()
3301 mnl_attr_put_u32(nlh, ETHTOOL_A_RINGS_RX_BUF_LEN, req->rx_buf_len); in ethtool_rings_set()
3303 mnl_attr_put_u8(nlh, ETHTOOL_A_RINGS_TCP_DATA_SPLIT, req->tcp_data_split); in ethtool_rings_set()
3305 mnl_attr_put_u32(nlh, ETHTOOL_A_RINGS_CQE_SIZE, req->cqe_size); in ethtool_rings_set()
3307 mnl_attr_put_u8(nlh, ETHTOOL_A_RINGS_TX_PUSH, req->tx_push); in ethtool_rings_set()
3309 mnl_attr_put_u8(nlh, ETHTOOL_A_RINGS_RX_PUSH, req->rx_push); in ethtool_rings_set()
3311 mnl_attr_put_u32(nlh, ETHTOOL_A_RINGS_TX_PUSH_BUF_LEN, req->tx_push_buf_len); in ethtool_rings_set()
3313 mnl_attr_put_u32(nlh, ETHTOOL_A_RINGS_TX_PUSH_BUF_LEN_MAX, req->tx_push_buf_len_max); in ethtool_rings_set()
3315 err = ynl_exec(ys, nlh, NULL); in ethtool_rings_set()
3336 int ethtool_channels_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_channels_get_rsp_parse() argument
3346 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_channels_get_rsp_parse()
3409 struct nlmsghdr *nlh; in ethtool_channels_get() local
3412 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_CHANNELS_GET, 1); in ethtool_channels_get()
3417 ethtool_header_put(nlh, ETHTOOL_A_CHANNELS_HEADER, &req->header); in ethtool_channels_get()
3424 err = ynl_exec(ys, nlh, &yrs); in ethtool_channels_get()
3454 struct nlmsghdr *nlh; in ethtool_channels_get_dump() local
3463 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_CHANNELS_GET, 1); in ethtool_channels_get_dump()
3467 ethtool_header_put(nlh, ETHTOOL_A_CHANNELS_HEADER, &req->header); in ethtool_channels_get_dump()
3469 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_channels_get_dump()
3498 struct nlmsghdr *nlh; in ethtool_channels_set() local
3501 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_CHANNELS_SET, 1); in ethtool_channels_set()
3505 ethtool_header_put(nlh, ETHTOOL_A_CHANNELS_HEADER, &req->header); in ethtool_channels_set()
3507 mnl_attr_put_u32(nlh, ETHTOOL_A_CHANNELS_RX_MAX, req->rx_max); in ethtool_channels_set()
3509 mnl_attr_put_u32(nlh, ETHTOOL_A_CHANNELS_TX_MAX, req->tx_max); in ethtool_channels_set()
3511 mnl_attr_put_u32(nlh, ETHTOOL_A_CHANNELS_OTHER_MAX, req->other_max); in ethtool_channels_set()
3513 mnl_attr_put_u32(nlh, ETHTOOL_A_CHANNELS_COMBINED_MAX, req->combined_max); in ethtool_channels_set()
3515 mnl_attr_put_u32(nlh, ETHTOOL_A_CHANNELS_RX_COUNT, req->rx_count); in ethtool_channels_set()
3517 mnl_attr_put_u32(nlh, ETHTOOL_A_CHANNELS_TX_COUNT, req->tx_count); in ethtool_channels_set()
3519 mnl_attr_put_u32(nlh, ETHTOOL_A_CHANNELS_OTHER_COUNT, req->other_count); in ethtool_channels_set()
3521 mnl_attr_put_u32(nlh, ETHTOOL_A_CHANNELS_COMBINED_COUNT, req->combined_count); in ethtool_channels_set()
3523 err = ynl_exec(ys, nlh, NULL); in ethtool_channels_set()
3544 int ethtool_coalesce_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_coalesce_get_rsp_parse() argument
3554 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_coalesce_get_rsp_parse()
3712 struct nlmsghdr *nlh; in ethtool_coalesce_get() local
3715 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_COALESCE_GET, 1); in ethtool_coalesce_get()
3720 ethtool_header_put(nlh, ETHTOOL_A_COALESCE_HEADER, &req->header); in ethtool_coalesce_get()
3727 err = ynl_exec(ys, nlh, &yrs); in ethtool_coalesce_get()
3757 struct nlmsghdr *nlh; in ethtool_coalesce_get_dump() local
3766 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_COALESCE_GET, 1); in ethtool_coalesce_get_dump()
3770 ethtool_header_put(nlh, ETHTOOL_A_COALESCE_HEADER, &req->header); in ethtool_coalesce_get_dump()
3772 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_coalesce_get_dump()
3801 struct nlmsghdr *nlh; in ethtool_coalesce_set() local
3804 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_COALESCE_SET, 1); in ethtool_coalesce_set()
3808 ethtool_header_put(nlh, ETHTOOL_A_COALESCE_HEADER, &req->header); in ethtool_coalesce_set()
3810 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_RX_USECS, req->rx_usecs); in ethtool_coalesce_set()
3812 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_RX_MAX_FRAMES, req->rx_max_frames); in ethtool_coalesce_set()
3814 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_RX_USECS_IRQ, req->rx_usecs_irq); in ethtool_coalesce_set()
3816 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_RX_MAX_FRAMES_IRQ, req->rx_max_frames_irq); in ethtool_coalesce_set()
3818 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_TX_USECS, req->tx_usecs); in ethtool_coalesce_set()
3820 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_TX_MAX_FRAMES, req->tx_max_frames); in ethtool_coalesce_set()
3822 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_TX_USECS_IRQ, req->tx_usecs_irq); in ethtool_coalesce_set()
3824 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_TX_MAX_FRAMES_IRQ, req->tx_max_frames_irq); in ethtool_coalesce_set()
3826 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_STATS_BLOCK_USECS, req->stats_block_usecs); in ethtool_coalesce_set()
3828 mnl_attr_put_u8(nlh, ETHTOOL_A_COALESCE_USE_ADAPTIVE_RX, req->use_adaptive_rx); in ethtool_coalesce_set()
3830 mnl_attr_put_u8(nlh, ETHTOOL_A_COALESCE_USE_ADAPTIVE_TX, req->use_adaptive_tx); in ethtool_coalesce_set()
3832 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_PKT_RATE_LOW, req->pkt_rate_low); in ethtool_coalesce_set()
3834 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_RX_USECS_LOW, req->rx_usecs_low); in ethtool_coalesce_set()
3836 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_RX_MAX_FRAMES_LOW, req->rx_max_frames_low); in ethtool_coalesce_set()
3838 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_TX_USECS_LOW, req->tx_usecs_low); in ethtool_coalesce_set()
3840 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_TX_MAX_FRAMES_LOW, req->tx_max_frames_low); in ethtool_coalesce_set()
3842 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_PKT_RATE_HIGH, req->pkt_rate_high); in ethtool_coalesce_set()
3844 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_RX_USECS_HIGH, req->rx_usecs_high); in ethtool_coalesce_set()
3846 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_RX_MAX_FRAMES_HIGH, req->rx_max_frames_high); in ethtool_coalesce_set()
3848 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_TX_USECS_HIGH, req->tx_usecs_high); in ethtool_coalesce_set()
3850 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_TX_MAX_FRAMES_HIGH, req->tx_max_frames_high); in ethtool_coalesce_set()
3852 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_RATE_SAMPLE_INTERVAL, req->rate_sample_interval); in ethtool_coalesce_set()
3854 mnl_attr_put_u8(nlh, ETHTOOL_A_COALESCE_USE_CQE_MODE_TX, req->use_cqe_mode_tx); in ethtool_coalesce_set()
3856 mnl_attr_put_u8(nlh, ETHTOOL_A_COALESCE_USE_CQE_MODE_RX, req->use_cqe_mode_rx); in ethtool_coalesce_set()
3858 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_TX_AGGR_MAX_BYTES, req->tx_aggr_max_bytes); in ethtool_coalesce_set()
3860 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_TX_AGGR_MAX_FRAMES, req->tx_aggr_max_frames); in ethtool_coalesce_set()
3862 mnl_attr_put_u32(nlh, ETHTOOL_A_COALESCE_TX_AGGR_TIME_USECS, req->tx_aggr_time_usecs); in ethtool_coalesce_set()
3864 err = ynl_exec(ys, nlh, NULL); in ethtool_coalesce_set()
3886 int ethtool_pause_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_pause_get_rsp_parse() argument
3896 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_pause_get_rsp_parse()
3948 struct nlmsghdr *nlh; in ethtool_pause_get() local
3951 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_PAUSE_GET, 1); in ethtool_pause_get()
3956 ethtool_header_put(nlh, ETHTOOL_A_PAUSE_HEADER, &req->header); in ethtool_pause_get()
3963 err = ynl_exec(ys, nlh, &yrs); in ethtool_pause_get()
3994 struct nlmsghdr *nlh; in ethtool_pause_get_dump() local
4003 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_PAUSE_GET, 1); in ethtool_pause_get_dump()
4007 ethtool_header_put(nlh, ETHTOOL_A_PAUSE_HEADER, &req->header); in ethtool_pause_get_dump()
4009 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_pause_get_dump()
4039 struct nlmsghdr *nlh; in ethtool_pause_set() local
4042 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_PAUSE_SET, 1); in ethtool_pause_set()
4046 ethtool_header_put(nlh, ETHTOOL_A_PAUSE_HEADER, &req->header); in ethtool_pause_set()
4048 mnl_attr_put_u8(nlh, ETHTOOL_A_PAUSE_AUTONEG, req->autoneg); in ethtool_pause_set()
4050 mnl_attr_put_u8(nlh, ETHTOOL_A_PAUSE_RX, req->rx); in ethtool_pause_set()
4052 mnl_attr_put_u8(nlh, ETHTOOL_A_PAUSE_TX, req->tx); in ethtool_pause_set()
4054 ethtool_pause_stat_put(nlh, ETHTOOL_A_PAUSE_STATS, &req->stats); in ethtool_pause_set()
4056 mnl_attr_put_u32(nlh, ETHTOOL_A_PAUSE_STATS_SRC, req->stats_src); in ethtool_pause_set()
4058 err = ynl_exec(ys, nlh, NULL); in ethtool_pause_set()
4081 int ethtool_eee_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_eee_get_rsp_parse() argument
4091 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_eee_get_rsp_parse()
4152 struct nlmsghdr *nlh; in ethtool_eee_get() local
4155 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_EEE_GET, 1); in ethtool_eee_get()
4160 ethtool_header_put(nlh, ETHTOOL_A_EEE_HEADER, &req->header); in ethtool_eee_get()
4167 err = ynl_exec(ys, nlh, &yrs); in ethtool_eee_get()
4198 struct nlmsghdr *nlh; in ethtool_eee_get_dump() local
4207 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_EEE_GET, 1); in ethtool_eee_get_dump()
4211 ethtool_header_put(nlh, ETHTOOL_A_EEE_HEADER, &req->header); in ethtool_eee_get_dump()
4213 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_eee_get_dump()
4245 struct nlmsghdr *nlh; in ethtool_eee_set() local
4248 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_EEE_SET, 1); in ethtool_eee_set()
4252 ethtool_header_put(nlh, ETHTOOL_A_EEE_HEADER, &req->header); in ethtool_eee_set()
4254 ethtool_bitset_put(nlh, ETHTOOL_A_EEE_MODES_OURS, &req->modes_ours); in ethtool_eee_set()
4256 ethtool_bitset_put(nlh, ETHTOOL_A_EEE_MODES_PEER, &req->modes_peer); in ethtool_eee_set()
4258 mnl_attr_put_u8(nlh, ETHTOOL_A_EEE_ACTIVE, req->active); in ethtool_eee_set()
4260 mnl_attr_put_u8(nlh, ETHTOOL_A_EEE_ENABLED, req->enabled); in ethtool_eee_set()
4262 mnl_attr_put_u8(nlh, ETHTOOL_A_EEE_TX_LPI_ENABLED, req->tx_lpi_enabled); in ethtool_eee_set()
4264 mnl_attr_put_u32(nlh, ETHTOOL_A_EEE_TX_LPI_TIMER, req->tx_lpi_timer); in ethtool_eee_set()
4266 err = ynl_exec(ys, nlh, NULL); in ethtool_eee_set()
4290 int ethtool_tsinfo_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_tsinfo_get_rsp_parse() argument
4300 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_tsinfo_get_rsp_parse()
4355 struct nlmsghdr *nlh; in ethtool_tsinfo_get() local
4358 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_TSINFO_GET, 1); in ethtool_tsinfo_get()
4363 ethtool_header_put(nlh, ETHTOOL_A_TSINFO_HEADER, &req->header); in ethtool_tsinfo_get()
4370 err = ynl_exec(ys, nlh, &yrs); in ethtool_tsinfo_get()
4403 struct nlmsghdr *nlh; in ethtool_tsinfo_get_dump() local
4412 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_TSINFO_GET, 1); in ethtool_tsinfo_get_dump()
4416 ethtool_header_put(nlh, ETHTOOL_A_TSINFO_HEADER, &req->header); in ethtool_tsinfo_get_dump()
4418 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_tsinfo_get_dump()
4440 struct nlmsghdr *nlh; in ethtool_cable_test_act() local
4443 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_CABLE_TEST_ACT, 1); in ethtool_cable_test_act()
4447 ethtool_header_put(nlh, ETHTOOL_A_CABLE_TEST_HEADER, &req->header); in ethtool_cable_test_act()
4449 err = ynl_exec(ys, nlh, NULL); in ethtool_cable_test_act()
4468 struct nlmsghdr *nlh; in ethtool_cable_test_tdr_act() local
4471 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_CABLE_TEST_TDR_ACT, 1); in ethtool_cable_test_tdr_act()
4475 ethtool_header_put(nlh, ETHTOOL_A_CABLE_TEST_TDR_HEADER, &req->header); in ethtool_cable_test_tdr_act()
4477 err = ynl_exec(ys, nlh, NULL); in ethtool_cable_test_tdr_act()
4499 int ethtool_tunnel_info_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_tunnel_info_get_rsp_parse() argument
4509 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_tunnel_info_get_rsp_parse()
4542 struct nlmsghdr *nlh; in ethtool_tunnel_info_get() local
4545 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_TUNNEL_INFO_GET, 1); in ethtool_tunnel_info_get()
4550 ethtool_header_put(nlh, ETHTOOL_A_TUNNEL_INFO_HEADER, &req->header); in ethtool_tunnel_info_get()
4557 err = ynl_exec(ys, nlh, &yrs); in ethtool_tunnel_info_get()
4589 struct nlmsghdr *nlh; in ethtool_tunnel_info_get_dump() local
4598 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_TUNNEL_INFO_GET, 1); in ethtool_tunnel_info_get_dump()
4602 ethtool_header_put(nlh, ETHTOOL_A_TUNNEL_INFO_HEADER, &req->header); in ethtool_tunnel_info_get_dump()
4604 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_tunnel_info_get_dump()
4631 int ethtool_fec_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_fec_get_rsp_parse() argument
4641 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_fec_get_rsp_parse()
4692 struct nlmsghdr *nlh; in ethtool_fec_get() local
4695 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_FEC_GET, 1); in ethtool_fec_get()
4700 ethtool_header_put(nlh, ETHTOOL_A_FEC_HEADER, &req->header); in ethtool_fec_get()
4707 err = ynl_exec(ys, nlh, &yrs); in ethtool_fec_get()
4738 struct nlmsghdr *nlh; in ethtool_fec_get_dump() local
4747 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_FEC_GET, 1); in ethtool_fec_get_dump()
4751 ethtool_header_put(nlh, ETHTOOL_A_FEC_HEADER, &req->header); in ethtool_fec_get_dump()
4753 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_fec_get_dump()
4785 struct nlmsghdr *nlh; in ethtool_fec_set() local
4788 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_FEC_SET, 1); in ethtool_fec_set()
4792 ethtool_header_put(nlh, ETHTOOL_A_FEC_HEADER, &req->header); in ethtool_fec_set()
4794 ethtool_bitset_put(nlh, ETHTOOL_A_FEC_MODES, &req->modes); in ethtool_fec_set()
4796 mnl_attr_put_u8(nlh, ETHTOOL_A_FEC_AUTO, req->auto_); in ethtool_fec_set()
4798 mnl_attr_put_u32(nlh, ETHTOOL_A_FEC_ACTIVE, req->active); in ethtool_fec_set()
4800 ethtool_fec_stat_put(nlh, ETHTOOL_A_FEC_STATS, &req->stats); in ethtool_fec_set()
4802 err = ynl_exec(ys, nlh, NULL); in ethtool_fec_set()
4826 int ethtool_module_eeprom_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_module_eeprom_get_rsp_parse() argument
4836 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_module_eeprom_get_rsp_parse()
4895 struct nlmsghdr *nlh; in ethtool_module_eeprom_get() local
4898 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_MODULE_EEPROM_GET, 1); in ethtool_module_eeprom_get()
4903 ethtool_header_put(nlh, ETHTOOL_A_MODULE_EEPROM_HEADER, &req->header); in ethtool_module_eeprom_get()
4910 err = ynl_exec(ys, nlh, &yrs); in ethtool_module_eeprom_get()
4942 struct nlmsghdr *nlh; in ethtool_module_eeprom_get_dump() local
4951 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_MODULE_EEPROM_GET, 1); in ethtool_module_eeprom_get_dump()
4955 ethtool_header_put(nlh, ETHTOOL_A_MODULE_EEPROM_HEADER, &req->header); in ethtool_module_eeprom_get_dump()
4957 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_module_eeprom_get_dump()
4982 int ethtool_phc_vclocks_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_phc_vclocks_get_rsp_parse() argument
4992 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_phc_vclocks_get_rsp_parse()
5021 struct nlmsghdr *nlh; in ethtool_phc_vclocks_get() local
5024 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_PHC_VCLOCKS_GET, 1); in ethtool_phc_vclocks_get()
5029 ethtool_header_put(nlh, ETHTOOL_A_PHC_VCLOCKS_HEADER, &req->header); in ethtool_phc_vclocks_get()
5036 err = ynl_exec(ys, nlh, &yrs); in ethtool_phc_vclocks_get()
5067 struct nlmsghdr *nlh; in ethtool_phc_vclocks_get_dump() local
5076 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_PHC_VCLOCKS_GET, 1); in ethtool_phc_vclocks_get_dump()
5080 ethtool_header_put(nlh, ETHTOOL_A_PHC_VCLOCKS_HEADER, &req->header); in ethtool_phc_vclocks_get_dump()
5082 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_phc_vclocks_get_dump()
5107 int ethtool_module_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_module_get_rsp_parse() argument
5117 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_module_get_rsp_parse()
5150 struct nlmsghdr *nlh; in ethtool_module_get() local
5153 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_MODULE_GET, 1); in ethtool_module_get()
5158 ethtool_header_put(nlh, ETHTOOL_A_MODULE_HEADER, &req->header); in ethtool_module_get()
5165 err = ynl_exec(ys, nlh, &yrs); in ethtool_module_get()
5195 struct nlmsghdr *nlh; in ethtool_module_get_dump() local
5204 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_MODULE_GET, 1); in ethtool_module_get_dump()
5208 ethtool_header_put(nlh, ETHTOOL_A_MODULE_HEADER, &req->header); in ethtool_module_get_dump()
5210 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_module_get_dump()
5238 struct nlmsghdr *nlh; in ethtool_module_set() local
5241 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_MODULE_SET, 1); in ethtool_module_set()
5245 ethtool_header_put(nlh, ETHTOOL_A_MODULE_HEADER, &req->header); in ethtool_module_set()
5247 mnl_attr_put_u8(nlh, ETHTOOL_A_MODULE_POWER_MODE_POLICY, req->power_mode_policy); in ethtool_module_set()
5249 mnl_attr_put_u8(nlh, ETHTOOL_A_MODULE_POWER_MODE, req->power_mode); in ethtool_module_set()
5251 err = ynl_exec(ys, nlh, NULL); in ethtool_module_set()
5272 int ethtool_pse_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_pse_get_rsp_parse() argument
5282 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_pse_get_rsp_parse()
5320 struct nlmsghdr *nlh; in ethtool_pse_get() local
5323 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_PSE_GET, 1); in ethtool_pse_get()
5328 ethtool_header_put(nlh, ETHTOOL_A_PSE_HEADER, &req->header); in ethtool_pse_get()
5335 err = ynl_exec(ys, nlh, &yrs); in ethtool_pse_get()
5364 struct nlmsghdr *nlh; in ethtool_pse_get_dump() local
5373 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_PSE_GET, 1); in ethtool_pse_get_dump()
5377 ethtool_header_put(nlh, ETHTOOL_A_PSE_HEADER, &req->header); in ethtool_pse_get_dump()
5379 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_pse_get_dump()
5400 struct nlmsghdr *nlh; in ethtool_pse_set() local
5403 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_PSE_SET, 1); in ethtool_pse_set()
5407 ethtool_header_put(nlh, ETHTOOL_A_PSE_HEADER, &req->header); in ethtool_pse_set()
5409 mnl_attr_put_u32(nlh, ETHTOOL_A_PODL_PSE_ADMIN_STATE, req->admin_state); in ethtool_pse_set()
5411 mnl_attr_put_u32(nlh, ETHTOOL_A_PODL_PSE_ADMIN_CONTROL, req->admin_control); in ethtool_pse_set()
5413 mnl_attr_put_u32(nlh, ETHTOOL_A_PODL_PSE_PW_D_STATUS, req->pw_d_status); in ethtool_pse_set()
5415 err = ynl_exec(ys, nlh, NULL); in ethtool_pse_set()
5438 int ethtool_rss_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_rss_get_rsp_parse() argument
5448 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_rss_get_rsp_parse()
5501 struct nlmsghdr *nlh; in ethtool_rss_get() local
5504 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_RSS_GET, 1); in ethtool_rss_get()
5509 ethtool_header_put(nlh, ETHTOOL_A_RSS_HEADER, &req->header); in ethtool_rss_get()
5516 err = ynl_exec(ys, nlh, &yrs); in ethtool_rss_get()
5547 struct nlmsghdr *nlh; in ethtool_rss_get_dump() local
5556 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_RSS_GET, 1); in ethtool_rss_get_dump()
5560 ethtool_header_put(nlh, ETHTOOL_A_RSS_HEADER, &req->header); in ethtool_rss_get_dump()
5562 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_rss_get_dump()
5587 int ethtool_plca_get_cfg_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_plca_get_cfg_rsp_parse() argument
5597 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_plca_get_cfg_rsp_parse()
5660 struct nlmsghdr *nlh; in ethtool_plca_get_cfg() local
5663 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_PLCA_GET_CFG, 1); in ethtool_plca_get_cfg()
5668 ethtool_header_put(nlh, ETHTOOL_A_PLCA_HEADER, &req->header); in ethtool_plca_get_cfg()
5675 err = ynl_exec(ys, nlh, &yrs); in ethtool_plca_get_cfg()
5705 struct nlmsghdr *nlh; in ethtool_plca_get_cfg_dump() local
5714 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_PLCA_GET_CFG, 1); in ethtool_plca_get_cfg_dump()
5718 ethtool_header_put(nlh, ETHTOOL_A_PLCA_HEADER, &req->header); in ethtool_plca_get_cfg_dump()
5720 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_plca_get_cfg_dump()
5749 struct nlmsghdr *nlh; in ethtool_plca_set_cfg() local
5752 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_PLCA_SET_CFG, 1); in ethtool_plca_set_cfg()
5756 ethtool_header_put(nlh, ETHTOOL_A_PLCA_HEADER, &req->header); in ethtool_plca_set_cfg()
5758 mnl_attr_put_u16(nlh, ETHTOOL_A_PLCA_VERSION, req->version); in ethtool_plca_set_cfg()
5760 mnl_attr_put_u8(nlh, ETHTOOL_A_PLCA_ENABLED, req->enabled); in ethtool_plca_set_cfg()
5762 mnl_attr_put_u8(nlh, ETHTOOL_A_PLCA_STATUS, req->status); in ethtool_plca_set_cfg()
5764 mnl_attr_put_u32(nlh, ETHTOOL_A_PLCA_NODE_CNT, req->node_cnt); in ethtool_plca_set_cfg()
5766 mnl_attr_put_u32(nlh, ETHTOOL_A_PLCA_NODE_ID, req->node_id); in ethtool_plca_set_cfg()
5768 mnl_attr_put_u32(nlh, ETHTOOL_A_PLCA_TO_TMR, req->to_tmr); in ethtool_plca_set_cfg()
5770 mnl_attr_put_u32(nlh, ETHTOOL_A_PLCA_BURST_CNT, req->burst_cnt); in ethtool_plca_set_cfg()
5772 mnl_attr_put_u32(nlh, ETHTOOL_A_PLCA_BURST_TMR, req->burst_tmr); in ethtool_plca_set_cfg()
5774 err = ynl_exec(ys, nlh, NULL); in ethtool_plca_set_cfg()
5795 int ethtool_plca_get_status_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_plca_get_status_rsp_parse() argument
5805 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_plca_get_status_rsp_parse()
5869 struct nlmsghdr *nlh; in ethtool_plca_get_status() local
5872 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_PLCA_GET_STATUS, 1); in ethtool_plca_get_status()
5877 ethtool_header_put(nlh, ETHTOOL_A_PLCA_HEADER, &req->header); in ethtool_plca_get_status()
5884 err = ynl_exec(ys, nlh, &yrs); in ethtool_plca_get_status()
5915 struct nlmsghdr *nlh; in ethtool_plca_get_status_dump() local
5924 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_PLCA_GET_STATUS, 1); in ethtool_plca_get_status_dump()
5928 ethtool_header_put(nlh, ETHTOOL_A_PLCA_HEADER, &req->header); in ethtool_plca_get_status_dump()
5930 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_plca_get_status_dump()
5956 int ethtool_mm_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_mm_get_rsp_parse() argument
5966 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_mm_get_rsp_parse()
6038 struct nlmsghdr *nlh; in ethtool_mm_get() local
6041 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_MM_GET, 1); in ethtool_mm_get()
6046 ethtool_header_put(nlh, ETHTOOL_A_MM_HEADER, &req->header); in ethtool_mm_get()
6053 err = ynl_exec(ys, nlh, &yrs); in ethtool_mm_get()
6083 struct nlmsghdr *nlh; in ethtool_mm_get_dump() local
6092 nlh = ynl_gemsg_start_dump(ys, ys->family_id, ETHTOOL_MSG_MM_GET, 1); in ethtool_mm_get_dump()
6096 ethtool_header_put(nlh, ETHTOOL_A_MM_HEADER, &req->header); in ethtool_mm_get_dump()
6098 err = ynl_exec_dump(ys, nlh, &yds); in ethtool_mm_get_dump()
6127 struct nlmsghdr *nlh; in ethtool_mm_set() local
6130 nlh = ynl_gemsg_start_req(ys, ys->family_id, ETHTOOL_MSG_MM_SET, 1); in ethtool_mm_set()
6134 ethtool_header_put(nlh, ETHTOOL_A_MM_HEADER, &req->header); in ethtool_mm_set()
6136 mnl_attr_put_u8(nlh, ETHTOOL_A_MM_VERIFY_ENABLED, req->verify_enabled); in ethtool_mm_set()
6138 mnl_attr_put_u32(nlh, ETHTOOL_A_MM_VERIFY_TIME, req->verify_time); in ethtool_mm_set()
6140 mnl_attr_put_u8(nlh, ETHTOOL_A_MM_TX_ENABLED, req->tx_enabled); in ethtool_mm_set()
6142 mnl_attr_put_u8(nlh, ETHTOOL_A_MM_PMAC_ENABLED, req->pmac_enabled); in ethtool_mm_set()
6144 mnl_attr_put_u32(nlh, ETHTOOL_A_MM_TX_MIN_FRAG_SIZE, req->tx_min_frag_size); in ethtool_mm_set()
6146 err = ynl_exec(ys, nlh, NULL); in ethtool_mm_set()
6154 int ethtool_cable_test_ntf_rsp_parse(const struct nlmsghdr *nlh, void *data) in ethtool_cable_test_ntf_rsp_parse() argument
6164 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_cable_test_ntf_rsp_parse()
6194 int ethtool_cable_test_tdr_ntf_rsp_parse(const struct nlmsghdr *nlh, in ethtool_cable_test_tdr_ntf_rsp_parse() argument
6205 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in ethtool_cable_test_tdr_ntf_rsp_parse()