mbox series

[net-next,0/4] Update devlink binary output

Message ID 1573560472-4187-1-git-send-email-ayal@mellanox.com
Headers show
Series Update devlink binary output | expand

Message

Aya Levin Nov. 12, 2019, 12:07 p.m. UTC
This series changes the devlink binary interface:
-The first patch forces binary values to be enclosed in an array. In
 addition, devlink_fmsg_binary_pair_put breaks the binary value into
 chunks to comply with devlink's restriction for value length.
-The second patch removes redundant code and uses the fixed devlink
 interface (devlink_fmsg_binary_pair_put).
-The third patch make self test to use the updated devlink
 interface.
-The fourth, adds a verification of dumping a very large binary
 content. This test verifies breaking the data into chunks in a valid
 JSON output.

Series was generated against net-next commit:
ca22d6977b9b Merge branch 'stmmac-next'

Regards,
Aya

Aya Levin (4):
  devlink: Allow large formatted message of binary output
  net/mlx5: Dump of fw_fatal use updated devlink binary interface
  netdevsim: Update dummy reporter's devlink binary interface
  selftests: Add a test of large binary to devlink health test

 drivers/net/ethernet/mellanox/mlx5/core/health.c   | 18 +---------------
 drivers/net/netdevsim/health.c                     |  8 +-------
 include/net/devlink.h                              |  4 +---
 net/core/devlink.c                                 | 24 ++++++++++++++--------
 .../selftests/drivers/net/netdevsim/devlink.sh     |  9 ++++++++
 5 files changed, 27 insertions(+), 36 deletions(-)

Comments

David Miller Nov. 12, 2019, 7:26 p.m. UTC | #1
From: Aya Levin <ayal@mellanox.com>
Date: Tue, 12 Nov 2019 14:07:48 +0200

> This series changes the devlink binary interface:
> -The first patch forces binary values to be enclosed in an array. In
>  addition, devlink_fmsg_binary_pair_put breaks the binary value into
>  chunks to comply with devlink's restriction for value length.
> -The second patch removes redundant code and uses the fixed devlink
>  interface (devlink_fmsg_binary_pair_put).
> -The third patch make self test to use the updated devlink
>  interface.
> -The fourth, adds a verification of dumping a very large binary
>  content. This test verifies breaking the data into chunks in a valid
>  JSON output.
> 
> Series was generated against net-next commit:
> ca22d6977b9b Merge branch 'stmmac-next'

Series applied, thank you.