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
net/bnxt: fix null dereference in session cleanup
[dpdk.git]
/
lib
/
distributor
/
rte_distributor_single.c
diff --git
a/lib/distributor/rte_distributor_single.c
b/lib/distributor/rte_distributor_single.c
index
de90aa8
..
2c77ac4
100644
(file)
--- a/
lib/distributor/rte_distributor_single.c
+++ b/
lib/distributor/rte_distributor_single.c
@@
-245,8
+245,7
@@
rte_distributor_process_single(struct rte_distributor_single *d,
* worker given by the bit-position
*/
for (i = 0; i < d->num_workers; i++)
* worker given by the bit-position
*/
for (i = 0; i < d->num_workers; i++)
- match |= (!(d->in_flight_tags[i] ^ new_tag)
- << i);
+ match |= ((uint64_t)!(d->in_flight_tags[i] ^ new_tag) << i);
/* Only turned-on bits are considered as match */
match &= d->in_flight_bitmask;
/* Only turned-on bits are considered as match */
match &= d->in_flight_bitmask;