mirror of https://github.com/F-Stack/f-stack.git
Fix the wrong operator order in ff_rss_check function.
This commit is contained in:
parent
b1371608d2
commit
27fdd30224
|
@ -1409,7 +1409,7 @@ ff_rss_check(void *softc, uint32_t saddr, uint32_t daddr,
|
|||
uint32_t hash = toeplitz_hash(sizeof(default_rsskey_40bytes),
|
||||
default_rsskey_40bytes, datalen, data);
|
||||
|
||||
return (hash & (reta_size - 1) % qconf->nb_procs) == qconf->proc_id;
|
||||
return ((hash & (reta_size - 1)) % qconf->nb_procs) == qconf->proc_id;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue