diff options
author | Jiri Pirko <jiri@nvidia.com> | 2023-09-13 09:12:37 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-09-17 14:01:46 +0100 |
commit | 1c2197c47a93d0ea36e73e437271c7cbcc0e1ceb (patch) | |
tree | a0fd58ed81891d65eef1abea1c4b9da4845c6daa /net/devlink/linecard.c | |
parent | af1f1400af02e5a069d86ae7001b563c99395ea2 (diff) | |
download | lwn-1c2197c47a93d0ea36e73e437271c7cbcc0e1ceb.tar.gz lwn-1c2197c47a93d0ea36e73e437271c7cbcc0e1ceb.zip |
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>
Diffstat (limited to 'net/devlink/linecard.c')
-rw-r--r-- | net/devlink/linecard.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/devlink/linecard.c b/net/devlink/linecard.c index 688e89daee6a..36170f466878 100644 --- a/net/devlink/linecard.c +++ b/net/devlink/linecard.c @@ -114,7 +114,8 @@ static int devlink_nl_linecard_fill(struct sk_buff *msg, 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); |