diff --git a/home/nipa/nipa_out/909364/ynl/old-code/ethtool-user.c b/home/nipa/nipa_out/909364/ynl/new-code/ethtool-user.c index 92fe355323b2..f47c5b8f3ad9 100644 --- a/home/nipa/nipa_out/909364/ynl/old-code/ethtool-user.c +++ b/home/nipa/nipa_out/909364/ynl/new-code/ethtool-user.c @@ -510,6 +510,8 @@ const struct ynl_policy_attr ethtool_rings_policy[ETHTOOL_A_RINGS_MAX + 1] = { [ETHTOOL_A_RINGS_RX_PUSH] = { .name = "rx-push", .type = YNL_PT_U8, }, [ETHTOOL_A_RINGS_TX_PUSH_BUF_LEN] = { .name = "tx-push-buf-len", .type = YNL_PT_U32, }, [ETHTOOL_A_RINGS_TX_PUSH_BUF_LEN_MAX] = { .name = "tx-push-buf-len-max", .type = YNL_PT_U32, }, + [ETHTOOL_A_RINGS_HEADER_DATA_SPLIT_THRESH] = { .name = "header-data-split-thresh", .type = YNL_PT_U32, }, + [ETHTOOL_A_RINGS_HEADER_DATA_SPLIT_THRESH_MAX] = { .name = "header-data-split-thresh-max", .type = YNL_PT_U32, }, }; const struct ynl_policy_nest ethtool_rings_nest = { @@ -3613,6 +3615,16 @@ int ethtool_rings_get_rsp_parse(const struct nlmsghdr *nlh, return YNL_PARSE_CB_ERROR; dst->_present.tx_push_buf_len_max = 1; dst->tx_push_buf_len_max = ynl_attr_get_u32(attr); + } else if (type == ETHTOOL_A_RINGS_HEADER_DATA_SPLIT_THRESH) { + if (ynl_attr_validate(yarg, attr)) + return YNL_PARSE_CB_ERROR; + dst->_present.header_data_split_thresh = 1; + dst->header_data_split_thresh = ynl_attr_get_u32(attr); + } else if (type == ETHTOOL_A_RINGS_HEADER_DATA_SPLIT_THRESH_MAX) { + if (ynl_attr_validate(yarg, attr)) + return YNL_PARSE_CB_ERROR; + dst->_present.header_data_split_thresh_max = 1; + dst->header_data_split_thresh_max = ynl_attr_get_u32(attr); } } @@ -3758,6 +3770,10 @@ int ethtool_rings_set(struct ynl_sock *ys, struct ethtool_rings_set_req *req) ynl_attr_put_u32(nlh, ETHTOOL_A_RINGS_TX_PUSH_BUF_LEN, req->tx_push_buf_len); if (req->_present.tx_push_buf_len_max) ynl_attr_put_u32(nlh, ETHTOOL_A_RINGS_TX_PUSH_BUF_LEN_MAX, req->tx_push_buf_len_max); + if (req->_present.header_data_split_thresh) + ynl_attr_put_u32(nlh, ETHTOOL_A_RINGS_HEADER_DATA_SPLIT_THRESH, req->header_data_split_thresh); + if (req->_present.header_data_split_thresh_max) + ynl_attr_put_u32(nlh, ETHTOOL_A_RINGS_HEADER_DATA_SPLIT_THRESH_MAX, req->header_data_split_thresh_max); err = ynl_exec(ys, nlh, &yrs); if (err < 0) diff --git a/home/nipa/nipa_out/909364/ynl/old-code/ethtool-user.h b/home/nipa/nipa_out/909364/ynl/new-code/ethtool-user.h index bde5d7750368..0d91c2a95f0f 100644 --- a/home/nipa/nipa_out/909364/ynl/old-code/ethtool-user.h +++ b/home/nipa/nipa_out/909364/ynl/new-code/ethtool-user.h @@ -2460,6 +2460,8 @@ struct ethtool_rings_get_rsp { __u32 rx_push:1; __u32 tx_push_buf_len:1; __u32 tx_push_buf_len_max:1; + __u32 header_data_split_thresh:1; + __u32 header_data_split_thresh_max:1; } _present; struct ethtool_header header; @@ -2478,6 +2480,8 @@ struct ethtool_rings_get_rsp { __u8 rx_push; __u32 tx_push_buf_len; __u32 tx_push_buf_len_max; + __u32 header_data_split_thresh; + __u32 header_data_split_thresh_max; }; void ethtool_rings_get_rsp_free(struct ethtool_rings_get_rsp *rsp); @@ -2582,6 +2586,8 @@ struct ethtool_rings_set_req { __u32 rx_push:1; __u32 tx_push_buf_len:1; __u32 tx_push_buf_len_max:1; + __u32 header_data_split_thresh:1; + __u32 header_data_split_thresh_max:1; } _present; struct ethtool_header header; @@ -2600,6 +2606,8 @@ struct ethtool_rings_set_req { __u8 rx_push; __u32 tx_push_buf_len; __u32 tx_push_buf_len_max; + __u32 header_data_split_thresh; + __u32 header_data_split_thresh_max; }; static inline struct ethtool_rings_set_req *ethtool_rings_set_req_alloc(void) @@ -2746,6 +2754,20 @@ ethtool_rings_set_req_set_tx_push_buf_len_max(struct ethtool_rings_set_req *req, req->_present.tx_push_buf_len_max = 1; req->tx_push_buf_len_max = tx_push_buf_len_max; } +static inline void +ethtool_rings_set_req_set_header_data_split_thresh(struct ethtool_rings_set_req *req, + __u32 header_data_split_thresh) +{ + req->_present.header_data_split_thresh = 1; + req->header_data_split_thresh = header_data_split_thresh; +} +static inline void +ethtool_rings_set_req_set_header_data_split_thresh_max(struct ethtool_rings_set_req *req, + __u32 header_data_split_thresh_max) +{ + req->_present.header_data_split_thresh_max = 1; + req->header_data_split_thresh_max = header_data_split_thresh_max; +} /* * Set ring params.