From: Qi Zhang Date: Fri, 11 Sep 2020 01:30:36 +0000 (+0800) Subject: common/iavf: save max MTU received from PF X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=39ced0c8bb75c868199f0ddf89ea39e6fce87cac;p=dpdk.git common/iavf: save max MTU received from PF Most values from the VIRTCHNL_OP_GET_VF_RESOURCES are stored in the iavf_hw_capabilities structure. Unfortunately, it seems that max_mtu was missed. Add this member to the structure and save it when parsing hw config. Signed-off-by: Brett Creeley Signed-off-by: Qi Zhang Acked-by: Beilei Xing --- diff --git a/drivers/common/iavf/iavf_common.c b/drivers/common/iavf/iavf_common.c index 57ec1ff39b..c951b7d787 100644 --- a/drivers/common/iavf/iavf_common.c +++ b/drivers/common/iavf/iavf_common.c @@ -975,6 +975,7 @@ void iavf_vf_parse_hw_config(struct iavf_hw *hw, hw->dev_caps.num_msix_vectors_vf = msg->max_vectors; hw->dev_caps.dcb = msg->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_L2; + hw->dev_caps.max_mtu = msg->max_mtu; for (i = 0; i < msg->num_vsis; i++) { if (vsi_res->vsi_type == VIRTCHNL_VSI_SRIOV) { iavf_memcpy(hw->mac.perm_addr, diff --git a/drivers/common/iavf/iavf_type.h b/drivers/common/iavf/iavf_type.h index 665b070a0d..0990c9aa33 100644 --- a/drivers/common/iavf/iavf_type.h +++ b/drivers/common/iavf/iavf_type.h @@ -224,6 +224,7 @@ struct iavf_hw_capabilities { u32 num_tx_qp; u32 base_queue; u32 num_msix_vectors_vf; + u32 max_mtu; bool apm_wol_support; enum iavf_acpi_programming_method acpi_prog_method; bool proxy_support;