]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'snmp-stats-update'
authorDavid S. Miller <davem@davemloft.net>
Thu, 28 Apr 2016 02:48:25 +0000 (22:48 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Apr 2016 02:48:25 +0000 (22:48 -0400)
commit5c25d47c0e1b6755f42ec9e5ba170941e4189d74
treef0a676282ad3a6c5f19a0e8fb2a2c771b6433008
parent74d37817e746badf2c98dff5f1f6b88f28b546c7
parent4f0f993f8c6f87bcf9cba413a566e26931d7c2cd
Merge branch 'snmp-stats-update'

Eric Dumazet says:

====================
net: snmp: update SNMP methods

In the old days (before linux-3.0), SNMP counters were duplicated,
one set for user context, and anther one for BH context.

After commit db41624d1656 ("snmp: reduce percpu needs by 50%")
we have a single copy, and what really matters is preemption being
enabled or disabled, since we use this_cpu_inc() or __this_cpu_inc()
respectively.

This patch series kills the obsolete STATS_USER() helpers,
and rename all XXX_BH() helpers to __XXX() ones, to more
closely match conventions used to update per cpu variables.

This is probably going to hurt maintainers job for a while,
since cherry-picks will not be clean, but this had to be
cleaned at one point. I am so sorry guys.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>