]> git.baikalelectronics.ru Git - kernel.git/commit
net: avoid reloads in SNMP_UPD_PO_STATS
authorEric Dumazet <edumazet@google.com>
Sat, 4 Aug 2012 20:26:13 +0000 (20:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Aug 2012 20:40:47 +0000 (13:40 -0700)
commitd886bc88507d92f1cc9d891442a3c8bfb674f0c4
treee5dfb19ca7a9d1dc7cfed76709ebc2c16c3200f1
parenta1427f5a3b44b435d02ca74280ca8c01f33a18ed
net: avoid reloads in SNMP_UPD_PO_STATS

Avoid two instructions to reload dev->nd_net->mib.ip_statistics pointer,
unsing a temp variable, in ip_rcv(), ip_output() paths for example.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/snmp.h