From 27fdd30224281f151ef9d1ba0ec26223de9529bf Mon Sep 17 00:00:00 2001 From: ppliu1979 Date: Wed, 30 Aug 2017 18:29:03 +0800 Subject: [PATCH] Fix the wrong operator order in ff_rss_check function. --- lib/ff_dpdk_if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ff_dpdk_if.c b/lib/ff_dpdk_if.c index 8ac0781f..c491d0b9 100644 --- a/lib/ff_dpdk_if.c +++ b/lib/ff_dpdk_if.c @@ -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; }