macvlan: cleanup rx statistics
authorArnd Bergmann <arnd@arndb.de>
Thu, 26 Nov 2009 06:07:09 +0000 (06:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Nov 2009 23:53:02 +0000 (15:53 -0800)
commita1e514c5d0397b5581721aad9b303f7df83b103d
tree8a4da00850ff4e153aead21baab749f8d5994497
parent445409602c09219767c06497c0dc2285eac244ed
macvlan: cleanup rx statistics

We have very similar code for rx statistics in
two places in the macvlan driver, with a third
one being added in the next patch.

Consolidate them into one function to improve
overall readability of the driver.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c