2004-10-04 15:26:29

by Martin Zwickel

[permalink] [raw]
Subject: net_device: set_multicast_list called from interrupt?

Hi there!

I don't know if this is the right place, but I hope so.

I wrote a network-driver years ago for the 2.4er kernel's.

Now I ported it to the 2.6er kernel but I get some problems because
set_multicast_list is called from an interrupt and my driver want's to
free/allocate some memory.

Why did the driver work under 2.4, and now stops running on 2.6?

I had a look at http://lwn.net/Articles/30107/:
Driver porting: Network drivers

but there was nothing about newly implemented soft-interrupts.

Thanks,
Martin

--
MyExcuse:
The cord jumped over and hit the power switch.

Martin Zwickel <[email protected]>
Research & Development

TechnoTrend AG <http://www.technotrend.de>


Attachments:
(No filename) (698.00 B)
(No filename) (189.00 B)
Download all attachments

2004-10-04 15:39:46

by Martin Zwickel

[permalink] [raw]
Subject: Re: net_device: set_multicast_list called from interrupt?

On Mon, 4 Oct 2004 17:26:21 +0200
Martin Zwickel <[email protected]> bubbled:

> Hi there!
>
> I don't know if this is the right place, but I hope so.
>
> I wrote a network-driver years ago for the 2.4er kernel's.
>
> Now I ported it to the 2.6er kernel but I get some problems because
> set_multicast_list is called from an interrupt and my driver want's to
> free/allocate some memory.
>
> Why did the driver work under 2.4, and now stops running on 2.6?
>
> I had a look at http://lwn.net/Articles/30107/:
> Driver porting: Network drivers
>
> but there was nothing about newly implemented soft-interrupts.
>
> Thanks,
> Martin
>

Ah, just tested it under 2.4er. It's called from an interrupt too.
So I have to workaround the free/alloc.

Sorry!

Martin

--
MyExcuse:
Your EMAIL is now being delivered by the USPS.

Martin Zwickel <[email protected]>
Research & Development

TechnoTrend AG <http://www.technotrend.de>


Attachments:
(No filename) (954.00 B)
(No filename) (189.00 B)
Download all attachments