As the next patch is going to call this helper with need to fill another
type of nested attribute, pass it over function arg.
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
 }
 
 int devlink_nl_put_nested_handle(struct sk_buff *msg, struct net *net,
-                                struct devlink *devlink);
+                                struct devlink *devlink, int attrtype);
 int devlink_nl_msg_reply_and_new(struct sk_buff **msg, struct genl_info *info);
 
 /* Notify */
 
 
        if (linecard->nested_devlink &&
            devlink_nl_put_nested_handle(msg, devlink_net(devlink),
-                                        linecard->nested_devlink))
+                                        linecard->nested_devlink,
+                                        DEVLINK_ATTR_NESTED_DEVLINK))
                goto nla_put_failure;
 
        genlmsg_end(msg, hdr);
 
 };
 
 int devlink_nl_put_nested_handle(struct sk_buff *msg, struct net *net,
-                                struct devlink *devlink)
+                                struct devlink *devlink, int attrtype)
 {
        struct nlattr *nested_attr;
 
-       nested_attr = nla_nest_start(msg, DEVLINK_ATTR_NESTED_DEVLINK);
+       nested_attr = nla_nest_start(msg, attrtype);
        if (!nested_attr)
                return -EMSGSIZE;
        if (devlink_nl_put_handle(msg, devlink))