From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 43DB02C57 for ; Thu, 1 Feb 2018 10:48:57 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id F2415209CA; Thu, 1 Feb 2018 04:48:56 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Thu, 01 Feb 2018 04:48:56 -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=fm2; bh=kznwnmTi/M79GGYQ/ AbpPvVcsflFAfPc+mNkbio3SsY=; b=G/xFdVnupGQ/DCW2eWAoG4+iumst4Nih7 feJ+KSxPAxO4LtoG2qLmecfz849cG3fbF7hsY8GIf99HM9xfL+grgdmdqSATyBXp 0hN2VD6SE7le/KImnsT9zLz5mObyAjMJJaTC2LwWpaH2BiiCJzAicEpGnB3UqmsF 924yuF+2IePs3ku2d0knos4CHzW/KcYRw8iG26U5C/NmsJKGzgLYQrue9k+WvJW5 n6xbskK80RA/plDHnfJxNPzQDTpitSzSqcKMDESiGe/lkq1qCuFiOtyUbm3eIRyL e4J621azK7uTm67qe/MhyzMAFo8ifFTClw4AcGTaryVGXrvpiGa1g== 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=kznwnmTi/M79GGYQ/AbpPvVcsflFAfPc+mNkbio3SsY=; b=R868H69H tCl8C7flfelKWslKsUmWXMR/VZw9tj8p6W384T1V1jKp3GbwxMc6viLPxweQzzey kfShRx1HeThE94lItJzrP5gxp/2lk9Y7pl4S+DmEtPScb/W5ESqJ8OMPJu8lgkiv m/dqURqJRCk1ZgqIYMW/y8iPPG4ioQElA5HHdZ+ggl/iPATBC6WvRad+e7vWL4GI wixJREBNab8KPpTwp2wE9antYFgdft7z4d3an8FcoRZQVpMeDmyQpX94rwYElgXf +nrp4DsaYQzAPLapcDMKwjT93hmVK53dzfrXaB+nVt2hYcGnRMRCz5viz7dM8Zsh 2jijOHW46RMUHw== X-ME-Sender: Received: from yliu-mob.mtl.com (unknown [115.150.27.200]) by mail.messagingengine.com (Postfix) with ESMTPA id 8A8E8240B6; Thu, 1 Feb 2018 04:48:54 -0500 (EST) From: Yuanhan Liu To: Shahaf Shuler Cc: Xueming Li , Nelio Laranjeiro , dpdk stable Date: Thu, 1 Feb 2018 17:47:34 +0800 Message-Id: <1517478479-12417-20-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517478479-12417-1-git-send-email-yliu@fridaylinux.org> References: <1517478479-12417-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/mlx5: fix memory region cache last index' 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: Thu, 01 Feb 2018 09:48:57 -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 02/03/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 1eee333eaa818ccd1721064a8628dadbf360306e Mon Sep 17 00:00:00 2001 From: Shahaf Shuler Date: Thu, 25 Jan 2018 18:18:02 +0200 Subject: [PATCH] net/mlx5: fix memory region cache last index [ upstream commit 627cbfad1ca0d4e12744a28d61b8881ab5ff3757 ] In case Memory Region cache is full, the new mempool will be inserted in the last index of the array. Update the last entry being hit to reflect it. Fixes: b0b093845793 ("net/mlx5: use buffer address for LKEY search") Signed-off-by: Xueming Li Signed-off-by: Shahaf Shuler Acked-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_rxtx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_rxtx.h b/drivers/net/mlx5/mlx5_rxtx.h index ab71a68..604f308 100644 --- a/drivers/net/mlx5/mlx5_rxtx.h +++ b/drivers/net/mlx5/mlx5_rxtx.h @@ -564,7 +564,6 @@ mlx5_tx_mb2mr(struct mlx5_txq_data *txq, struct rte_mbuf *mb) return txq->mp2mr[i]->lkey; } } - txq->mr_cache_idx = 0; mr = mlx5_txq_mp2mr_reg(txq, mlx5_tx_mb2mp(mb), i); /* * Request the reference to use in this queue, the original one is @@ -572,6 +571,7 @@ mlx5_tx_mb2mr(struct mlx5_txq_data *txq, struct rte_mbuf *mb) */ if (mr) { rte_atomic32_inc(&mr->refcnt); + txq->mr_cache_idx = i >= RTE_DIM(txq->mp2mr) ? i - 1 : i; return mr->lkey; } return (uint32_t)-1; -- 2.7.4