[Bridge] [PATCH net v2 1/2] bridge: implement missing ndo_uninit()

Stephen Hemminger
Sat, 08 Apr 2017 13:30:42 -0000

On Sat, 8 Apr 2017 14:41:58 +0300
<idosch at mellanox.com> wrote:

>  static void br_dev_free(struct net_device *dev)
>  {
> -	struct net_bridge *br = netdev_priv(dev);
> -
> -	free_percpu(br->stats);
>  	free_netdev(dev);
>  }
>

Since the only thing left is free_netdev, you can now just set
dev->destructor
to be free_netdev.