diff --git a/home/nipa/nipa_out/901895/ynl/old-code/ethtool-user.c b/home/nipa/nipa_out/901895/ynl/new-code/ethtool-user.c index 9007305c8cbd..5d26b7cabffb 100644 --- a/home/nipa/nipa_out/901895/ynl/old-code/ethtool-user.c +++ b/home/nipa/nipa_out/901895/ynl/new-code/ethtool-user.c @@ -507,6 +507,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 = { @@ -3584,6 +3586,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); } } @@ -3729,6 +3741,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/901895/ynl/old-code/ethtool-user.h b/home/nipa/nipa_out/901895/ynl/new-code/ethtool-user.h index 8cdc5a3bbf24..b88fdc0cb3d5 100644 --- a/home/nipa/nipa_out/901895/ynl/old-code/ethtool-user.h +++ b/home/nipa/nipa_out/901895/ynl/new-code/ethtool-user.h @@ -2276,6 +2276,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; @@ -2294,6 +2296,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); @@ -2398,6 +2402,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; @@ -2416,6 +2422,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) @@ -2562,6 +2570,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.