diff options
author | Hiroaki SHIMODA <shimoda.hiroaki@gmail.com> | 2012-04-15 17:26:01 +0400 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2012-05-11 16:14:25 +0400 |
commit | 829a94ac60173dca2a30b65ea43c5c01150bd233 (patch) | |
tree | d8f21fb101896d2370208d1ab664d5f757d4289e /net/ipv4 | |
parent | 888580ee7e7377ff8feb098a1f1150946abc105b (diff) | |
download | linux-829a94ac60173dca2a30b65ea43c5c01150bd233.tar.xz |
dummy: Add ndo_uninit().
commit 890fdf2a0cb88202d1427589db2cf29c1bdd3c1d upstream.
In register_netdevice(), when ndo_init() is successful and later
some error occurred, ndo_uninit() will be called.
So dummy deivce is desirable to implement ndo_uninit() method
to free percpu stats for this case.
And, ndo_uninit() is also called along with dev->destructor() when
device is unregistered, so in order to prevent dev->dstats from
being freed twice, dev->destructor is modified to free_netdev().
Signed-off-by: Hiroaki SHIMODA <shimoda.hiroaki@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions