From patchwork Wed May 27 13:22:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 187231 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp1120739ilb; Wed, 27 May 2020 06:26:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuB8gufG4bEBDOqHSYib48vYBAeSF2rfvhFEOlGLS2Ssgk1YqOTr0URol0+ArVHu1/+Ygi X-Received: by 2002:a17:906:4947:: with SMTP id f7mr6011806ejt.373.1590586000090; Wed, 27 May 2020 06:26:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590586000; cv=none; d=google.com; s=arc-20160816; b=qdYbB99ZeYO9r8m0MCCk4pT/pzxnNiZ6ATSxVbr6ekb4TlB6HNPP1v2D5YrGMYYrh1 LivT9Jdp8CjypQ7UAzBgxPMIR7NPl+KUNh32WLkXQpYmQeeVsNd8BnKc3S2U/BS6KfkH ns53o6myN33DZmWdCRhDI62YyKINMsvLzZqXkOyWZuV4LMxd0F93uupfpcc3oiRoDjca ujCEj/TV/eTtunJsY9tD3X2kUKPLlsxmmu+cwufJh6YCkrJejP4jUsIIL3kpK1FiaUHj Js/PDO22MRqnzdG9LV3I6t471fFi+9YJc+GVYixR5NBP78HlfBByzP58YP7qsnnjymtV 8jBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:cc:to:from; bh=7ZCnA4vsDCiutIZIW17HBlY+aA5JwMBDo2AXNK64xSg=; b=yyTyIk1Mnx6qHbcXth7BlyIUZbMtNrncaK5ktPaaZXRoM9JTEj/smrRCpVzuERN/Ir mQ0ay8meiGxWvyyaFUOhiBuUuoKo74aRIVT85VAeX0ZXBEF4/YdjoEyTwor+vHtnI5BB dYRqfC82HTgtJTNAWeqEUla51PDXTNEoNE54Eglpgl/Wwl1kxg0F9Tuo/QX+ygLv/F5Z NnBjg6AAKL56TFN517Lz5scFtm6sZV2BiRNA20OKtsdt3Qtw7ChUI3+OMBpq+gGJ9Unf 60iGkMnBrsbIsF9r29AiSQ36G3HTACkZl1y54BDZmz6t8uVczCBgxdKiDUmhQrTSHsQ4 NjoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id k12si1723149edj.143.2020.05.27.06.26.39; Wed, 27 May 2020 06:26:40 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 736C41D972; Wed, 27 May 2020 15:26:27 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id B5E831D958; Wed, 27 May 2020 15:26:20 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 4A7981A07F0; Wed, 27 May 2020 15:26:20 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 463F71A07CD; Wed, 27 May 2020 15:26:18 +0200 (CEST) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 0676B402BF; Wed, 27 May 2020 21:26:14 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: stable@dpdk.org, Nipun Gupta Date: Wed, 27 May 2020 18:52:51 +0530 Message-Id: <20200527132326.1382-3-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200527132326.1382-1-hemant.agrawal@nxp.com> References: <20200527132326.1382-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH 02/37] net/dpaa: fix fd offset data type X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Nipun Gupta On DPAA fd offset is 9 bits, but we are using uint8_t in the SG case. This patch fixes the same. Fixes: 8cffdcbe85aa ("net/dpaa: support scattered Rx") Cc: stable@dpdk.org Signed-off-by: Nipun Gupta --- drivers/net/dpaa/dpaa_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Acked-by: Akhil Goyal diff --git a/drivers/net/dpaa/dpaa_rxtx.c b/drivers/net/dpaa/dpaa_rxtx.c index 5dba1db8b..3aeecb7d2 100644 --- a/drivers/net/dpaa/dpaa_rxtx.c +++ b/drivers/net/dpaa/dpaa_rxtx.c @@ -305,7 +305,7 @@ dpaa_eth_sg_to_mbuf(const struct qm_fd *fd, uint32_t ifid) struct qm_sg_entry *sgt, *sg_temp; void *vaddr, *sg_vaddr; int i = 0; - uint8_t fd_offset = fd->offset; + uint16_t fd_offset = fd->offset; vaddr = DPAA_MEMPOOL_PTOV(bp_info, qm_fd_addr(fd)); if (!vaddr) {