summaryrefslogtreecommitdiffstats
path: root/drivers/net/netdevsim/health.c
diff options
context:
space:
mode:
authorAya Levin <ayal@mellanox.com>2019-11-12 14:07:51 +0200
committerDavid S. Miller <davem@davemloft.net>2019-11-12 11:25:44 -0800
commit8fdcd8fb21c054217b5ca5cb627a9a726dba630f (patch)
tree40f01197f632ab00e6de58d50200290f563b0025 /drivers/net/netdevsim/health.c
parentd4e82cf4df300368e8d271a2caf14611a5e176a6 (diff)
downloadlinux-8fdcd8fb21c054217b5ca5cb627a9a726dba630f.tar.bz2
netdevsim: Update dummy reporter's devlink binary interface
Update dummy reporter's output to use updated devlink interface of binary fmsg pair. Signed-off-by: Aya Levin <ayal@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netdevsim/health.c')
-rw-r--r--drivers/net/netdevsim/health.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/netdevsim/health.c b/drivers/net/netdevsim/health.c
index 2716235a0336..9aa637d162eb 100644
--- a/drivers/net/netdevsim/health.c
+++ b/drivers/net/netdevsim/health.c
@@ -82,20 +82,14 @@ static int nsim_dev_dummy_fmsg_put(struct devlink_fmsg *fmsg, u32 binary_len)
if (err)
return err;
- err = devlink_fmsg_arr_pair_nest_start(fmsg, "test_binary");
- if (err)
- return err;
binary = kmalloc(binary_len, GFP_KERNEL);
if (!binary)
return -ENOMEM;
get_random_bytes(binary, binary_len);
- err = devlink_fmsg_binary_put(fmsg, binary, binary_len);
+ err = devlink_fmsg_binary_pair_put(fmsg, "test_binary", binary, binary_len);
kfree(binary);
if (err)
return err;
- err = devlink_fmsg_arr_pair_nest_end(fmsg);
- if (err)
- return err;
err = devlink_fmsg_pair_nest_start(fmsg, "test_nest");
if (err)