mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: jamal <hadi@cyberus.ca>
To: Bogdan Costescu <bogdan.costescu@iwr.uni-heidelberg.de>
Cc: Jeff Garzik <jgarzik@mandrakesoft.com>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>,
	Pete Zaitcev <zaitcev@redhat.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	<netdev@oss.sgi.com>
Subject: Re: [PATCH] support for Cobalt Networks (x86 only) systems (forrealthis
Date: Sat, 2 Jun 2001 10:49:01 -0400 (EDT)	[thread overview]
Message-ID: <Pine.GSO.4.30.0106011357000.11540-100000@shell.cyberus.ca> (raw)
In-Reply-To: <Pine.LNX.4.33.0106011620340.18082-100000@kenzo.iwr.uni-heidelberg.de>



On Fri, 1 Jun 2001, Bogdan Costescu wrote:

> On Fri, 1 Jun 2001, jamal wrote:
>
> > One idea i have been toying with is to maintain hysteris or threshold of
> > some form in dev_watchdog;
>
> AFAIK, dev_watchdog is right now used only for Tx (if I'm wrong, please
> correct me!). So how do you sense link loss if you expect only high Rx
> traffic ?
>

Good question. Makes me think. Thoughts further below.

> > example: if watchdog timer expires threshold times, you declare the link
> > dead and send netif_carrier_off netlink message.
> > On recovery, you send  netif_carrier_on
>
> I assume that you mean "on recovery" as in "first succesful hard_start_xmit".
>

right.

> > Assumption:
> > If the tx path is blocked, more than likely the link is down.
>
> Yes, but is this a good approximation ? I'm not saying that it's not, I'm
> merely asking for counter-arguments.

It is an indirect approximation. Note that if the system data is very
asymetrical as in the case you pointed out, notification will take a long
long time. You need a plan B. Still, the tx watchdogs are a good source of
fault detection in the case of non-availabilty of MII detection and even
with the presence of MII.

I hate making this more complex than it should be:

Since we already have a messaging system within the kernel and
user<->kernel space aka "netlink" -- one could easily add a protocol in
user space which "dynamically heartbeats" the devices. Control should come
from user space; it would be a great idea to avoid ioctls.

"Dynamic" in the above sense means trying to totaly avoid making it a
synchronous poll. The poll rate is a function of how many packets go out
that device per average measurement time. Basically, the period that the
user space app dumps "hello" netlink packets to the kernel is a variable.

cheers,
jamal



  reply	other threads:[~2001-06-02 14:51 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.991383180.28261.linux-kernel2news@redhat.com>
2001-06-01  2:47 ` [PATCH] support for Cobalt Networks (x86 only) systems (for real this time) Tim Hockin
2001-06-01  8:10   ` Jeff Garzik
2001-06-01  8:46   ` [PATCH] support for Cobalt Networks (x86 only) systems (for real this Alan Cox
2001-06-01  8:58   ` [PATCH] support for Cobalt Networks (x86 only) systems (for real this time) Pete Zaitcev
2001-06-01 12:03     ` Bogdan Costescu
2001-06-01 12:20       ` [PATCH] support for Cobalt Networks (x86 only) systems (for realthis time) Jeff Garzik
2001-06-01 12:51         ` [PATCH] support for Cobalt Networks (x86 only) systems (for realthis Alan Cox
2001-06-01 12:56           ` Jeff Garzik
2001-06-01 12:58             ` Alan Cox
2001-06-01 13:06               ` Bogdan Costescu
2001-06-01 13:15                 ` [PATCH] support for Cobalt Networks (x86 only) systems (forrealthis Jeff Garzik
2001-06-01 13:39                   ` Bogdan Costescu
2001-06-01 14:14                     ` jamal
2001-06-01 14:30                       ` Bogdan Costescu
2001-06-02 14:49                         ` jamal [this message]
2001-06-03 12:09                           ` Bogdan Costescu
2001-06-04 18:43                             ` Jeff Garzik
2001-06-04 19:08                             ` jamal
2001-06-01 13:19                 ` David S. Miller
2001-06-01 14:02                   ` Bogdan Costescu
2001-06-01 14:19                 ` [PATCH] support for Cobalt Networks (x86 only) systems (for Alan Cox
2001-06-01 14:37                   ` Mark Frazer
2001-06-01 14:37                     ` Alan Cox
2001-06-01 14:45                       ` Mark Frazer
2001-06-01 14:46                       ` Bogdan Costescu
2001-06-01 17:37                     ` Alan Cox
2001-06-02  8:20                       ` Bogdan Costescu
2001-06-02 16:15                         ` Alan Cox
2001-06-02 19:10                           ` MII access (was [PATCH] support for Cobalt Networks (x86 only) systems) Bogdan Costescu
2001-06-02 19:25                             ` MII access (was [PATCH] support for Cobalt Networks (x86 only) Alan Cox
2001-06-02 21:36                               ` Bogdan Costescu
2001-06-02 21:37                                 ` Alan Cox
2001-06-03 11:59                                   ` Bogdan Costescu
2001-06-03 12:11                                     ` Jeff Garzik
2001-06-05  9:07                                       ` Bogdan Costescu
2001-06-10  2:07                                         ` eepro100 security fix [was: Re: MII access] Andrey Savochkin
2001-06-01 15:13                   ` [PATCH] support for Cobalt Networks (x86 only) systems (for Bogdan Costescu
2001-06-02 22:04               ` [PATCH] support for Cobalt Networks (x86 only) systems (for realthis Jamie Lokier

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=Pine.GSO.4.30.0106011357000.11540-100000@shell.cyberus.ca \
    --to=hadi@cyberus.ca \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=bogdan.costescu@iwr.uni-heidelberg.de \
    --cc=jgarzik@mandrakesoft.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@oss.sgi.com \
    --cc=zaitcev@redhat.com \
    /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

all inboxes | Powered by JetHome®