[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140930.010252.1632977911084328063.davem@davemloft.net>
Date: Tue, 30 Sep 2014 01:02:52 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: john.fastabend@...il.com
Cc: xiyou.wangcong@...il.com, jhs@...atatu.com, eric.dumazet@...il.com,
netdev@...r.kernel.org
Subject: Re: [net-next PATCH v3 1/4] net: sched: make bstats per cpu and
estimator RCU safe
From: John Fastabend <john.fastabend@...il.com>
Date: Sun, 28 Sep 2014 11:52:56 -0700
> From: John Fastabend <john.fastabend@...il.com>
>
> In order to run qdisc's without locking statistics and estimators
> need to be handled correctly.
>
> To resolve bstats make the statistics per cpu. And because this is
> only needed for qdiscs that are running without locks which is not
> the case for most qdiscs in the near future only create percpu
> stats when qdiscs set the TCQ_F_CPUSTATS flag.
>
> Next because estimators use the bstats to calculate packets per
> second and bytes per second the estimator code paths are updated
> to use the per cpu statistics.
>
> Signed-off-by: John Fastabend <john.r.fastabend@...el.com>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists