aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/virtio_net.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2017-02-15 09:49:26 +0100
committerJohannes Berg <johannes.berg@intel.com>2017-03-02 08:32:46 +0100
commiteb1e011a14748a1d9df9a7d7df9a5711721a1bdb (patch)
tree599710c96a23bcbc25423cb0a99696dd0b257c7b /drivers/net/virtio_net.c
parentipv6: orphan skbs in reassembly unit (diff)
downloadlinux-dev-eb1e011a14748a1d9df9a7d7df9a5711721a1bdb.tar.xz
linux-dev-eb1e011a14748a1d9df9a7d7df9a5711721a1bdb.zip
average: change to declare precision, not factor
Declaring the factor is counter-intuitive, and people are prone to using small(-ish) values even when that makes no sense. Change the DECLARE_EWMA() macro to take the fractional precision, in bits, rather than a factor, and update all users. While at it, add some more documentation. Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/virtio_net.c')
-rw-r--r--drivers/net/virtio_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index bf95016f442a..e9d7e2b70085 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -51,7 +51,7 @@ module_param(gso, bool, 0444);
* at once, the weight is chosen so that the EWMA will be insensitive to short-
* term, transient changes in packet size.
*/
-DECLARE_EWMA(pkt_len, 1, 64)
+DECLARE_EWMA(pkt_len, 0, 64)
/* With mergeable buffers we align buffer address and use the low bits to
* encode its true size. Buffer size is up to 1 page so we need to align to