| commit | 59f09ae8fac4a990070fc6bdc889d0e0118664ea | [log] [tgz] | 
|---|---|---|
| author | Eric Dumazet <edumazet@google.com> | Wed Sep 29 18:03:32 2021 -0700 | 
| committer | David S. Miller <davem@davemloft.net> | Thu Sep 30 14:17:10 2021 +0100 | 
| tree | b2a2ae1c36876b2ef1aea66848d36b9b51cc41f2 | |
| parent | dee3b2d0fa4b51a079f7d12159b42240f795bf64 [diff] | 
net: snmp: inline snmp_get_cpu_field() This trivial function is called ~90,000 times on 256 cpus hosts, when reading /proc/net/netstat. And this number keeps inflating. Inlining it saves many cycles. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>