From patchwork Thu Apr 8 09:17:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 417411 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp368857jai; Thu, 8 Apr 2021 02:19:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiKQ7h1vYJfhj0DCa3tdVbo6alKqjxQwyLAbBGj+Y39F4yAKESALOWG/KO/RNl9xyTwOEJ X-Received: by 2002:a1c:f614:: with SMTP id w20mr7174721wmc.70.1617873566019; Thu, 08 Apr 2021 02:19:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617873566; cv=none; d=google.com; s=arc-20160816; b=ZW6oP0q9VyrUZxLKBRGuibqsFhOGXclbbETIlg45wSvt4apnWc9nmeL3QLwoQz8/Cs Qmv/qF59Bnv4W5MFlySShXnKQdKAoTi9Bzeave57aJuNoXm2YKFOooy63+cIVpk1y5ch xYRvNzl0tbkcBmDKdn9jigPEgX/RVJgPQ9HEGJPlnWG8Zg3as73QSDLYydWOuhSIxg9g jLoxB++jHIicx5h7s20MjPN5AhPQfDGZjW0ODtP1P7VhAsmFcQdFwoBEu+rjH4Q82et0 sSKhpSwiJ2uoNfjClGtYjzSkWoWXU2FcIoQPRi7YjQoZgQNqH2S7NkKNCdCXJO2cZeBE zV0A== 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=h+JPoccfW/oiOVvYqf+dxnuX2UldFg92pc9J5YJ/u8SxfHO3XvYD9ZZNTYzLR2o3Zv N8ptXYTyz7pE/KJLtAP6HqohHnWEZOhTkUY7Ve4Tc8MlrLMRqklVYWo3Omu/hiSJYaEA ay9cXgTssWJ/TIQ2C77JMEACvCXfyRyqLuu0CbacVluUe/0N+OzZeEu6OyRk8/1Ty4lu hM8jy96O7aBR0L1fTXylmLYZfKrnuZQi3U/u7Tm6bUhdsf6LJSmSYymVX0xQwpMXSztH j775g93y0y5SXhKHyttb9u4h0Qi/Lt8BPcVzEk46qYl1YC0G+04dSdQ7+0f/sXprIBIr uaKg== 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 k14si13774699wro.180.2021.04.08.02.19.25; Thu, 08 Apr 2021 02:19:26 -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 DF7B740698; Thu, 8 Apr 2021 11:19:19 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by mails.dpdk.org (Postfix) with ESMTP id 240D440698 for ; Thu, 8 Apr 2021 11:19:17 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 074BD2023A6; Thu, 8 Apr 2021 11:19:17 +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 11753200EB3; Thu, 8 Apr 2021 11:19:15 +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 F3665402B1; Thu, 8 Apr 2021 11:19:10 +0200 (CEST) From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: apeksha.gupta@nxp.com, Hemant Agrawal Date: Thu, 8 Apr 2021 14:47:43 +0530 Message-Id: <20210408091744.21570-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: