lkml.org 
[lkml]   [2002]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    Subject802.1q + device removal causing hang
    Hi,

    In 2.4.20-pre6, 2.4.20-pre4, 2.4.19, and 2.4.18 at least, I have been
    having problems with vlan shutdown when removing tg3.o. rmmod hangs on
    rtnl_sem, call trace:

    rtnetlink_event
    unregister_netdev
    vlan_device_event
    notifier_call_chain
    unregister_netdevice
    unregister_netdev
    [tg3 module]
    [tg3 module]
    pci_unregister_driver
    ...

    The hang is happening at rmmod time. All other operation appears to be
    fine. If I manually make sure all vlans are removed first, everything
    works, so it's probably something to do with the NETDEV_UNREGISTER case
    in vlan_device_event() in vlan.c.

    Steps to reproduce:

    modprobe tg3
    ifconfig eth0 up
    vconfig add eth0 10
    ifconfig eth0.10 1.2.3.4
    ifconfig eth0.10 down
    ifconfig eth0 down
    rmmod tg3

    Note that the IP address stays assigned even with eth0.10 set down.
    Everything works if the IP assignment is not made. Tested on
    2.4.20-pre6.

    Does anybody see what would be causing this (perhaps unregister_netdev
    reentering)?

    (Also, why is the "ifconfig eth0 up" necessary for vconfig? It allows
    "ifconfig eth0 down" _after_ the vlan is created, and vlans can still be
    removed (but not created) at that point.)

    Simon-

    [ Stormix Technologies Inc. ][ NetNation Communications Inc. ]
    [ sim@stormix.com ][ sim@netnation.com ]
    [ Opinions expressed are not necessarily those of my employers. ]
    -
    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:28    [W:0.032 / U:30.648 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site