From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6B0F7A00BE; Tue, 29 Oct 2019 06:00:22 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DCE5B1BED1; Tue, 29 Oct 2019 06:00:20 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 9B02C1BECE; Tue, 29 Oct 2019 06:00:18 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Oct 2019 22:00:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,242,1569308400"; d="scan'208";a="211030243" Received: from intel.sh.intel.com ([10.239.255.128]) by fmsmga001.fm.intel.com with ESMTP; 28 Oct 2019 22:00:15 -0700 From: Min JiaqiX To: dev@dpdk.org Cc: Min JiaqiX , stable@dpdk.org Date: Tue, 29 Oct 2019 12:54:31 +0000 Message-Id: <20191029125431.16862-1-jiaqix.min@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191028155453.37207-1-jiaqix.min@intel.com> References: <20191028155453.37207-1-jiaqix.min@intel.com> Subject: [dpdk-dev] [PATCH v3] net/ice: fix setting max frame size X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Max frame size is not set to HW, so packets above the MTU do not get dropped by HW. The patch fixed the issue. Fixes: 50370662b727 ("net/ice: support device and queue ops") Cc: stable@dpdk.org Signed-off-by: Min JiaqiX Reviewed-by: Xiaolong Ye --- v3: * Changed Fixes line. v2: * Changed commit message. --- drivers/net/ice/ice_ethdev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index 022b58c01..403305cfb 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drivers/net/ice/ice_ethdev.c @@ -2506,6 +2506,10 @@ ice_dev_start(struct rte_eth_dev *dev) pf->adapter_stopped = false; + /* Set the max frame size */ + ice_aq_set_mac_cfg(hw, + pf->dev_data->dev_conf.rxmode.max_rx_pkt_len, NULL); + return 0; /* stop the started queues if failed to start all queues */ -- 2.17.1