From d451d46c698786da7b3217f0d8d874cd881b7f17 Mon Sep 17 00:00:00 2001 From: Anatoly Burakov Date: Wed, 18 Jun 2014 15:50:32 +0100 Subject: [PATCH] ip_frag: replace hardcoded value with a macro Signed-off-by: Anatoly Burakov Acked-by: Thomas Monjalon --- 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 219221f208..6203740a37 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); -- 2.20.1