From patchwork Thu Apr 8 09:17:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 417408 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp368642jai; Thu, 8 Apr 2021 02:19:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbBGYNHCsy3MyKCPq3wnGNSxVuhdzbUpZSUwRRbtIG92FYgjVnhCWGwYpShelguj+x9zgI X-Received: by 2002:a5d:6b50:: with SMTP id x16mr9636056wrw.379.1617873549153; Thu, 08 Apr 2021 02:19:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617873549; cv=none; d=google.com; s=arc-20160816; b=HtHMxgdE0ylSnJxs7ohQw8K/CufgghpJp4VVVSu4wxdyZX2eA/9lz94brDw8m5we0k bfiwFvFDaO7JbHRRJFFoZPsNtdq1V5FOgLZsLn6SlSgQh3q55DQlX1Kezvdwaym3Liq6 HxaxUatBrLrWWUj0cAzDkmxZs71qoKd7uxO1Pu2qYHzhhPT3SLtlLWm38eeBYW1CVErN 3kUgPaaD5AYEAi6keRc741VaeSrNEQWOrnX2l+2OUZN8zrqm3LvpdXWRZh07aMlyWp8B Dt3wQ3StBAu3l5H8F6teIW9Oy3Uu0TlZAe4J/twHL5hUaF9LrVTRP4Op4JpGXSO1i/bP puFw== 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:message-id:date:cc:to :from; bh=pATo36qyXBiKX1WvRoo7QtnmPOUhKW6YcnopwluaEnQ=; b=uTJBrAGtdyWsm2lim5CY8Ci1pcQOSZqtpSBJSlU48nKR6skI1XutudSLsLSy2+Nnxq b99NOxbTSJ14b+or/n9ubIu7lRL+6YDLPu1TN6yAnQks1NMNA/GABFmmq/htXkNenI4c dDSLaXDWyPZLzrIRniAg814nMO0TcKaO7USU1yneaEHb6FZuOlQGSEffZY81dH3yw6Fm D69au0d9Rf7AuIwhvNfDmpbTtsQWY8YTAQv/nGjm3bviPvc47I/I+tz+3qbhwRMr/fgX KZ8rzAaKz2WR56UaeqFlFXsc63Yb5wTHw2F/gvR7Vv06oxNY6aj0b0fEnEjeBIYQxs4R HOVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.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 mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id b16si7948331wmj.122.2021.04.08.02.19.08; Thu, 08 Apr 2021 02:19:09 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) client-ip=217.70.189.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 71677140D12; Thu, 8 Apr 2021 11:19:08 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by mails.dpdk.org (Postfix) with ESMTP id 6AA7140138 for ; Thu, 8 Apr 2021 11:19:07 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id E33D52023A6; Thu, 8 Apr 2021 11:19:06 +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 C8E8B200EB3; Thu, 8 Apr 2021 11:19:04 +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 AAE7E40291; Thu, 8 Apr 2021 11:19:01 +0200 (CEST) From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com--dry-run Cc: apeksha.gupta@nxp.com, Hemant Agrawal Date: Thu, 8 Apr 2021 14:47:33 +0530 Message-Id: <20210408091734.21522-1-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH] net/dpaa2: fix RSS distribution size field X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" RSS distribution field is U64, while the DPAA2 code was using integer value, which is causing a issue for MPLS having bit position 33. This patch fixes the code to use unsigned long long. Fixes: 1832bc8ee8d4 ("net/dpaa2: support MPLS distribution") Cc: apeksha.gupta@nxp.com Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c index 9d1565369d..b901b4342f 100644 --- a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c +++ b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c @@ -203,7 +203,7 @@ dpaa2_distset_to_dpkg_profile_cfg( memset(kg_cfg, 0, sizeof(struct dpkg_profile_cfg)); while (req_dist_set) { if (req_dist_set % 2 != 0) { - dist_field = 1U << loop; + dist_field = 1ULL << loop; switch (dist_field) { case ETH_RSS_L2_PAYLOAD: