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 C5F8A1B173 for ; Wed, 24 Jan 2018 16:38:12 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 6B60522418; Wed, 24 Jan 2018 10:38:12 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:38: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=dzoR4Rk+tB1KNNZ8c GbW/7za9hq5ayynsrsnv5XBZEA=; b=shVOjwYLycQ7rh6MFmBASHJZ8u+h/S9/O 3GLCINvyudKFf4EewdqKXyEyPKePkILXOkEAxILj/IVKUg1aaiwjh1Cp1pI9IE3w iVaSwIvLiYdDL8pRrSrW1hyp7ZsYtcDh3AUqNUD/pPi3M4AxaxSA41WulBqJo44T wjyvUTi/xEMhdfjUXvrp/Yc+0xnf7xld42MYYd8ys0uhwy5eC63kCzSkge2IaZ95 XEFAoRqQyPWDj/DWNVdk4gBegfn8Y3+mXJFnlhjeuQEO5bcbQuvQvIOMQyBMAyrM ZRN1weWPjnILtWdwYChJjZbWfS/MuA5Py4dwHq53nxM0cFhNccNKg== 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=dzoR4Rk+tB1KNNZ8cGbW/7za9hq5ayynsrsnv5XBZEA=; b=kL5giw6W YmWRkFpjwJFUi7cK9eOL5eFBMRhUeCaJ4ha964ImR9CW6FpuQVLfk40FA3pNiEvs 4jX9+8LWgns8f1CABHb+yE/0ILGbOl3TZxGhyE9tqD+420ZdUMwtmeXb1GNys1sx EM5EsBkZF7xTPKDA5jqhoNsML9Mh+4Fxt+hzk0rrEtJznrTLqSO2khB77Iox24ak IjVvpYQYO0SANOlCmWwkVa7RaEdHnPzsHka60bhc5K0mvR7BWn+AWW93ib1+aoIn YQBIsiwvb4hv61sCnFsnSKiJf/aj7oS/l7m+uaU4lfXV/4PNBBdGfkTCgQyBkd6E G+b/mdJhQaB4/g== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 437217E448; Wed, 24 Jan 2018 10:38:09 -0500 (EST) From: Yuanhan Liu To: Yongseok Koh Cc: Nelio Laranjeiro , dpdk stable Date: Wed, 24 Jan 2018 23:32:01 +0800 Message-Id: <1516808026-25523-53-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/mlx5: fix overflow of Memory Region cache' 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:38: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 eda82c93d3c101c5cf94c4fb0a829bb90bf28c3b Mon Sep 17 00:00:00 2001 From: Yongseok Koh Date: Thu, 14 Dec 2017 17:59:18 -0800 Subject: [PATCH] net/mlx5: fix overflow of Memory Region cache [ upstream commit de48f16525e23cd04ee4c1c5b74392123529758a ] If there're more MR(Memroy Region)'s than the size of per-queue cache, the cache can be overflowed and corrupt the following data structure in mlx5_txq_data. Fixes: 6e78005a9b30 ("net/mlx5: add reference counter on DPDK Tx queues") Signed-off-by: Yongseok Koh Acked-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_trigger.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_trigger.c b/drivers/net/mlx5/mlx5_trigger.c index 5de2d02..3540b5d 100644 --- a/drivers/net/mlx5/mlx5_trigger.c +++ b/drivers/net/mlx5/mlx5_trigger.c @@ -64,8 +64,11 @@ priv_txq_start(struct priv *priv) if (!txq_ctrl) continue; - LIST_FOREACH(mr, &priv->mr, next) + LIST_FOREACH(mr, &priv->mr, next) { priv_txq_mp2mr_reg(priv, &txq_ctrl->txq, mr->mp, idx++); + if (idx == MLX5_PMD_TX_MP_CACHE) + break; + } txq_alloc_elts(txq_ctrl); txq_ctrl->ibv = mlx5_priv_txq_ibv_new(priv, i); if (!txq_ctrl->ibv) { -- 2.7.4