From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id 050261DB3 for ; Mon, 30 Apr 2018 16:08:11 +0200 (CEST) Received: by mail-wm0-f67.google.com with SMTP id j5so14477340wme.5 for ; Mon, 30 Apr 2018 07:08:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Fp0aSGVKEM0/1OUF9SkM4in9Cq6l/Kj+uDJuQ0f+KU0=; b=PBlRbLC5kmbmRjUKoRaO3oVQMPTJtns3xwB6nr974wx/dIURr/f48fPNGRMXCvMNt8 hESPGncTEPmShpqoR+Zl1ocF5UE8/2PM/e3ekdZi9zVDXm77997fbKiBr8ORpavVqTsc qaGhJNOqs18h5EPD7HzEh3yCELvZQhJLiAm1fNsrrNyqK/ldDyiMxQ4bjlQ496EN+Q9O STnqauZ8EU9NfAXStuF90mPhQBDMSpT7+zlKyeJKuFTY4WUwT1KHdLP9bxit0E1u8Ipo pO0gpSBm+oxvMbovk6OhJuFmCwFD/vL2FuO/KZF7RtolTQvmKxwGmFseAPAFCzLrXhF5 oyPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Fp0aSGVKEM0/1OUF9SkM4in9Cq6l/Kj+uDJuQ0f+KU0=; b=GrC6t+plukSKdn2Xp39q8rN12RrrPKitW5CFuw20oOeKXldw018nGia32Hlt6WZDS9 t9Vyt9ncGMWWuqQBoMNtOQ72N++HnezUABez3Tx46OKlFrciqxYZfhNspG8Bkndw2BBN Rs5DZH5/pEgewT3D2cJMEB3HdrRrVe4suPoDnjkK3qjJgsuXAVRsxGppNEB/X8yVw2pb AavccDyxSsYOG1ZMFgUD628jyR6oWTh8ZwIgyh40ZvX7YbUdgTk6kZo2SrH4yVLqNI4q NDmf8Gb0i0vjwry4HkGcXYour8jo6sd7nQubkgnyq4agSKyXWDtVQZbGxlaqOKyUctJF Epdw== X-Gm-Message-State: ALQs6tDRLvOtDNY7FNRH3NiVvKWD9RQMh0P9QDqmsc9zit1Cakq9vhuQ 5ggA/BuSBt/e/FsKOHhZsmu/+idAiIk= X-Google-Smtp-Source: AB8JxZrwhFq8wJ43ZuP74ZEDNnkPN6fxZadGAs1QdXibQem5jqeq1ubLzbV+CGlrBx7sYLFrtnD00Q== X-Received: by 10.28.216.9 with SMTP id p9mr8091266wmg.6.1525097290217; Mon, 30 Apr 2018 07:08:10 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id y101sm10816921wmh.10.2018.04.30.07.08.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:08:09 -0700 (PDT) From: luca.boccassi@gmail.com To: Andrew Rybchenko Cc: dpdk stable Date: Mon, 30 Apr 2018 15:03:45 +0100 Message-Id: <20180430140606.4615-67-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430140606.4615-1-luca.boccassi@gmail.com> References: <20180430140606.4615-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/sfc: fix mbuf data alignment calculation' has been queued to stable release 18.02.2 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: Mon, 30 Apr 2018 14:08:11 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/02/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From b3179400a0a2e1b365ecfc7f2d91ef86ecfe5de2 Mon Sep 17 00:00:00 2001 From: Andrew Rybchenko Date: Mon, 19 Mar 2018 07:50:11 +0000 Subject: [PATCH] net/sfc: fix mbuf data alignment calculation [ upstream commit bd0c7b4d76783484e1600ec34b0dae2c5d9ef57b ] Unlike ffs() rte_bsf32() counts bit position from 0. Fixes: 0c7a0c35f24c ("net/sfc: calculate Rx buffer size which may be used") 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 abc53fb5b..64bc9d488 100644 --- a/drivers/net/sfc/sfc_rx.c +++ b/drivers/net/sfc/sfc_rx.c @@ -887,7 +887,7 @@ sfc_rx_mbuf_data_alignment(struct rte_mempool *mb_pool) order = MIN(order, rte_bsf32(data_off)); - return 1u << (order - 1); + return 1u << order; } static uint16_t -- 2.14.2