From: Anatoly Burakov Date: Wed, 18 Jun 2014 14:50:32 +0000 (+0100) Subject: ip_frag: replace hardcoded value with a macro X-Git-Tag: spdx-start~10591 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d451d46c698786da7b3217f0d8d874cd881b7f17;p=dpdk.git ip_frag: replace hardcoded value with a macro Signed-off-by: Anatoly Burakov Acked-by: Thomas Monjalon --- 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);