From 3b63d9346c62c2f5b3dcc5f154722e81c0c78061 Mon Sep 17 00:00:00 2001 From: Helin Zhang Date: Tue, 24 Jun 2014 10:02:36 +0800 Subject: [PATCH] i40e: fix updating hash lookup table of PF RSS The bit shifting were written wrongly in '0x1 < j', the correct one should be '0x1 << j'. Signed-off-by: Helin Zhang Acked-by: Jing Chen Acked-by: Cunming Liang --- lib/librte_pmd_i40e/i40e_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_pmd_i40e/i40e_ethdev.c b/lib/librte_pmd_i40e/i40e_ethdev.c index 1b4e822391..0d7be445fa 100644 --- a/lib/librte_pmd_i40e/i40e_ethdev.c +++ b/lib/librte_pmd_i40e/i40e_ethdev.c @@ -1452,7 +1452,7 @@ i40e_dev_rss_reta_update(struct rte_eth_dev *dev, l = I40E_READ_REG(hw, I40E_PFQF_HLUT(i >> 2)); for (j = 0, lut = 0; j < 4; j++) { - if (mask & (0x1 < j)) + if (mask & (0x1 << j)) lut |= reta_conf->reta[i + j] << (8 * j); else lut |= l & (0xFF << (8 * j)); -- 2.20.1