Revert "veth: prevent oops caused by netdev destructor"
authorDavid S. Miller <davem@davemloft.net>
Thu, 25 Jun 2009 09:45:42 +0000 (02:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jun 2009 09:45:42 +0000 (02:45 -0700)
commit11687a1099583273a8a98ec42af62b5bb5a69e45
tree6af6c13ece4944985d0b0c94880ce68ac5035128
parent6a9b6546164fb380a019f92ca4d76443202fdc4f
Revert "veth: prevent oops caused by netdev destructor"

This reverts commit ae0e8e82205c903978a79ebf5e31c670b61fa5b4.

This change had two problems:

1) Since it frees the stats in the drivers' close method, we
   can OOPS in the transmit routine.

2) stats are no longer remembered across ifdown/ifup which
   disagrees with how every other device operates.

Thanks to analysis and test patch from Serge E. Hallyn
and initial OOPS report by Sachin Sant.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/veth.c