From: Kevin Liu Date: Fri, 8 Apr 2022 01:43:08 +0000 (+0000) Subject: net/ice: fix MTU info for DCF X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=24e6e0363e1704d7471eacafea80c182d4016739;p=dpdk.git net/ice: fix MTU info for DCF In the DCF module, Missing maximum and minimum MTU value settings. This patch adds the settings of the maximum and minimum MTU to correctly calculate the MTU value. Fixes: bf89db4409bb ("net/ice: complete device info get in DCF") Cc: stable@dpdk.org Signed-off-by: Kevin Liu Acked-by: Qi Zhang --- diff --git a/drivers/net/ice/ice_dcf_ethdev.c b/drivers/net/ice/ice_dcf_ethdev.c index 8005eb2ab8..0da267db1f 100644 --- a/drivers/net/ice/ice_dcf_ethdev.c +++ b/drivers/net/ice/ice_dcf_ethdev.c @@ -713,6 +713,8 @@ ice_dcf_dev_info_get(struct rte_eth_dev *dev, dev_info->reta_size = hw->vf_res->rss_lut_size; dev_info->flow_type_rss_offloads = ICE_RSS_OFFLOAD_ALL; dev_info->dev_capa &= ~RTE_ETH_DEV_CAPA_FLOW_RULE_KEEP; + dev_info->max_mtu = dev_info->max_rx_pktlen - ICE_ETH_OVERHEAD; + dev_info->min_mtu = RTE_ETHER_MIN_MTU; dev_info->rx_offload_capa = RTE_ETH_RX_OFFLOAD_VLAN_STRIP |