From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5B0C6A00BE; Mon, 16 May 2022 11:01:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EB16C40A7A; Mon, 16 May 2022 11:01:44 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 609B740A79; Mon, 16 May 2022 11:01:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652691702; x=1684227702; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=DpClMU9PdupgeWug4xiu9pBArod+XoSDh7hdB8suKN0=; b=alahzgD6uwv4jGJJJ2Oqh4CNMWMFu0Kc8VopjpXEBTLvldXV71y50j/0 gZFiy2Es3JnOiAq580xnfsqvylLxpiBbvr2gqqJKkMq4RT+iNM7n2+Hot 9f4kDxeriEU2tQR3MKW3qQYBcTLTAVesqWFVxl6/56bavoc51NZMlNKb3 Wo7F1bkK4Jh6W1p5F4J0H318RrMwZva4dGNZXZ5KGGHxiMIC/lPPEoj41 P9Z2r04O3yIOCNVbMB0WlpTDguK2JDbi650lksALW2exvcRwvUsblcrKk ujQtMIACybFE4oF14TBj/5YU4otuERTVVcmgs301EML3LVrnoYFYfPlA1 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10348"; a="252845414" X-IronPort-AV: E=Sophos;i="5.91,229,1647327600"; d="scan'208";a="252845414" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2022 02:01:37 -0700 X-IronPort-AV: E=Sophos;i="5.91,229,1647327600"; d="scan'208";a="604775603" Received: from intel-cd-odc-kevin.cd.intel.com ([10.240.178.133]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2022 02:01:34 -0700 From: Kevin Liu To: dev@dpdk.org Cc: qiming.yang@intel.com, qi.z.zhang@intel.com, stevex.yang@intel.com, Kevin Liu , stable@dpdk.org Subject: [PATCH] net/ice: fix missing MTU value setting Date: Thu, 7 Apr 2022 19:57:19 +0000 Message-Id: <20220407195719.11382-1-kevinx.liu@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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: 2fe6f1b76279 ("drivers/net: advertise no support for keeping flow rules") Cc: stable@dpdk.org Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) 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 | -- 2.34.1