net: introduce reciprocal_scale helper and convert users
authorDaniel Borkmann <dborkman@redhat.com>
Wed, 22 Jan 2014 01:29:40 +0000 (02:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jan 2014 07:17:20 +0000 (23:17 -0800)
commit89770b0a69ee0e0e5e99c722192d535115f73778
treea8c96a91c2417dc81f5ce08aa59ebcfd456e0335
parentf337db64af059c9a94278a8b0ab97d87259ff62f
net: introduce reciprocal_scale helper and convert users

As David Laight suggests, we shouldn't necessarily call this
reciprocal_divide() when users didn't requested a reciprocal_value();
lets keep the basic idea and call it reciprocal_scale(). More
background information on this topic can be found in [1].

Joint work with Hannes Frederic Sowa.

  [1] http://homepage.cs.uiowa.edu/~jones/bcd/divide.html

Suggested-by: David Laight <david.laight@aculab.com>
Cc: Jakub Zawadzki <darkjames-ws@darkjames.pl>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/kernel.h
include/net/codel.h
net/packet/af_packet.c