From 7cc79a91f33f1853d3ddc9d8c657b502577532cb Mon Sep 17 00:00:00 2001 From: Qi Zhang Date: Wed, 8 Mar 2017 01:18:54 -0500 Subject: [PATCH] net/fm10k/base: add new item to lport msg attr Add FM10K_PF_ATTR_ID_ERR, since it is possible for the switch manager to send out an error message indicating status of the LPORT_MAP due to zero allocated bandwidth. Signed-off-by: Qi Zhang --- drivers/net/fm10k/base/fm10k_pf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/fm10k/base/fm10k_pf.c b/drivers/net/fm10k/base/fm10k_pf.c index 97301198ae..1dcea2b1e2 100644 --- a/drivers/net/fm10k/base/fm10k_pf.c +++ b/drivers/net/fm10k/base/fm10k_pf.c @@ -1705,6 +1705,8 @@ out: /* This structure defines the attibutes to be parsed below */ const struct fm10k_tlv_attr fm10k_lport_map_msg_attr[] = { + FM10K_TLV_ATTR_LE_STRUCT(FM10K_PF_ATTR_ID_ERR, + sizeof(struct fm10k_swapi_error)), FM10K_TLV_ATTR_U32(FM10K_PF_ATTR_ID_LPORT_MAP), FM10K_TLV_ATTR_LAST }; -- 2.20.1