From patchwork Fri Oct 11 05:46:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nipun Gupta X-Patchwork-Id: 175908 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp311465ill; Thu, 10 Oct 2019 23:02:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxZ4eTZD68S2F6XfyHwhtGKgRNfhFddXSKfIwGA2T6qV93CM3TIJbTR8pYHTYaRnLW1bvz X-Received: by 2002:a50:f192:: with SMTP id x18mr12072991edl.305.1570773769570; Thu, 10 Oct 2019 23:02:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570773769; cv=none; d=google.com; s=arc-20160816; b=rzMWh2ZkTANOVYgPnjeBAcRSyv4WdCp62jvupEASuW5ktUJU3gcKseyZpWUOjirPb1 PjKZPDyTftT2XVWfU4SLgst3KIRXWaxtWfHpqDOAr22bzVWhRSAhxyj1dpe8e6isJvlT AlUqgOvD6EmzJPtc9+1av/uWJy6zjoiw41XHqd3k6LA31F0U0nBs79yYCj7dBvQcmSJ+ dSt3luOg7vhsYBmkAi2U6NVWA2GsJgnEvx55bPiOJXVA8FpWVnWDOvHC0X7Nl4rPCuI/ 3pBJGBqiZ4U9tyevfBcAGMf40UwQkWS64PoNBGtYqBPzbH5aAk0vjBOHteC47Ts2Iwfo Auog== 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=oN1x8970jxXlwNFHSupxDV4WGHdh2YVngP4azv1gCiA=; b=Nsaf2NdMfb9Z4/Lr5oFMJ89RdWBUHtIBl1m2J1ciXK71nW2D9zoqjCHEmD9jEfDsg8 7MVWbpX/khqbPBeuMlYqD5qbDvojmrW/16nibRYS6QpCHcWlNoaIngmGymJwUgA0sfA6 tzBgj0/H9Q0mxtBmlacLgoljtKNfjGrbbczcFcqQWIKeG468US2jlLTrduNY2msfb6ST GDPkoavCWGDsQxpkL/wFpW+wfc0pewYYgc9lcRNfIqGfrIgMj0k/sTzzxFdVOfo0+Flm c+qq1CcSxrHFaTZGpErJLuQj5bYsV+oUUsU8zDUOCAj2lmweK0RX5FMDPLLGRNFhtrU8 2vGA== 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 t18si4585718ejx.135.2019.10.10.23.02.49; Thu, 10 Oct 2019 23:02:49 -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 264E01E93C; Fri, 11 Oct 2019 08:02:38 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id AF34A1E91C; Fri, 11 Oct 2019 08:02:34 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 6D96B1A04F8; Fri, 11 Oct 2019 08:02:34 +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 5943C1A0500; Fri, 11 Oct 2019 08:02:31 +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 1AFDD40299; Fri, 11 Oct 2019 14:02:26 +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: Fri, 11 Oct 2019 11:16:50 +0530 Message-Id: <20191011054657.21931-3-nipun.gupta@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191011054657.21931-1-nipun.gupta@nxp.com> References: <20191011054657.21931-1-nipun.gupta@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH 2/9] 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 2de1a1a7e..934be50e9 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) {