]> 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)
commit74639186748c8d1373fb4b3b425960eb8c7ab16f
treee5dfb19ca7a9d1dc7cfed76709ebc2c16c3200f1
parentf3e39edd0d343a0b8efece6e4134a1d82bc4b1c9
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