[Bridge] [PATCH] bridge: per-cpu packet statistics
Eric Dumazet
eric.dumazet at gmail.com
Mon Mar 1 23:43:52 PST 2010
Le lundi 01 mars 2010 à 16:16 -0800, Stephen Hemminger a écrit :
> +static void br_dev_free(struct net_device *dev)
> +{
> + struct net_bridge *br = netdev_priv(dev);
> +
> + free_percpu(br->stats);
> +}
> +
> void br_dev_setup(struct net_device *dev)
> {
> random_ether_addr(dev->dev_addr);
> ether_setup(dev);
>
> dev->netdev_ops = &br_netdev_ops;
> - dev->destructor = free_netdev;
> + dev->destructor = br_dev_free;
> SET_ETHTOOL_OPS(dev, &br_ethtool_ops);
Isnt free_netdev() missing after this change ?
More information about the Bridge
mailing list