mirror of https://github.com/F-Stack/f-stack.git
Merge pull request #64 from ppliu1979/master
Fix the wrong operator order in ff_rss_check function
This commit is contained in:
commit
7ed267a536
|
@ -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