diff --git a/home/nipa/nipa_out/901869/ynl/old-code/ethtool-user.c b/home/nipa/nipa_out/901869/ynl/new-code/ethtool-user.c index 9007305c8cbd..3e6276cf7d7e 100644 --- a/home/nipa/nipa_out/901869/ynl/old-code/ethtool-user.c +++ b/home/nipa/nipa_out/901869/ynl/new-code/ethtool-user.c @@ -60,6 +60,7 @@ static const char * const ethtool_op_strmap[] = { [43] = "mm-ntf", [44] = "module-fw-flash-ntf", [ETHTOOL_MSG_PHY_GET] = "phy-get", + [46] = "phy-ntf", }; const char *ethtool_op_str(int op) @@ -7038,6 +7039,17 @@ ethtool_phy_get_dump(struct ynl_sock *ys, struct ethtool_phy_get_req_dump *req) return NULL; } +/* ETHTOOL_MSG_PHY_GET - notify */ +void ethtool_phy_get_ntf_free(struct ethtool_phy_get_ntf *rsp) +{ + ethtool_header_free(&rsp->obj.header); + free(rsp->obj.drvname); + free(rsp->obj.name); + free(rsp->obj.upstream_sfp_name); + free(rsp->obj.downstream_sfp_name); + free(rsp); +} + /* ETHTOOL_MSG_CABLE_TEST_NTF - event */ int ethtool_cable_test_ntf_rsp_parse(const struct nlmsghdr *nlh, struct ynl_parse_arg *yarg) @@ -7299,6 +7311,12 @@ static const struct ynl_ntf_info ethtool_ntf_info[] = { .policy = ðtool_module_fw_flash_nest, .free = (void *)ethtool_module_fw_flash_ntf_free, }, + [ETHTOOL_MSG_PHY_NTF] = { + .alloc_sz = sizeof(struct ethtool_phy_get_ntf), + .cb = ethtool_phy_get_rsp_parse, + .policy = ðtool_phy_nest, + .free = (void *)ethtool_phy_get_ntf_free, + }, }; const struct ynl_family ynl_ethtool_family = { diff --git a/home/nipa/nipa_out/901869/ynl/old-code/ethtool-user.h b/home/nipa/nipa_out/901869/ynl/new-code/ethtool-user.h index 8cdc5a3bbf24..27b40bb1b8dc 100644 --- a/home/nipa/nipa_out/901869/ynl/old-code/ethtool-user.h +++ b/home/nipa/nipa_out/901869/ynl/new-code/ethtool-user.h @@ -6453,6 +6453,17 @@ void ethtool_phy_get_list_free(struct ethtool_phy_get_list *rsp); struct ethtool_phy_get_list * ethtool_phy_get_dump(struct ynl_sock *ys, struct ethtool_phy_get_req_dump *req); +/* ETHTOOL_MSG_PHY_GET - notify */ +struct ethtool_phy_get_ntf { + __u16 family; + __u8 cmd; + struct ynl_ntf_base_type *next; + void (*free)(struct ethtool_phy_get_ntf *ntf); + struct ethtool_phy_get_rsp obj __attribute__((aligned(8))); +}; + +void ethtool_phy_get_ntf_free(struct ethtool_phy_get_ntf *rsp); + /* ETHTOOL_MSG_CABLE_TEST_NTF - event */ struct ethtool_cable_test_ntf_rsp { struct {