1. 18 Oct, 2021 1 commit
    • Sebastian Andrzej Siewior's avatar
      gen_stats: Add instead Set the value in __gnet_stats_copy_basic(). · fbf307c8
      Sebastian Andrzej Siewior authored
      __gnet_stats_copy_basic() always assigns the value to the bstats
      argument overwriting the previous value. The later added per-CPU version
      always accumulated the values in the returning gnet_stats_basic_packed
      argument.
      
      Based on review there are five users of that function as of today:
      - est_fetch_counters(), ___gnet_stats_copy_basic()
        memsets() bstats to zero, single invocation.
      
      - mq_dump(), mqprio_dump(), mqprio_dump_class_stats()
        memsets() bstats to zero, multiple invocation but does not use the
        function due to !qdisc_is_percpu_stats().
      
      Add the values in __gnet_stats_copy_basic() instead overwriting. Rename
      the function to gnet_stats_add_basic() to make it more obvious.
      Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      fbf307c8
  2. 16 Oct, 2021 39 commits