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 550F32D13 for ; Thu, 1 Feb 2018 10:49:00 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 07CFA20BC7; Thu, 1 Feb 2018 04:49:00 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Thu, 01 Feb 2018 04:49:00 -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=vU/KfZ6TsYr/OIxSY zl741pjeSnGt2EWiYydXW2Op+4=; b=greXg02PLsXK5yWouFEroRt7FFLF0Trl3 QGFh0mlUp+sDkoO442XZ7U4O7NH9yfYqxDJqxrqpTGgG8UtG5om7AJVd1yqkjgr9 mH+1kyeE3HgO5f7EXZTAtDFD8NiqzLOo/Ba3EieOkxObQqnIfZLw3jwQPeoMy+tm ADjrD81lrL9qv11qDrmKY1WlAEZkP1AA4ATaOPNc7n2F//lOip4mwKUIYV8I0scO FnweLLqEP0iaNKiAply8dggNd3NNdn9NCJLgVuU0NJHFMSk+0RE4SsPJycYovUqI VZvtqk6AS8Bi4x6JwvNOi9ppnXUbrgDa92PXTtJPprFjJjq9K17iw== 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=vU/KfZ6TsYr/OIxSYzl741pjeSnGt2EWiYydXW2Op+4=; b=GaNGy+uZ kJ9QeoIScChuns4yR94ZixNdF7d9G4zFNLisOmuvkWxX4bxaOybG8KXk1us2Rkj+ VNVTta4a4mZ9mixpTMrtlqzc1+pDZFN5YLlsvuQKsou+mxrec1rMB1iqQSAynrbB OLxo4jZOFl8yEyY94tDtiEuWAbvX5BpPcn5lLHxJJIitn/GNz76BXPIJplj2fwlb 4I9JGdNV5dVa7AwVCWgZyorVhOdYeu2NlY25kGDGNWoPOANDjs+JHxYIvJoqSzoz u1/fYkNIQD83rM0Rxy+7Sfyb3Y1yc5WFL1GVeWOuR0eGbgKxGoOGzwyvMHLa/lzB KXHE+MYSF/sqzg== X-ME-Sender: Received: from yliu-mob.mtl.com (unknown [115.150.27.200]) by mail.messagingengine.com (Postfix) with ESMTPA id 8461D240DE; Thu, 1 Feb 2018 04:48:57 -0500 (EST) From: Yuanhan Liu To: Shahaf Shuler Cc: Xueming Li , Nelio Laranjeiro , dpdk stable Date: Thu, 1 Feb 2018 17:47:35 +0800 Message-Id: <1517478479-12417-21-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 boundary checks' 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:49:00 -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 d01327d95624923003b6e984040c8c17c06b5361 Mon Sep 17 00:00:00 2001 From: Shahaf Shuler Date: Thu, 25 Jan 2018 18:18:03 +0200 Subject: [PATCH] net/mlx5: fix memory region boundary checks [ upstream commit 25f28d9d294d00a1c539d47a13c14ce282e31b09 ] Since commit f81ec748434b ("net/mlx5: fix memory region lookup") the Memory Region (MR) are no longer overlaps. Comparing the end address of the MR should be exclusive, otherwise two contiguous MRs may cause wrong matching. Fixes: f81ec748434b ("net/mlx5: fix memory region lookup") Signed-off-by: Xueming Li Signed-off-by: Shahaf Shuler Acked-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_rxtx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx5/mlx5_rxtx.h b/drivers/net/mlx5/mlx5_rxtx.h index 604f308..de5b769 100644 --- a/drivers/net/mlx5/mlx5_rxtx.h +++ b/drivers/net/mlx5/mlx5_rxtx.h @@ -547,7 +547,7 @@ mlx5_tx_mb2mr(struct mlx5_txq_data *txq, struct rte_mbuf *mb) struct mlx5_mr *mr; assert(i < RTE_DIM(txq->mp2mr)); - if (likely(txq->mp2mr[i]->start <= addr && txq->mp2mr[i]->end >= addr)) + if (likely(txq->mp2mr[i]->start <= addr && txq->mp2mr[i]->end > addr)) return txq->mp2mr[i]->lkey; for (i = 0; (i != RTE_DIM(txq->mp2mr)); ++i) { if (unlikely(txq->mp2mr[i] == NULL || @@ -556,7 +556,7 @@ mlx5_tx_mb2mr(struct mlx5_txq_data *txq, struct rte_mbuf *mb) break; } if (txq->mp2mr[i]->start <= addr && - txq->mp2mr[i]->end >= addr) { + txq->mp2mr[i]->end > addr) { assert(txq->mp2mr[i]->lkey != (uint32_t)-1); assert(rte_cpu_to_be_32(txq->mp2mr[i]->mr->lkey) == txq->mp2mr[i]->lkey); -- 2.7.4