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 126681B173 for ; Wed, 24 Jan 2018 16:38:10 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id A61DA2237C; Wed, 24 Jan 2018 10:38:09 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:38:09 -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=4e95a/wwGHIl62AB9 ujqWdW9PT5PQK8rb3HYEHalzrc=; b=VOQJSJhkJKsQpk6Kg72QxnZf4lItnU6Ya sT3nD59CepmmEWIcRsQuOfRZ1DvKudW0i3/dleqWK/u6Oge5jeEUWx6ZMspwg4w4 XL74BezTCCwaiaIh0PxcE5sKsqobHBQQZn7GJl4k7jy8kPjOsQAc3EYmeWA5FX5s k4GsAWheDTOjcQe1k/Pf7yFIgdbU6vCFcL/8AM52Pc8/xD48lPbKUfh4Efke+AGa 7k+WFnALzFsr4cNcF8nHUMZZ92FE4nav7mXdwNXhTxwUCsC8WSmv1H3C4uLIuOfA 2DqlKsqnLAKw81zr2lKyZubouojxwyhWC1NsOOznjQ/Q/7PcgTIAQ== 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=4e95a/wwGHIl62AB9ujqWdW9PT5PQK8rb3HYEHalzrc=; b=axg2gewz ohqN/TPw4Qo0i0f+DzA/nsmnCSvAMm3CeVLKWg3uYlkWIwL8wPw1PQvLeF09rXUr rvaJx/PsVSakzURTDHoHObkodx1b7ty0nxTpvgS5C+jue3YO5f1eb0Cqsjrx2BFz c+7rChJpAr/cf22M+dJglvVS2IY+32EnTBYiVv1imWtKJC4rlfBOsLS9VuC3y2SI Yij0eQ3soR/yMvDCkx7qVKMg5Ly5xyP2GxKr574ouGIYzDAbUuNchuPRExGowWGU LY4TsG2OUbqylO7qjXX9DDCFs1M1o7lbG/NPQWOJJecvrbr/jItqvuMLEieQ1qzd 7cdIP1t+Tw1cKw== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 1D5847E1A2; Wed, 24 Jan 2018 10:38:06 -0500 (EST) From: Yuanhan Liu To: Yongseok Koh Cc: Hanoch Haim , Nelio Laranjeiro , dpdk stable Date: Wed, 24 Jan 2018 23:32:00 +0800 Message-Id: <1516808026-25523-52-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 Memory Region registration' 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:10 -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 adb951a9b30705134c56c0cd6b4ffe37736a67f5 Mon Sep 17 00:00:00 2001 From: Yongseok Koh Date: Thu, 14 Dec 2017 17:59:17 -0800 Subject: [PATCH] net/mlx5: fix Memory Region registration [ upstream commit 3a6f2eb8c5c597d6675a8fbb9563010c0c546521 ] Although granularity of chunks in a mempool is a cacheline, addresses are extended to align to page boundary for performance reason in device when registering a MR (Memory Region). This could make some regions overlap, then can cause Tx completion error due to incorrect LKEY search. If the error occurs, the Tx queue will get stuck. To avoid it, end address of a packet segment is used in LKEY search. Fixes: b0b093845793 ("net/mlx5: use buffer address for LKEY search") Reported-by: Hanoch Haim Signed-off-by: Yongseok Koh 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 63eb12c..9ed30a8 100644 --- a/drivers/net/mlx5/mlx5_rxtx.h +++ b/drivers/net/mlx5/mlx5_rxtx.h @@ -544,7 +544,7 @@ static __rte_always_inline uint32_t mlx5_tx_mb2mr(struct mlx5_txq_data *txq, struct rte_mbuf *mb) { uint16_t i = txq->mr_cache_idx; - uintptr_t addr = rte_pktmbuf_mtod(mb, uintptr_t); + uintptr_t addr = rte_pktmbuf_mtod_offset(mb, uintptr_t, DATA_LEN(mb)); struct mlx5_mr *mr; assert(i < RTE_DIM(txq->mp2mr)); -- 2.7.4