On Wed, Feb 24, 1999 at 09:25:07AM +0100, Gopinath @ mail . muc . de wrote:
> I require to call a function (ip_forward) that is a part of
> the net bottom half from the callback handler of
> a netlink device. But, if my understanding is right,
> this might lead to reentrancy of the bottom half due to, say,
> a network interrupt,
> which should not happen. To avoid this is it enough if I
> enclose the call with primitives start_bh_atomic()/end_bh_atomic() which
> increment/decrement the intr_count variable?
{start,end}_bh_atomic() is enough. ip_forward is not called from interrupts,
only from net_bh (fast routing does not use ip_forward).
-Andi
P.S.: Your From address is not RFC822 compliant.
--
This is like TV. I don't like TV.
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]