Skip to contentSkip to conversation

irq problems?

DISCUSSION Giacomo Strangolino 1 participant 1 message Nov 28, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

Good morning.
I wrote a simple packet filter in kernel space. I register with netfilter hooks and then i process packets in input, output, forward, pre, post.

For rules and internal structures i use linked lists with read_lock_bh / write_lock_bh to protect concurrency, since there are timers which, at timeout, delete entries in lists.

All works fine, but sometimes when i unplug video cable from graphic card system hangs. Sometimes this happens after unloading my modules, but this happens more frequently when my filter is running.

Can it be an issue related to my work?
Perhaps could it be an interrupt raised by
network card which i should protect code from?
Should i disable hw interrupts?

What can be wrong, any idea?

Thanks a lot!

Giacomo

www.giacomos.it/ipfire