git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d025265
)
i40e: fix updating hash lookup table of PF RSS
author
Helin Zhang
<helin.zhang@intel.com>
Tue, 24 Jun 2014 02:02:36 +0000
(10:02 +0800)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Tue, 24 Jun 2014 11:02:35 +0000
(13:02 +0200)
The bit shifting were written wrongly in '0x1 < j',
the correct one should be '0x1 << j'.
Signed-off-by: Helin Zhang <helin.zhang@intel.com>
Acked-by: Jing Chen <jing.d.chen@intel.com>
Acked-by: Cunming Liang <cunming.liang@intel.com>
lib/librte_pmd_i40e/i40e_ethdev.c
patch
|
blob
|
history
diff --git
a/lib/librte_pmd_i40e/i40e_ethdev.c
b/lib/librte_pmd_i40e/i40e_ethdev.c
index
1b4e822
..
0d7be44
100644
(file)
--- 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));