Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Sep 2006 18:17:35 GMT
From:      Mij <mij@bitchx.it>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/103495: if_vr locks after carrier event
Message-ID:  <200609221817.k8MIHZCW058296@www.freebsd.org>
Resent-Message-ID: <200609221820.k8MIKLG1016634@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         103495
>Category:       kern
>Synopsis:       if_vr locks after carrier event
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 22 18:20:20 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Mij
>Release:        FreeBSD 6.2-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD lamehost 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #2: Sat Sep 16
14:42:39 CEST 2006 xyz@lamehost:/usr/obj/usr/src/sys/ck i386

>Description:
The if_vr driver for VIA Rhine I and II stops processing both incoming and outgoing
traffic after the following event

    vr0: link state changed to DOWN
    vr0: link state changed to UP

(possibly repeated a few times) making the interface unusable reliably.

A similar report is in PR kern/100499, but this amendment has to be specified
wrt to it: no shutdown is required for having the driver handle traffic again.
Conversely, the following is sufficient:

    # ifconfig vr0 down
    # ifconfig vr0 up

this makes the driver run vr_reset(), after which the interface behaves
correctly again.

The linux driver via-rhine.c currently does not feature this behaviour and could
be source of inspiration.

>How-To-Repeat:
initialize vr interface; unplug the cable off of the interface, physically; replug the cable into the interface

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609221817.k8MIHZCW058296>