Re: tun.c patch to fix "smp_processor_id() in preemptible code"

From: Herbert Xu
Date: Tue Oct 19 2004 - 16:57:49 EST


Lee Revell <rlrevell@xxxxxxxxxxx> wrote:
>
> I looked at Robert Love's book and I am still unclear on the use of
> do_softirq above. To reiterate the question: why does netif_rx_ni have
> to manually flush any pending softirqs on the current proccessor after
> doing the rx? Is this just a performance hack?

Yes it allows the packet to be processed immediately.
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/