summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlxsw/emad.h
diff options
context:
space:
mode:
authorShalom Toledo <shalomt@mellanox.com>2019-11-12 09:48:26 +0300
committerDavid S. Miller <davem@davemloft.net>2019-11-12 21:54:02 +0300
commit664b3dd9ba58462d1f74f2c9536e500898450edc (patch)
treedb5ba752746bebb5ffa538b0b9dc30a7de04d403 /drivers/net/ethernet/mellanox/mlxsw/emad.h
parentd17eb4030cc3061d3d2f313b9b898103701c44a4 (diff)
downloadlinux-664b3dd9ba58462d1f74f2c9536e500898450edc.tar.xz
mlxsw: core: Add EMAD string TLV
Add EMAD string TLV, an ASCII string the driver can receive from the firmware in case of an error. 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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/emad.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/emad.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/emad.h b/drivers/net/ethernet/mellanox/mlxsw/emad.h
index 5d7c78419fa7..acfbbec52424 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/emad.h
+++ b/drivers/net/ethernet/mellanox/mlxsw/emad.h
@@ -19,7 +19,8 @@
enum {
MLXSW_EMAD_TLV_TYPE_END,
MLXSW_EMAD_TLV_TYPE_OP,
- MLXSW_EMAD_TLV_TYPE_REG = 0x3,
+ MLXSW_EMAD_TLV_TYPE_STRING,
+ MLXSW_EMAD_TLV_TYPE_REG,
};
/* OP TLV */
@@ -86,6 +87,9 @@ enum {
MLXSW_EMAD_OP_TLV_METHOD_EVENT = 5,
};
+/* STRING TLV */
+#define MLXSW_EMAD_STRING_TLV_LEN 33 /* Length in u32 */
+
/* END TLV */
#define MLXSW_EMAD_END_TLV_LEN 1 /* Length in u32 */