devlink: extend devlink_nl_put_nested_handle() with attrtype arg
authorJiri Pirko <jiri@nvidia.com>
Wed, 13 Sep 2023 07:12:37 +0000 (09:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Sep 2023 13:01:46 +0000 (14:01 +0100)
commit1c2197c47a93d0ea36e73e437271c7cbcc0e1ceb
treea0fd58ed81891d65eef1abea1c4b9da4845c6daa
parentaf1f1400af02e5a069d86ae7001b563c99395ea2
devlink: extend devlink_nl_put_nested_handle() with attrtype arg

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>
net/devlink/devl_internal.h
net/devlink/linecard.c
net/devlink/netlink.c