From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 0D8E31B1B6 for ; Wed, 24 Jan 2018 16:37:13 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 303C52241C; Wed, 24 Jan 2018 10:37:12 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:37:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=phNt0+xKKwxcyoS5h /MFEYGB2yT4cP8pekPe3+bdc8E=; b=dqrdAT4qkbUxb3Ya1iI5iU4dJOjUbohbq 6UbZ79lg1Ubr55hxN2MXwi5p2uNs0U8gNK1HQ/yq56y1ddn9/DZ3JoFlQAvTtv/e kzwsLD5unS/4RrizgccsVBnB4HlHmsKrFZ/KI/1aMsPPXn9yHz+SbBA+fCQKy5Jm eJ9rhsZjzxh+ydPfWli1HznxXTXsvtjhe1Yh+QOZlRdykureg06Q3etdkacelAp8 Oj7FyMIayC6rJygrkZISaNT223/Nvzb9EJmOYr6vSXRMVUYFGlInM2hlaL/Q7mvM oIBD+uhHjuZW+2rNs3OWXnGZTyetzy2c3BA4kVeENxhpLEkB+PL+w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=phNt0+xKKwxcyoS5h/MFEYGB2yT4cP8pekPe3+bdc8E=; b=o6GhKDOZ iNTFT0aflOaxU6VovH3FAyPsRCKOUWXWW2l/ya5ZfQVQuG3nDFjl8sEbC7BuyA+w r3Ij5+Zj8uOwOwWrX8CF0mj316CX6dXKE+7xrNwsa95EoaqtOVq9C0R3rof/Mkh9 qD5qwl4S1oIdlC+RBnO+UT/+I84DiWQNYNWY/bWxJZ60fh651ALVrDiWRyFXu6M4 awtdAkCm7sREmj0IEtGeuTg+vekuS2q4O6gzDe8aFBK13DpATeDnhp/iG/f9V67v gArA2uwiD75qvNowRgdmn2KReJo+F62UdKP4l+WkZ0ZUE+OKPIxerwH5bvKSZ2QF ne/WLdEvr1ZO/w== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 6BC107E1A2; Wed, 24 Jan 2018 10:37:10 -0500 (EST) From: Yuanhan Liu To: Alejandro Lucero Cc: dpdk stable Date: Wed, 24 Jan 2018 23:31:39 +0800 Message-Id: <1516808026-25523-31-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/nfp: fix MTU settings' has been queued to LTS release 17.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2018 15:37:13 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 01/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 75dba7383ded16160b2f4633b14e5578dd2ef809 Mon Sep 17 00:00:00 2001 From: Alejandro Lucero Date: Fri, 24 Nov 2017 14:23:48 +0000 Subject: [PATCH] net/nfp: fix MTU settings [ upstream commit d9b98888d4c596aa536b49ba16e33f4046d4ace2 ] The wrong mtu length was used for configuring the hardware. The max_rx_pktlen reported was also wrong. Fixes: defb9a5dd156 ("nfp: introduce driver initialization") Signed-off-by: Alejandro Lucero --- drivers/net/nfp/nfp_net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c index 0501156..9a7b0b2 100644 --- a/drivers/net/nfp/nfp_net.c +++ b/drivers/net/nfp/nfp_net.c @@ -1196,7 +1196,7 @@ nfp_net_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) dev_info->max_rx_queues = (uint16_t)hw->max_rx_queues; dev_info->max_tx_queues = (uint16_t)hw->max_tx_queues; dev_info->min_rx_bufsize = ETHER_MIN_MTU; - dev_info->max_rx_pktlen = hw->mtu; + dev_info->max_rx_pktlen = hw->max_mtu; /* Next should change when PF support is implemented */ dev_info->max_mac_addrs = 1; @@ -2774,7 +2774,7 @@ nfp_net_init(struct rte_eth_dev *eth_dev) hw->ver = nn_cfg_readl(hw, NFP_NET_CFG_VERSION); hw->cap = nn_cfg_readl(hw, NFP_NET_CFG_CAP); hw->max_mtu = nn_cfg_readl(hw, NFP_NET_CFG_MAX_MTU); - hw->mtu = hw->max_mtu; + hw->mtu = ETHER_MTU; if (NFD_CFG_MAJOR_VERSION_of(hw->ver) < 2) hw->rx_offset = NFP_NET_RX_OFFSET; -- 2.7.4