netdev-linux: Fix tap device stats.
authorJesse Gross <jesse@nicira.com>
Tue, 1 Jun 2010 21:20:46 +0000 (14:20 -0700)
committerJesse Gross <jesse@nicira.com>
Wed, 2 Jun 2010 00:27:45 +0000 (17:27 -0700)
commit92df599cb2bc5b04a5c9da3e7002f4c729ba480c
tree58703557b5e57092513cc71a74ad656dd30b5890
parentb9b0865ac2b92e3aa0db70bccbddb3b943f7ea20
netdev-linux: Fix tap device stats.

For tap and internal devices we swap the transmit and receive stats
to appear consistent with other devices.  However, the check whether
to store the stats in a temporary location before the swap did not
include tap devices, which lead to the use of uninitialized memory
when the swap occured.
lib/netdev-linux.c