lkml.org 
[lkml]   [2003]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] Re: Linux 2.6.0-test5
    Jeff Garzik wrote:
    > Note that people seeing "ifconfig down ... ifconfig up" problems need to
    > apply this patch. (to 2.4.23-pre, too)
    >
    > Jeff
    >
    >
    >
    > ------------------------------------------------------------------------
    >
    > diff -Nru a/net/core/dev.c b/net/core/dev.c
    > --- a/net/core/dev.c Mon Sep 8 18:14:36 2003
    > +++ b/net/core/dev.c Mon Sep 8 18:14:36 2003
    > @@ -851,7 +851,11 @@
    > * engine, but this requires more changes in devices. */
    >
    > smp_mb__after_clear_bit(); /* Commit netif_running(). */
    > - netif_poll_disable(dev);
    > + while (test_bit(__LINK_STATE_RX_SCHED, &dev->state)) {
    > + /* No hurry. */
    > + current->state = TASK_INTERRUPTIBLE;
    > + schedule_timeout(1);
    > + }
    >
    > /*
    > * Call the device specific close. This cannot fail.

    Okay! I'm at least back where I started. This patch doen't fix the
    ifconfig down/up problem, but it does reverse the disastrous effects
    of the last tg3 updates in both 2.6 and 2.4

    Is there any reason this patch should not be committed?

    Thanks.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:48    [W:7.005 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site