From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by dpdk.org (Postfix) with ESMTP id EDC131B889 for ; Tue, 15 May 2018 15:48:58 +0200 (CEST) Received: by mail-wr0-f195.google.com with SMTP id p5-v6so200676wre.12 for ; Tue, 15 May 2018 06:48:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XKTgAl4p+dmmkjYNuaHPMQsamnIZgMhbrlIuNYreQ0U=; b=r+aA4DJnQzN5Mt7vM1N76SwXQRlmWKCOVPAAwUoAgL87r409nwU2aZTKNgEki3wdS8 WB+jE9lQOdpy9ZglQV0ysEX4btCQIj20baXVhez2/RyXmZYFH5Z4UxYtxlvxfEaaqiXh AQFIkhJf9QNkloTosT5bxlD0gYRgKkumfZMTZEsDZSHAyffSZJOgEilw6cHzuV55IFuH ccMRI/7wUAJkCOY3KW9318WIVCEnVp4aJYntgG1ZNQ1RXKykUDrqcNFtFPgqLl3JyuQk MHuepOCthyr0M6MLYDD0wT9NmcDACeZa+n3ekXNTIEtzqUMj7QLF+uFjAHXrcujfgvuO +cKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XKTgAl4p+dmmkjYNuaHPMQsamnIZgMhbrlIuNYreQ0U=; b=Lrdf+GWAKMBgyAwQcILMkDeC3+FKVbUy4GNAuNRrctyBTmhBNlgNZplZIub9GXrbT7 97QkZW6oVdxnCJ9VXQnfU2nRw+ox8xA9gEtsX5TMntjim3/U3UXbQ4s4qwtn3g2lMVUE gy5KXC2FGGrEeA+KMNUOuK0xN96bIyOu4dIzmshlXN5qLJrfMk1RzlzPAJSP832k5hww nuNMYy4KC2PWgQCazhZnPlcInw+opQThlFwSQ3O9SJU9kQIZgthEhS3zdbo+BSZkhPpZ PmdEsbrWTBNIXL3uGWaXgmp88/0WhARMuL+6pOyKJ2U7wV10CC/rMM0xaGQOENF6c/O5 tFUQ== X-Gm-Message-State: ALKqPwegIuRheJovMDxWiJrr9xQO1r6rr8XRSnnaVaJTJyFzz5gJ3XzF 96WB/v8GamuXCs6c6se+mvpMC0IMtWs= X-Google-Smtp-Source: AB8JxZqKgRZCRTI35HbYFo/oN477WJFgOcOFzh+JOpTGo/6pWp1SMfgixbzEEqy2sdW9k+jtOYdgcg== X-Received: by 2002:adf:90cd:: with SMTP id i71-v6mr10615611wri.136.1526392138689; Tue, 15 May 2018 06:48:58 -0700 (PDT) Received: from localhost (slip139-92-244-193.lon.uk.prserv.net. [139.92.244.193]) by smtp.gmail.com with ESMTPSA id m64-v6sm735804wmb.12.2018.05.15.06.48.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 06:48:57 -0700 (PDT) From: luca.boccassi@gmail.com To: Qingmin Liu Cc: Scott Branden , Jay Ding , Randy Schacher , Ajit Khaparde , dpdk stable Date: Tue, 15 May 2018 14:46:57 +0100 Message-Id: <20180515134731.9337-46-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180515134731.9337-1-luca.boccassi@gmail.com> References: <20180503110612.12146-2-luca.boccassi@gmail.com> <20180515134731.9337-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/bnxt: set MTU in dev config for jumbo packets' has been queued to stable release 18.02.2 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: Tue, 15 May 2018 13:48:59 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/16/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 84678b89f8b36d26005d76d821e6ab14c98c52b9 Mon Sep 17 00:00:00 2001 From: Qingmin Liu Date: Mon, 30 Apr 2018 18:06:10 -0700 Subject: [PATCH] net/bnxt: set MTU in dev config for jumbo packets [ upstream commit a1a716c1c645e1bfbc30f9ef6ba68473646bcf4e ] MTU setting does not take effect after rte_eth_dev_configure is called with jumbo enable unless it is configured using the set_mtu dev_op. Fixes: daef48efe5e5 ("net/bnxt: support set MTU") Signed-off-by: Qingmin Liu Signed-off-by: Scott Branden Reviewed-by: Jay Ding Reviewed-by: Randy Schacher Reviewed-by: Ajit Khaparde Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_ethdev.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index de8824641..22de7f9f3 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -151,6 +151,7 @@ static const struct rte_pci_id bnxt_pci_id_map[] = { static int bnxt_vlan_offload_set_op(struct rte_eth_dev *dev, int mask); static void bnxt_print_link_info(struct rte_eth_dev *eth_dev); +static int bnxt_mtu_set_op(struct rte_eth_dev *eth_dev, uint16_t new_mtu); /***********************/ @@ -540,10 +541,12 @@ static int bnxt_dev_configure_op(struct rte_eth_dev *eth_dev) bp->rx_cp_nr_rings = bp->rx_nr_rings; bp->tx_cp_nr_rings = bp->tx_nr_rings; - if (eth_dev->data->dev_conf.rxmode.jumbo_frame) + if (eth_dev->data->dev_conf.rxmode.jumbo_frame) { eth_dev->data->mtu = eth_dev->data->dev_conf.rxmode.max_rx_pkt_len - ETHER_HDR_LEN - ETHER_CRC_LEN - VLAN_TAG_SIZE; + bnxt_mtu_set_op(eth_dev, eth_dev->data->mtu); + } return 0; } -- 2.14.2