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: Fri, 1 Jun 2001 10:14:08 -0400 (EDT)	[thread overview]
Message-ID: <Pine.GSO.4.30.0106011006220.10502-100000@shell.cyberus.ca> (raw)
In-Reply-To: <Pine.LNX.4.33.0106011521440.18082-100000@kenzo.iwr.uni-heidelberg.de>


Jeff, Thanks for copying netdev. Wish more people would do that.

On Fri, 1 Jun 2001, Bogdan Costescu wrote:

> On Fri, 1 Jun 2001, Jeff Garzik wrote:
>
> > The loss and regain of link status should be proactively signalled to
> > userspace using netlink or something similar.
>
> [ For the general discussion ]
> I fully agree, but I just wanted to give an example of legit use from
> user space of _current_ values from hardware.
>
> >  Currently we have
> > netif_carrier_{on,off,ok} but it is only passively checked.
> > netif_carrier_{on,off} should probably schedule_task() to fire off a
> > netlink message...
>
> [ Link status details ]
> Just that not all NICs have hardware support (and/or not all drivers use
> these facilities) for link status change notification using interrupts.
> Right now, most drivers _poll_ for media status and based on the poll
> rate, netif_carrier routines are (or should be) called. We can't make the
> poll rate very small for the general case, as MII access is time
> consuming (same discussion was some months ago when the bonding driver
> was updated). However, for users who know that they need this info to be
> more accurate (at the expense of CPU time), polling through ioctl's is the
> only solution.

Not really.

One idea i have been toying with is to maintain hysteris or threshold of
some form in dev_watchdog;
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

Assumption:
If the tx path is blocked, more than likely the link is down.

cheers,
jamal


  reply	other threads:[~2001-06-01 14:16 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 [this message]
2001-06-01 14:30                       ` Bogdan Costescu
2001-06-02 14:49                         ` jamal
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.0106011006220.10502-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®