netdev
[Top] [All Lists]

Re: [RFT][PATCH] cleanup net/atm/br2684.c

To: Mitchell Blank Jr <mitch@xxxxxxxxxx>
Subject: Re: [RFT][PATCH] cleanup net/atm/br2684.c
From: Stephen Hemminger <shemminger@xxxxxxxx>
Date: Mon, 11 Aug 2003 15:30:39 -0700
Cc: chas williams <chas@xxxxxxxxxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <20030811215857.GA96728@xxxxxxxxxxxxxx>
Organization: Open Source Development Lab
References: <20030811114823.5b81474c.shemminger@xxxxxxxx> <20030811215857.GA96728@xxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
On Mon, 11 Aug 2003 14:58:57 -0700
Mitchell Blank Jr <mitch@xxxxxxxxxx> wrote:

> You might also want to send this patch to the linux-atm mailing list:
>   linux-atm-general@xxxxxxxxxxxxxxxxxxxxx
> Unfortunately you need to subscribe to post.
>   http://lists.sourceforge.net/lists/listinfo/linux-atm-general
> 
> Not sure how many ATM users are following 2.6 yet though.  I might be
> able to give it a spin soon.
> 
> > -                   unregister_netdev(&brdev->net_dev);
> > -                   kfree(brdev);
> > +                   unregister_netdev(brdev->net_dev);
> > +                   kfree(brdev->net_dev);
> 
> Mmmm.. I see this snippet in your diff in multiplce places and it looks
> wrong.  Where does the "brdev" structure get freed now?
> 
> -Mitch
The brdev structure is contained inside the allocation of net_device,
this is how all the ether and other devices do it.

net_dev   -->+-------------------+
             | network_device    |
             +-------------------+
             |/// padding ///////|
             +-------------------+
priv      -->|     brdev         |
             +-------------------+

        

<Prev in Thread] Current Thread [Next in Thread>