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 E21B3A04F0 for ; Tue, 10 Dec 2019 16:01:03 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D7AD51B13C; Tue, 10 Dec 2019 16:01:03 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by dpdk.org (Postfix) with ESMTP id 60EE51BE80 for ; Tue, 10 Dec 2019 16:01:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575990061; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YUicpQZLze43a3W1LBZ3wUDq0KLh9a0HpuBNeqMpa4o=; b=JDJBnRVKFB28VvCCBUJVzv+EqNTA7/hF782GzGQ7yky8hePECz03b33UrQ8uC/SBdH8OC1 nf/gZs0+tOCRI8pPGdWGq4cS08ZGdua3haNBSHY6peXlM34a0+txDtKBECIIeZs5z2RKVX 5q3SZVAFPe/IdNQcB6gZsvl40fjueJY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-234-z4Qk0KY5MnyQZYSA00hq1g-1; Tue, 10 Dec 2019 10:00:58 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 58B1B800EC0; Tue, 10 Dec 2019 15:00:57 +0000 (UTC) Received: from rh.redhat.com (ovpn-116-64.ams2.redhat.com [10.36.116.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4A7C65D9C5; Tue, 10 Dec 2019 15:00:56 +0000 (UTC) From: Kevin Traynor To: Ajit Khaparde Cc: Somnath Kotur , dpdk stable Date: Tue, 10 Dec 2019 14:59:10 +0000 Message-Id: <20191210145937.32755-36-ktraynor@redhat.com> In-Reply-To: <20191210145937.32755-1-ktraynor@redhat.com> References: <20191210145937.32755-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: z4Qk0KY5MnyQZYSA00hq1g-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-stable] patch 'net/bnxt: fix writing MTU to FW' has been queued to LTS release 18.11.6 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: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to LTS release 18.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 12/16/19. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasi= ng (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable-queue This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable-queue/commit/c55fdd85c7f22b90fc= e0b37ec35db6936efcc546 Thanks. Kevin. --- >From c55fdd85c7f22b90fce0b37ec35db6936efcc546 Mon Sep 17 00:00:00 2001 From: Ajit Khaparde Date: Thu, 24 Oct 2019 13:14:19 +0530 Subject: [PATCH] net/bnxt: fix writing MTU to FW [ upstream commit 8d7bdc8c13fb34c1ca5c2ea08943a5c89ebe1a99 ] We are currently writing the MAX supported MTU size even though the MTU passed by the application is a different value. Configure the application specified MTU instead. Fixes: b7778e8a1c00 ("net/bnxt: refactor to properly allocate resources for= PF/VF") Signed-off-by: Ajit Khaparde Signed-off-by: Somnath Kotur --- drivers/net/bnxt/bnxt_hwrm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 1f8996b7c..614cd47c5 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -2530,5 +2530,6 @@ static int bnxt_hwrm_pf_func_cfg(struct bnxt *bp, int= tx_rings) =09=09=09HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS); =09req.flags =3D rte_cpu_to_le_32(bp->pf.func_cfg_flags); -=09req.mtu =3D rte_cpu_to_le_16(BNXT_MAX_MTU); +=09req.mtu =3D rte_cpu_to_le_16(RTE_MIN(bp->eth_dev->data->mtu, +=09=09=09=09=09 BNXT_MAX_MTU)); //FW adds hdr sizes =09req.mru =3D rte_cpu_to_le_16(BNXT_VNIC_MRU(bp->eth_dev->data->mtu)); =09req.num_rsscos_ctxs =3D rte_cpu_to_le_16(bp->max_rsscos_ctx); --=20 2.21.0 --- Diff of the applied patch vs upstream commit (please double-check if non-= empty: --- --- -=092019-12-10 14:49:41.532490984 +0000 +++ 0036-net-bnxt-fix-writing-MTU-to-FW.patch=092019-12-10 14:49:39.0664575= 06 +0000 @@ -1 +1 @@ -From 8d7bdc8c13fb34c1ca5c2ea08943a5c89ebe1a99 Mon Sep 17 00:00:00 2001 +From c55fdd85c7f22b90fce0b37ec35db6936efcc546 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 8d7bdc8c13fb34c1ca5c2ea08943a5c89ebe1a99 ] + @@ -11 +12,0 @@ -Cc: stable@dpdk.org @@ -20 +21 @@ -index 3eedd08ee..c777c73bd 100644 +index 1f8996b7c..614cd47c5 100644 @@ -23,2 +24,2 @@ -@@ -2957,5 +2957,6 @@ static int bnxt_hwrm_pf_func_cfg(struct bnxt *bp, in= t tx_rings) -=20 +@@ -2530,5 +2530,6 @@ static int bnxt_hwrm_pf_func_cfg(struct bnxt *bp, in= t tx_rings) + =09=09=09HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);