diff --git a/home/nipa/nipa_out/974533/ynl/old-code/ethtool-user.c b/home/nipa/nipa_out/974533/ynl/new-code/ethtool-user.c index 0025fc09952f..71535931a40c 100644 --- a/home/nipa/nipa_out/974533/ynl/old-code/ethtool-user.c +++ b/home/nipa/nipa_out/974533/ynl/new-code/ethtool-user.c @@ -65,6 +65,7 @@ static const char * const ethtool_op_strmap[] = { [47] = "tsconfig-get", [48] = "tsconfig-set", [49] = "pse-ntf", + [50] = "rss-ntf", }; const char *ethtool_op_str(int op) @@ -6562,6 +6563,15 @@ ethtool_rss_get_dump(struct ynl_sock *ys, struct ethtool_rss_get_req_dump *req) return NULL; } +/* ETHTOOL_MSG_RSS_GET - notify */ +void ethtool_rss_get_ntf_free(struct ethtool_rss_get_ntf *rsp) +{ + ethtool_header_free(&rsp->obj.header); + free(rsp->obj.indir); + free(rsp->obj.hkey); + free(rsp); +} + /* ============== ETHTOOL_MSG_PLCA_GET_CFG ============== */ /* ETHTOOL_MSG_PLCA_GET_CFG - do */ void ethtool_plca_get_cfg_req_free(struct ethtool_plca_get_cfg_req *req) @@ -8025,6 +8035,12 @@ static const struct ynl_ntf_info ethtool_ntf_info[] = { .policy = ðtool_pse_ntf_nest, .free = (void *)ethtool_pse_ntf_free, }, + [ETHTOOL_MSG_RSS_NTF] = { + .alloc_sz = sizeof(struct ethtool_rss_get_ntf), + .cb = ethtool_rss_get_rsp_parse, + .policy = ðtool_rss_nest, + .free = (void *)ethtool_rss_get_ntf_free, + }, }; const struct ynl_family ynl_ethtool_family = { diff --git a/home/nipa/nipa_out/974533/ynl/old-code/ethtool-user.h b/home/nipa/nipa_out/974533/ynl/new-code/ethtool-user.h index 3a022fe22c9f..a4e28438f8b8 100644 --- a/home/nipa/nipa_out/974533/ynl/old-code/ethtool-user.h +++ b/home/nipa/nipa_out/974533/ynl/new-code/ethtool-user.h @@ -5978,6 +5978,17 @@ void ethtool_rss_get_list_free(struct ethtool_rss_get_list *rsp); struct ethtool_rss_get_list * ethtool_rss_get_dump(struct ynl_sock *ys, struct ethtool_rss_get_req_dump *req); +/* ETHTOOL_MSG_RSS_GET - notify */ +struct ethtool_rss_get_ntf { + __u16 family; + __u8 cmd; + struct ynl_ntf_base_type *next; + void (*free)(struct ethtool_rss_get_ntf *ntf); + struct ethtool_rss_get_rsp obj __attribute__((aligned(8))); +}; + +void ethtool_rss_get_ntf_free(struct ethtool_rss_get_ntf *rsp); + /* ============== ETHTOOL_MSG_PLCA_GET_CFG ============== */ /* ETHTOOL_MSG_PLCA_GET_CFG - do */ struct ethtool_plca_get_cfg_req {