tg3: restore rx_dropped accounting
commitb0057c51db66c5f0f38059f242c57d61c4741d89
authorEric Dumazet <eric.dumazet@gmail.com>
Sun, 10 Oct 2010 19:55:52 +0000 (10 19:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Oct 2010 23:06:24 +0000 (11 16:06 -0700)
tree5b5de8a159129f0655f4ccae5fb9bef8a9f910cc
parentbcf64aa379fcadd074449cbf0c049da70071b06f
tg3: restore rx_dropped accounting

commit 511d22247be7 (tg3: 64 bit stats on all arches), overlooked the
rx_dropped accounting.

We use a full "struct rtnl_link_stats64" to hold rx_dropped value, but
forgot to report it in tg3_get_stats64().

Use an "unsigned long" instead to shrink "struct tg3" by 176 bytes, and
report this value to stats readers.

Increment rx_dropped counter for oversized frames.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Michael Chan <mchan@broadcom.com>
CC: Matt Carlson <mcarlson@broadcom.com>
Acked-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c
drivers/net/tg3.h