patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Erez Ferber <erezf@mellanox.com>
To: stable@dpdk.org, bluca@debian.org
Cc: Erez Ferber <erezf@mellanox.com>
Subject: [dpdk-stable] [PATCH] net/mlx5: fix MTU update
Date: Wed,  7 Feb 2018 17:04:28 +0200	[thread overview]
Message-ID: <1518015868-21957-1-git-send-email-erezf@mellanox.com> (raw)

Changing the MTU is not related to changing the number of segments,
activating or not the multi-segment support should be handled by the
application.

Signed-off-by: Erez Ferber <erezf@mellanox.com>
---

This backport is intended for 16-11 and is based on commit
a0edafe4099b1ef139242abb7baa2c2a48b83fd2

---
 
drivers/net/mlx5/mlx5_ethdev.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c
index c0f73e9..f73d26e 100644
--- a/drivers/net/mlx5/mlx5_ethdev.c
+++ b/drivers/net/mlx5/mlx5_ethdev.c
@@ -930,9 +930,7 @@ recover:
 		/* Provide new values to rxq_setup(). */
 		dev->data->dev_conf.rxmode.jumbo_frame = sp;
 		dev->data->dev_conf.rxmode.max_rx_pkt_len = max_frame_len;
-		if (rehash)
-			ret = rxq_rehash(dev, rxq_ctrl);
-		else
+		if (!rehash)
 			ret = rxq_ctrl_setup(dev, rxq_ctrl, 1 << rxq->elts_n,
 					     rxq_ctrl->socket, NULL, rxq->mp);
 		if (!ret)
-- 
1.8.2.3

             reply	other threads:[~2018-02-07 15:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-07 15:04 Erez Ferber [this message]
2018-02-07 15:24 ` Luca Boccassi
  -- strict thread matches above, loose matches on Subject: below --
2017-08-01  7:55 Nelio Laranjeiro
2017-08-02 23:13 ` Yongseok Koh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1518015868-21957-1-git-send-email-erezf@mellanox.com \
    --to=erezf@mellanox.com \
    --cc=bluca@debian.org \
    --cc=stable@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).