| To: | Stephen Hemminger <shemminger@xxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] (0/9) free_netdev -- delay freeing of net_device structure till after last use |
| From: | "David S. Miller" <davem@xxxxxxxxxx> |
| Date: | Tue, 19 Aug 2003 12:48:18 -0700 |
| Cc: | jgarzik@xxxxxxxxx, netdev@xxxxxxxxxxx, mochel@xxxxxxxx |
| In-reply-to: | <20030819121800.009db89b.shemminger@xxxxxxxx> |
| References: | <20030819121800.009db89b.shemminger@xxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Tue, 19 Aug 2003 12:18:00 -0700
Stephen Hemminger <shemminger@xxxxxxxx> wrote:
> It should be trivial to maintain source compatiablity with 2.4
> which doesn't need to change since it doesn't have sysfs,
> by adding something like this to netdevice.h in 2.4
>
> static __inline__ void free_netdev(struct net_device *dev)
> {
> kfree(dev);
> }
Yes, but drivers that want to work with all 2.4.x trees
will need some kind of define to tip off of. Just providing
a HAVE_FREE_NETDEV ought to be sufficient.
Jeff?
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] (0/9) free_netdev -- delay freeing of net_device structure till after last use, Stephen Hemminger |
|---|---|
| Next by Date: | Re: [2.4 PATCH] bugfix: ARP respond on all devices, Michael Richardson |
| Previous by Thread: | [PATCH] (0/9) free_netdev -- delay freeing of net_device structure till after last use, Stephen Hemminger |
| Next by Thread: | Re: [PATCH] (0/9) free_netdev -- delay freeing of net_device structure till after last use, Jeff Garzik |
| Indexes: | [Date] [Thread] [Top] [All Lists] |