]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/netfilter/xt_cluster.c
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target...
[karo-tx-linux.git] / net / netfilter / xt_cluster.c
index 30b95a1c1c892da3018bbf9084e4fe3a8d59b4b1..96fa26b20b67dce9ed2d2abaaf6ce71dda363faf 100644 (file)
@@ -55,7 +55,8 @@ xt_cluster_hash(const struct nf_conn *ct,
                WARN_ON(1);
                break;
        }
-       return (((u64)hash * info->total_nodes) >> 32);
+
+       return reciprocal_scale(hash, info->total_nodes);
 }
 
 static inline bool
@@ -120,7 +121,7 @@ xt_cluster_mt(const struct sk_buff *skb, struct xt_action_param *par)
        if (ct == NULL)
                return false;
 
-       if (ct == &nf_conntrack_untracked)
+       if (nf_ct_is_untracked(ct))
                return false;
 
        if (ct->master)