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 BAA2323B for ; Tue, 21 Nov 2017 14:20:41 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 6EDFA20B90; Tue, 21 Nov 2017 08:20:41 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 21 Nov 2017 08:20:41 -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=kqX5ZdlDgtKvSHMHq AwbPs5F9tJNMqWH2OFQQzaojl4=; b=BzRjQM1sEAXtnNZSj4VwiIvPRy8jse8m9 e8uhDeqFn3GTIl7/Om4VcuDIR49cTJS2wiqUk3pkDtVGA8KTAlBbs0RTh44MvkMS 5MOkXBjC7z63rwdL2k8KQc/Ba7Ebc28vnjujq0keSRiIrf6y52+oGmCjvZNgf3JK yAzC0AtevZViXcGX9zq+MgvM0SydWWP2IPU1MOTP4G/ugruLU2HRkreeK832qY8g ThorzfMlDI3jW2epmZ9IQ8Vw0O95JHjpkX7XZaom+GA5yuJjD7hDg8fz1UQyAoYM JILq5DKTkxsVverU/vCGFv7y6M5MLJtI8tnsGTgeP4lcXC8Kf8JNw== 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=kqX5ZdlDgtKvSHMHqAwbPs5F9tJNMqWH2OFQQzaojl4=; b=qNT9laKr cfmXyfaqiZbf4eq1e2gXKA21lrMJoeApX6SVnlwfZ/dL4dItfDGLJ9JVRyXD3MrT H7CXpnw3jXNYXwh4TLQkgkktpPFHFlq+LOUYtaCsLHlHz40H4Kbv04ePcBA6EgiV oyB+vNFWbzgGwH26VO6cWT2j2paSFIM2r7ueseMHU6q7zddFwkcJuSJVUgNwl7PL Oq3sSctX8VjQId+w2v8X3Qj8YCx8QPBS/S38hIYsSe7Tr6H+v1y+h6A2F5YA4T5l rOxMIsVXJrCZcsEcf8eVhhjIptYF3C9lzFixTxmfxLt1VRCgATqRii4RFrdrWdLX WNSY407rF8dECA== X-ME-Sender: Received: from localhost.localdomain (unknown [180.158.62.0]) by mail.messagingengine.com (Postfix) with ESMTPA id 22FF2247A9; Tue, 21 Nov 2017 08:20:38 -0500 (EST) From: Yuanhan Liu To: Ivan Malov Cc: Andrew Rybchenko , dpdk stable Date: Tue, 21 Nov 2017 21:16:03 +0800 Message-Id: <1511270333-31002-21-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511270333-31002-1-git-send-email-yliu@fridaylinux.org> References: <1511270333-31002-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/sfc: specify correct scale table size on Rx start' has been queued to stable release 17.08.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: Tue, 21 Nov 2017 13:20:41 -0000 Hi, FYI, your patch has been queued to stable release 17.08.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 11/24/17. So please shout if anyone has objections. Thanks. --yliu --- >>From f934b3581069172337b07bbe7cd6e43fb674b10d Mon Sep 17 00:00:00 2001 From: Ivan Malov Date: Mon, 28 Aug 2017 13:53:46 +0100 Subject: [PATCH] net/sfc: specify correct scale table size on Rx start [ upstream commit efbd16eadea870e01cf4518f425e3f7bdeb8a338 ] efx_rx_scale_tbl_set() takes the number of entries in the scale table to be set, not the size of the table in bytes; currently this bug does not make any damage since the size argument is used to wrap the loop on the input table when filling in an MCDI request in case if the table size in the MCDI request is larger then one provided by the user, and MCDI scale table size is the same as the size of the table provided by the driver; this patch brings a fix for the bug Fixes: 4ec1fc3ba881 ("net/sfc: add basic stubs for RSS support on driver attach") Signed-off-by: Ivan Malov Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/sfc/sfc_rx.c b/drivers/net/sfc/sfc_rx.c index 1bf8644..364f718 100644 --- a/drivers/net/sfc/sfc_rx.c +++ b/drivers/net/sfc/sfc_rx.c @@ -1068,7 +1068,7 @@ sfc_rx_rss_config(struct sfc_adapter *sa) goto finish; rc = efx_rx_scale_tbl_set(sa->nic, sa->rss_tbl, - sizeof(sa->rss_tbl)); + RTE_DIM(sa->rss_tbl)); } finish: -- 2.7.4