]> asedeno.scripts.mit.edu Git - linux.git/commit
mlxsw: core: Add support for using EMAD string TLV
authorShalom Toledo <shalomt@mellanox.com>
Tue, 12 Nov 2019 06:48:29 +0000 (08:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Nov 2019 18:54:02 +0000 (10:54 -0800)
commit5d716ab45ad5e02461cb3b33062573d7cf43596a
tree292b16aa94e384baab1138d37e33af90d29ece86
parent72c8f428b5dc786d901d00370fa88923b40d7539
mlxsw: core: Add support for using EMAD string TLV

In case the firmware had an error while processing EMADs, it can send back
an ASCII string with the reason using EMAD string TLV.

This patch adds the support for using EMAD string TLV. In case of an error,
reports the reason using devlink hwerr tracepoint.

Signed-off-by: Shalom Toledo <shalomt@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core.c
drivers/net/ethernet/mellanox/mlxsw/core.h