Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1251316pxa; Thu, 20 Aug 2020 06:48:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5E+seVJaE2dXbAn/7MuA7alA4OO73qWOsOmbLznHC45bbZB5UNhI6lAtH1/L4TIaKwE4+ X-Received: by 2002:a50:8f44:: with SMTP id 62mr2948807edy.351.1597931286990; Thu, 20 Aug 2020 06:48:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597931286; cv=none; d=google.com; s=arc-20160816; b=DFsJ46vWtUtL54S7rT9/PjfuOfNJTnshStQA3PTUXnyqLZA8gBIZxH/y7SSMT8H/as 0NJXKb1+uOSymDp902YtA+01qwUdYqSDijfdaPFjxDP/BNn7rnVD4yf+xyYY/WjwCK/d 9z/1eeoyAYl8U+S04k9ygQdA04jsJljbHGjw4aDqrBEUsplDx1werJu/kPPCjapjsItr qY/LCAKyrw+QPTio5N/GkPZgoqI+zCZjgdmD91hC5hbVujOils3SSTSUsflZGj13Paoh MwT1dHwSBVJbq6CAq8YV5/EAI4pDM3jkh77GcSy8wVSOl372C/8mKvfbMfOuQYj8F6q3 XMpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8cyTHEenf+6gTAzDd1h0bdnM9iEXlJ2z+N7QAFj24D4=; b=J9SbtwJQOHbQFpq24AHPCrxx+vv6HGChF00sWxQsYooHelYiSjt6V08Ms29MiaM38Z C7B2r/lu1xF4nCD0ZJavjmAmgBP4oq47XAjGuwut8Ka4MrD7NL7y2G6sCmUtqSXkPPgm JRwYm73LViJkf8/erU0nOK3mT4Krji4AN3LDb5BqGLqKnnhT2h28usbFCTMBnGwzeBLE 9CGkfhl0i2RXq5EISeO8FCRxs7G+x8IzKjK+InKDA8r0Uas4VRu66xnz/cR8a45QKD2y eDwSlJMK2II0L2nyzku4pmeiYiPbgg/1vATQczjTphEZTjEfO0sWNYr8hmzL+KAmC+lm p58A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="L2k8k/8L"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e7si1273077ejn.5.2020.08.20.06.47.42; Thu, 20 Aug 2020 06:48:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="L2k8k/8L"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730255AbgHTNoo (ORCPT + 99 others); Thu, 20 Aug 2020 09:44:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:39150 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727113AbgHTJ24 (ORCPT ); Thu, 20 Aug 2020 05:28:56 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 93AC622D03; Thu, 20 Aug 2020 09:28:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597915736; bh=a5Q/TfMPzgWhTjqFhVbz5wffe3ve2vew8FNbAxDury8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L2k8k/8L4hOXRoElXX6nOC6SSUCYnfQBoXFPLDoA21vvQbPzi5+UazKMsQN7OuS9x 0bwLk3BpcepLqNhQZzV6YZuczrTT+Pzv8ABh3Evmij+5piRv71fcAJgc/AriyDFeIy J/hysMkAH59Dn9FV8oYjDZBut9RLM5UEsGaaoGAY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eric Dumazet , Sunil Goutham , "David S. Miller" , Sasha Levin Subject: [PATCH 5.8 116/232] octeontx2-af: change (struct qmem)->entry_sz from u8 to u16 Date: Thu, 20 Aug 2020 11:19:27 +0200 Message-Id: <20200820091618.429884773@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200820091612.692383444@linuxfoundation.org> References: <20200820091612.692383444@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eric Dumazet [ Upstream commit 393415203f5c916b5907e0a7c89f4c2c5a9c5505 ] We need to increase TSO_HEADER_SIZE from 128 to 256. Since otx2_sq_init() calls qmem_alloc() with TSO_HEADER_SIZE, we need to change (struct qmem)->entry_sz to avoid truncation to 0. Fixes: 7a37245ef23f ("octeontx2-af: NPA block admin queue init") Signed-off-by: Eric Dumazet Cc: Sunil Goutham Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/marvell/octeontx2/af/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/af/common.h b/drivers/net/ethernet/marvell/octeontx2/af/common.h index cd33c2e6ca5fc..f48eb66ed021b 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/common.h +++ b/drivers/net/ethernet/marvell/octeontx2/af/common.h @@ -43,7 +43,7 @@ struct qmem { void *base; dma_addr_t iova; int alloc_sz; - u8 entry_sz; + u16 entry_sz; u8 align; u32 qsize; }; -- 2.25.1