net/dpaa2: fix RSS distribution size field
authorHemant Agrawal <hemant.agrawal@nxp.com>
Thu, 8 Apr 2021 09:17:43 +0000 (14:47 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 9 Apr 2021 09:00:30 +0000 (11:00 +0200)
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: stable@dpdk.org
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/net/dpaa2/base/dpaa2_hw_dpni.c

index 9d15653..b901b43 100644 (file)
@@ -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: