]> git.karo-electronics.de Git - karo-tx-linux.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)
commitd25398df59b561a26cb4000ceb4dea8a3ff94d22
treee5dfb19ca7a9d1dc7cfed76709ebc2c16c3200f1
parent9eb43e765368f835d92c93844ebce30da7efeb84
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