git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
common/mlx5: add Direct Verbs constants for Windows
[dpdk.git]
/
drivers
/
net
/
bnxt
/
tf_core
/
lookup3.h
diff --git
a/drivers/net/bnxt/tf_core/lookup3.h
b/drivers/net/bnxt/tf_core/lookup3.h
index
b1fd2cd
..
743c4d9
100644
(file)
--- a/
drivers/net/bnxt/tf_core/lookup3.h
+++ b/
drivers/net/bnxt/tf_core/lookup3.h
@@
-122,7
+122,7
@@
static inline uint32_t hashword(const uint32_t *k,
size_t length,
uint32_t initval) {
uint32_t a, b, c;
- int index =
12
;
+ int index =
length - 1
;
/* Set up the internal state */
a = 0xdeadbeef + (((uint32_t)length) << 2) + initval;