From patchwork Wed Oct 30 12:09:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nipun Gupta X-Patchwork-Id: 178106 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp1204194ill; Wed, 30 Oct 2019 05:26:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtdmZinH9RLH+F+6Lo+CODRd/AfyezWlKogo8auVyb/08/IoOR2rgAhTQvcJUlSQ8+Ddog X-Received: by 2002:a17:906:1f09:: with SMTP id w9mr8787564ejj.35.1572438383543; Wed, 30 Oct 2019 05:26:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572438383; cv=none; d=google.com; s=arc-20160816; b=i7HAEJE1JbTiG3MsTT8Z+oX+0MyG5W9XD/N0N3zvWO6O5PotR/NyOltvLF9pPDi5ew lGaLfx2K6uASZcBNFhX5RQxNgsRJ/VoJXpAl2eyT1UZt1zGJfqrRnsbZyXtmnJkHJvFF AQzpIus8hEgsvzVLoq0RnuN2LfHS35zcFFpfdhaIBXZGAv+1VqwpyRQmFJ4bWd9iUKoX cuWyUbUltL1XKWIGBQA/XfeeZAFybf5/3Bl3s+eTaSKT5VA5NRpokuAj2+XtMnZGIuZ5 aVhzaKlMJZKSuaF60Kqok+z0n4prgoq/lllXQehwCKu0ba710tVLRqn3bDQ254S7VAjD mzZw== 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=wcrPhNO/pSnWzoNW7sTkw4DeXmQBBBRbmzBqxAqTXDM=; b=x/3oth9wVRnM3+rwkvRhHAfuFm81KCWcRm5YxnSP7LjPBqObHOslx3V7XFPkqgpxRt tKt51yj0n19B+z3zsGVBhsBLnof4vKbmvS406+Ynd6c43oDbitrkwZetpVrf6l7ykdsG 7csRmAx+zyPI9lJS/y5czzBGlDfzZO0haiNeztN2yea8ZJCARxpI4M1j7eH3h7L7/U3K RaAOYOcoeYYXsmYj/rghjIhi68UTyyu2m/5kLq/7t1VYTkPSg+pVfY6prCHDdmK50hqA ED4EInmtAt85UxtDt546vj8D0OB/neU9Qx8DBizgQWYq41H3XRVrIksdITBHSh4UwB8c DacA== 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 y17si1423385edd.148.2019.10.30.05.26.23; Wed, 30 Oct 2019 05:26:23 -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 A863F1C07D; Wed, 30 Oct 2019 13:26:15 +0100 (CET) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id 52F931C044; Wed, 30 Oct 2019 13:26:08 +0100 (CET) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 364C5200462; Wed, 30 Oct 2019 13:26:08 +0100 (CET) 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 D46DA2007C1; Wed, 30 Oct 2019 13:26:04 +0100 (CET) Received: from GDB1.ap.freescale.net (gdb1.ap.freescale.net [10.232.132.179]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id A6B2F402B7; Wed, 30 Oct 2019 20:26:00 +0800 (SGT) From: Nipun Gupta To: dev@dpdk.org Cc: thomas@monjalon.net, ferruh.yigit@intel.com, hemant.agrawal@nxp.com, sachin.saxena@nxp.com, stable@dpdk.org, Nipun Gupta Date: Wed, 30 Oct 2019 17:39:48 +0530 Message-Id: <20191030120955.26904-3-nipun.gupta@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191030120955.26904-1-nipun.gupta@nxp.com> References: <20191011054657.21931-1-nipun.gupta@nxp.com> <20191030120955.26904-1-nipun.gupta@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH 2/9 v3] 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: f8c7a17a48c9 ("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) {