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 DDFAEA04FF; Tue, 17 May 2022 10:18:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 96DBB40042; Tue, 17 May 2022 10:18:29 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 814AA40041; Tue, 17 May 2022 10:18:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652775509; x=1684311509; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ZU2YzFcz9HXjSkx7TWa4sqzDpYl/xOwRa2fzjejzUM0=; b=TsKwr+lalS5Gw2GYktX6Gpo/bxtTc+RAcvbFaQ4ohuHQFIDm08Ij9DbM gF4oZcJ+byOl/XUfjgaLzzH0b4wBRyAEk0d4WNSMpsO8lDPfJbAHCCbwL Mt6xQzzjqJ1u9zMzjEU0G5XWeolx455z2E1NPATA4OQ5MMaz1AVuBoA/e w+/6RRnn9WZattPIBgfL7EJiMzsfhCKCldyof6UQnejPXII1NpXACzmkf ObCr59tUchmqjaflPRjFBX1AMfgO2GwNFXXJ5YZvcL94BdnwKxukiHyWW 7+AWwLLOLaN+yW+BtQVYjmBJG5RCSt6XIc5vmuwybAtNWXZVukhQ7W31C Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10349"; a="251003701" X-IronPort-AV: E=Sophos;i="5.91,232,1647327600"; d="scan'208";a="251003701" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2022 01:18:27 -0700 X-IronPort-AV: E=Sophos;i="5.91,232,1647327600"; d="scan'208";a="568770841" Received: from intel-cd-odc-kevin.cd.intel.com ([10.240.178.141]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2022 01:18:25 -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 v2] net/ice: fix missing MTU value setting Date: Fri, 8 Apr 2022 01:43:08 +0000 Message-Id: <20220408014308.254310-1-kevinx.liu@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220407195719.11382-1-kevinx.liu@intel.com> References: <20220407195719.11382-1-kevinx.liu@intel.com> 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: bf89db4409bb ("net/ice: complete device info get in DCF") Cc: stable@dpdk.org v2: - update fixline 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