aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/netfilter/xt_HMARK.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/xt_HMARK.c b/net/netfilter/xt_HMARK.c
index 5817d03105b2..0a96a43108ed 100644
--- a/net/netfilter/xt_HMARK.c
+++ b/net/netfilter/xt_HMARK.c
@@ -109,7 +109,7 @@ hmark_hash(struct hmark_tuple *t, const struct xt_hmark_info *info)
109 hash = jhash_3words(t->src, t->dst, t->uports.v32, info->hashrnd); 109 hash = jhash_3words(t->src, t->dst, t->uports.v32, info->hashrnd);
110 hash = hash ^ (t->proto & info->proto_mask); 110 hash = hash ^ (t->proto & info->proto_mask);
111 111
112 return (hash % info->hmodulus) + info->hoffset; 112 return (((u64)hash * info->hmodulus) >> 32) + info->hoffset;
113} 113}
114 114
115static void 115static void