netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: Stefan Rompf <srompf@isg.de>
Cc: jamal <hadi@cyberus.ca>, kuznet@ms2.inr.ac.ru, netdev@oss.sgi.com
Subject: Re: Patch: Idea for RFC2863 conform OperStatus
Date: Mon, 14 Oct 2002 11:55:01 -0700	[thread overview]
Message-ID: <3DAB1305.10805@pacbell.net> (raw)
In-Reply-To: 3DAB0982.C0C6E36F@isg.de

>>- NOTPRESENT makes sense more from a NMS pov where a hotplug device has
>>been removed and SNMP finds that the device is no longer there. This
>>can be done without any state from the kernel being exposed.
> 
> 
> I want to forward this question mainly to the USB people. David, as you
> are familiar with this thread, how does an USB  driver react when an
> ethernet device is configured, running and then disconnected from the
> USB port? From RFC2863, I'd expect the devicename ethx not to be removed
> at least until it is ifconfigured down, but change from UP to NOTPRESENT
> until reconnection. So it would be useful to have this state inside the
> kernel.

Right now almost all USB networking drivers make the device disappear
immediately ... certainly the ones that have made sure they handle the
USB disconnect processing correctly (no more I/O to that device!) tend
to do that, by calling unregister_netdev().

And they don't try reconnection.  The goal of disconnect processing has
been to scrub out all the relevant device state; only the usb-storage
driver tries to keep a history of devices that have ever been attached,
so it can make "/dev/sdg" mean the same thing until reboot.

I wouldn't swear that unregistering is the perfect solution, but it's
clearly better than the oopses that tended to show up previously.
(And oddly enough, the drivers that _don't_ unregister seem to be the
ones that still have an EXPERIMENTAL label in the 2.5 kernels.)

- Dave

(Note that I'm just skimming this thread at the moment, limited time...
good that you cc'd me directly.)

  reply	other threads:[~2002-10-14 18:55 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-12 13:23 Patch: Idea for RFC2863 conform OperStatus Stefan Rompf
2002-10-12 13:13 ` jamal
2002-10-13 12:48   ` Stefan Rompf
2002-10-13 14:04     ` jamal
2002-10-15  9:53       ` Stefan Rompf
2002-10-16  2:49         ` jamal
2002-10-21 21:38           ` Stefan Rompf
2002-10-12 14:09 ` jamal
2002-10-13 19:14   ` kuznet
2002-10-13 20:30     ` jamal
2002-10-13 21:00       ` kuznet
2002-10-13 21:34         ` jamal
2002-10-13 22:04           ` kuznet
2002-10-14 12:42             ` Stefan Rompf
2002-10-14 13:11               ` jamal
2002-10-14 13:38               ` jamal
2002-10-14 18:14                 ` Stefan Rompf
2002-10-14 18:55                   ` David Brownell [this message]
2002-10-14 19:03                     ` David Brownell
2002-10-14 13:01             ` jamal
2002-10-14 10:38 ` bert hubert
2002-10-14 11:16   ` Robert Olsson
2002-10-14 11:11     ` bert hubert
2002-10-14 11:50       ` Robert Olsson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3DAB1305.10805@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=hadi@cyberus.ca \
    --cc=kuznet@ms2.inr.ac.ru \
    --cc=netdev@oss.sgi.com \
    --cc=srompf@isg.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).