From: Qi Zhang Date: Wed, 8 Mar 2017 06:18:54 +0000 (-0500) Subject: net/fm10k/base: add new item to lport msg attr X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7cc79a91f33f1853d3ddc9d8c657b502577532cb;p=dpdk.git 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 --- 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 };