net: use reciprocal_scale() helper
authorDaniel Borkmann <dborkman@redhat.com>
Sat, 23 Aug 2014 18:58:54 +0000 (20:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Aug 2014 19:21:21 +0000 (12:21 -0700)
commit8fc54f68919298ff9689d980efb495707ef43f30
treec8a0c89621a9e670be02764a357bb6e73ed7ab6c
parent690e36e726d00d2528bc569809048adf61550d80
net: use reciprocal_scale() helper

Replace open codings of (((u64) <x> * <y>) >> 32) with reciprocal_scale().

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Cc: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
14 files changed:
net/core/dev.c
net/core/flow_dissector.c
net/ipv4/inet_hashtables.c
net/ipv4/netfilter/ipt_CLUSTERIP.c
net/ipv4/udp.c
net/ipv6/inet6_hashtables.c
net/ipv6/udp.c
net/netfilter/nf_conntrack_core.c
net/netfilter/nf_conntrack_expect.c
net/netfilter/nf_nat_core.c
net/netfilter/xt_HMARK.c
net/netfilter/xt_cluster.c
net/netfilter/xt_hashlimit.c
net/sched/sch_fq_codel.c