[dpdk-dev] [PATCH 05/10] ip_frag: small fix, replace hardcode with a macro
Anatoly Burakov
anatoly.burakov at intel.com
Wed Jun 18 16:50:32 CEST 2014
Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
---
lib/librte_ip_frag/ip_frag_internal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/librte_ip_frag/ip_frag_internal.c b/lib/librte_ip_frag/ip_frag_internal.c
index 219221f..6203740 100644
--- a/lib/librte_ip_frag/ip_frag_internal.c
+++ b/lib/librte_ip_frag/ip_frag_internal.c
@@ -350,7 +350,7 @@ ip_frag_lookup(struct rte_ip_frag_tbl *tbl,
return (tbl->last);
/* different hashing methods for IPv4 and IPv6 */
- if (key->key_len == 1)
+ if (key->key_len == IPV4_KEYLEN)
ipv4_frag_hash(key, &sig1, &sig2);
else
ipv6_frag_hash(key, &sig1, &sig2);
--
1.8.1.4
More information about the dev
mailing list