summaryrefslogtreecommitdiff
path: root/lib/librte_ip_frag
diff options
context:
space:
mode:
authorAnatoly Burakov <anatoly.burakov@intel.com>2014-06-18 15:50:32 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-06-26 22:50:39 +0200
commitd451d46c698786da7b3217f0d8d874cd881b7f17 (patch)
tree4392d8632d9628737aa7671512837a9dbe66d4de /lib/librte_ip_frag
parent4ae2a4f8cfd731814a13868bdbd65dce7fbf9780 (diff)
downloaddpdk-d451d46c698786da7b3217f0d8d874cd881b7f17.zip
dpdk-d451d46c698786da7b3217f0d8d874cd881b7f17.tar.gz
dpdk-d451d46c698786da7b3217f0d8d874cd881b7f17.tar.xz
ip_frag: replace hardcoded value with a macro
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Diffstat (limited to 'lib/librte_ip_frag')
-rw-r--r--lib/librte_ip_frag/ip_frag_internal.c2
1 files changed, 1 insertions, 1 deletions
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);