From patchwork Thu Oct 17 12:43:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nipun Gupta X-Patchwork-Id: 176594 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp886150ill; Thu, 17 Oct 2019 06:00:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuMc4LD6Hqj9A0MhvKplulZpxLA4ucZjwNOYf5+Rmz4RcX6TdqyC1VWtHlBYw/w8ehcild X-Received: by 2002:a17:906:a294:: with SMTP id i20mr3223874ejz.165.1571317206911; Thu, 17 Oct 2019 06:00:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571317206; cv=none; d=google.com; s=arc-20160816; b=ErhRNTWLnPhbwQk0IFKTHZ7Sm72Tz69Lva8X1GdQ2qfR0YAp7DrBJqS4sdWDjFUEgw Cw0dpfSTFvbs5yhgf7iBB5Mmq0oCZKdQuZoXb+D4uOLtQ2vmh4ngyXXQHyDRRCTJfB4E GLQsMfxhPHOOcooaMcNFLRMP9BDF48L6NWtv3Y8eojyTBNrrPUVL9XcqLzEG+tySKAZj pt7IuRDV0ieXSw0IVv8n8+QWMytdr1FRvAD9YMER3075dEDNe6FsgG/ojlUg2sh4nt+O uefzCh+7MM6eZp8J5aLpNJy1FyvOWPKT5BD6b5ZUW5DkPH2kBi7lt2vYhXb+JwsoPPD5 cqvQ== 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=KY2fP0FC27tTu8F2mdIbcBJATnFlSII8cRZDWGoI0WU=; b=BkB5DJkR0A8/LunCyu05D2ephKg4+Vtsy4iSGs2nfNjFiCkR2F4YTR/CZBBZvaUq84 ByMf1w02YHkKluOxZjrSm9xZIW2KpyPF82Yrug+icSa7eBrRjAv8r1ymP0gpW33EuUmr PUYbA5dhwe0G3JcALGEFHZTqrThBXVlLS86gbrO/2fPEbtAouLrUYqXpc6z3jhaMyAIg 2dRQUauL+aHPfc72xpK4zLNdX6zOrb5C3amQb8E0Pgu3aegmt+8V/UXYFczWw30mZcAm SqoxwukmxaXSl9aGlBgq+jk6qU9KKqEMtiCUYwyyODYP1KO1S3/SJJaD+97j5oNUJPsV c25g== 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 g3si1372592edu.432.2019.10.17.06.00.06; Thu, 17 Oct 2019 06:00:06 -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 691651E9B1; Thu, 17 Oct 2019 14:59:56 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id 2ABB11E995; Thu, 17 Oct 2019 14:59:51 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id B5824200668; Thu, 17 Oct 2019 14:59:50 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id A64F22002C1; Thu, 17 Oct 2019 14:59:47 +0200 (CEST) Received: from GDB1.ap.freescale.net (gdb1.ap.freescale.net [10.232.132.179]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 6EAE0402AE; Thu, 17 Oct 2019 20:59:43 +0800 (SGT) From: Nipun Gupta To: dev@dpdk.org Cc: ferruh.yigit@intel.com, hemant.agrawal@nxp.com, sachin.saxena@nxp.com, stable@dpdk.org, Nipun Gupta Date: Thu, 17 Oct 2019 18:13:56 +0530 Message-Id: <20191017124403.26734-3-nipun.gupta@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191017124403.26734-1-nipun.gupta@nxp.com> References: <20191011054657.21931-1-nipun.gupta@nxp.com> <20191017124403.26734-1-nipun.gupta@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH 2/9 v2] net/dpaa: fix LS1043 alignment check 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" On LS1043, we are good to check 128 byte alignment of offset to transmit out the packet Fixes: 9eba4a60c2f5 ("net/dpaa: support scatter gather in Tx for non DPAA buffer") Cc: stable@dpdk.org Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- drivers/net/dpaa/dpaa_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/net/dpaa/dpaa_rxtx.c b/drivers/net/dpaa/dpaa_rxtx.c index bbe615099..5dba1db8b 100644 --- a/drivers/net/dpaa/dpaa_rxtx.c +++ b/drivers/net/dpaa/dpaa_rxtx.c @@ -927,7 +927,7 @@ dpaa_eth_queue_tx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs) * the buffer in such case. */ if (dpaa_svr_family == SVR_LS1043A_FAMILY && - (mbuf->data_off & 0xFF) != 0x0) + (mbuf->data_off & 0x7F) != 0x0) realloc_mbuf = 1; seqn = mbuf->seqn; if (seqn != DPAA_INVALID_MBUF_SEQN) {