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 B243DA055A for ; Thu, 27 Feb 2020 10:35:41 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A91B61C01; Thu, 27 Feb 2020 10:35:41 +0100 (CET) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by dpdk.org (Postfix) with ESMTP id 2DA331BFF5 for ; Thu, 27 Feb 2020 10:35:40 +0100 (CET) Received: by mail-wm1-f68.google.com with SMTP id c84so2541318wme.4 for ; Thu, 27 Feb 2020 01:35:40 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=3Xpn3s8feFikDs1/L0ZzXqLcY7lOkt8vDBQCQYLexZQ=; b=iQRdsyg8wKdP6tLLGxjGvgjAGxlX8nvVBcQRJZttHhhuzAljmV/QI0XDeLOnFZwqYj n8ol3rrO6se9sQtB1mtElpwkueLQaZ7W7i+cj+EnZ5fKwh/ExXNHCUIEt/Jeoyf/pfw5 wVEMUBDMN+L+GGvdDP5lCClb6FO81oGUhk4WRhpzPLxqzZpSnJBQwx87o0AvZ/cM7UPd f9CM3jkW6dKvSqXxQx7iVutZUsDAdhRmSu20bKVj8rBzAqe/dmLVTKdwY08gziPP42/w G7y2NAovebs4L/BL6fwxTZECQ4zwglDgUudn2GjRZ7Fw8SQvS5JA8Z2HatO3IgKY9xJe 9K1Q== 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:mime-version:content-transfer-encoding; bh=3Xpn3s8feFikDs1/L0ZzXqLcY7lOkt8vDBQCQYLexZQ=; b=IVdLCRoOeF0uh1qrf+bekAimujC5QpK1fT5VjUrXwCp1lvBKYKtgvbJZ4wPp6TAd9m U71KKCkT/FHZ1+qNi5gDXzJ8E2L4uJh7oPjizGGMs4PdRieOvm1i+wM7PMqIY54D6A2O e+0b+m/m7O75cWVBnNJoxW5nOgNoWEbCsKkIcSmX1Ezo5pv+Ap91antYFvBSStjjetz5 v55pFd9aTzS5LrsZxxvuTtML+TiW3qp1HlP7mF/8mqlSRzTLgCEqt+y1Yvbce4wwJiSN SlFEHx0Pz+f7ZVBj5itgM8c1Ddl7rEQB+Wgmvr5CWMlhB006vV99i/zxKmqRnTWCGsqN j+mQ== X-Gm-Message-State: APjAAAU9DTjVp8BoQeJIeV7/QCGQ3zXuGRl52oToupN5cHv2sBLRf7/K rMej4RdpA9TU1OonWXmh3F68wZldlDg= X-Google-Smtp-Source: APXvYqw/8LiVBF0vpZMOYZFNcW3vAY26JnpxIZtvoP1CHUEW8FurXhNTyvU0o7IqJGxis28RW4hhUA== X-Received: by 2002:a1c:4e18:: with SMTP id g24mr4274209wmh.95.1582796139857; Thu, 27 Feb 2020 01:35:39 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id e11sm6997274wrm.80.2020.02.27.01.35.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 01:35:39 -0800 (PST) From: luca.boccassi@gmail.com To: Viacheslav Ovsiienko Cc: Matan Azrad , dpdk stable Date: Thu, 27 Feb 2020 09:33:56 +0000 Message-Id: <20200227093402.17690-36-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200227093402.17690-1-luca.boccassi@gmail.com> References: <20200217174546.25334-54-luca.boccassi@gmail.com> <20200227093402.17690-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/mlx5: fix inline packet size for ConnectX-4 Lx' has been queued to stable release 19.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: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to stable release 19.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 02/29/20. 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 rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Thanks. Luca Boccassi --- >From cbfff4f37acaaf508c9701a8901c570186feacd8 Mon Sep 17 00:00:00 2001 From: Viacheslav Ovsiienko Date: Thu, 20 Feb 2020 21:18:33 +0000 Subject: [PATCH] net/mlx5: fix inline packet size for ConnectX-4 Lx [ upstream commit 21e59432dfe0dc9bbcaec3d9d80c372834d6264b ] This patch does extra inline packet size check to tune the ConnectX-4 Lx performance in the legacy Multi-Packet Write mode. Fixes: 7593cf1d3500 ("net/mlx5: fix legacy multi-packet write session") Signed-off-by: Viacheslav Ovsiienko Acked-by: Matan Azrad --- drivers/net/mlx5/mlx5_rxtx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index a69729f010..4a9c44dc61 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -4149,6 +4149,8 @@ mlx5_tx_burst_empw_inline(struct mlx5_txq_data *restrict txq, if (dlen > txq->inlen_empw) goto pointer_empw; if (MLX5_TXOFF_CONFIG(MPW)) { + if (dlen > txq->inlen_send) + goto pointer_empw; tlen = dlen; if (part == room) { /* Open new inline MPW session. */ -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-02-27 09:31:56.972246093 +0000 +++ 0036-net-mlx5-fix-inline-packet-size-for-ConnectX-4-Lx.patch 2020-02-27 09:31:55.835946606 +0000 @@ -1,14 +1,15 @@ -From 21e59432dfe0dc9bbcaec3d9d80c372834d6264b Mon Sep 17 00:00:00 2001 +From cbfff4f37acaaf508c9701a8901c570186feacd8 Mon Sep 17 00:00:00 2001 From: Viacheslav Ovsiienko Date: Thu, 20 Feb 2020 21:18:33 +0000 Subject: [PATCH] net/mlx5: fix inline packet size for ConnectX-4 Lx +[ upstream commit 21e59432dfe0dc9bbcaec3d9d80c372834d6264b ] + This patch does extra inline packet size check to tune the ConnectX-4 Lx performance in the legacy Multi-Packet Write mode. Fixes: 7593cf1d3500 ("net/mlx5: fix legacy multi-packet write session") -Cc: stable@dpdk.org Signed-off-by: Viacheslav Ovsiienko Acked-by: Matan Azrad @@ -17,11 +18,11 @@ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c -index 9de6a5028a..2b4fc2ae06 100644 +index a69729f010..4a9c44dc61 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c -@@ -4286,6 +4286,8 @@ mlx5_tx_burst_empw_inline(struct mlx5_txq_data *restrict txq, - loc->mbuf->ol_flags & PKT_TX_DYNF_NOINLINE) +@@ -4149,6 +4149,8 @@ mlx5_tx_burst_empw_inline(struct mlx5_txq_data *restrict txq, + if (dlen > txq->inlen_empw) goto pointer_empw; if (MLX5_TXOFF_CONFIG(MPW)) { + if (dlen > txq->inlen_send)