• David L Stevens's avatar
    sunvnet: only use connected ports when sending · 8266f5fc
    David L Stevens authored
    
    
    The sunvnet driver doesn't check whether or not a port is connected when
    transmitting packets, which results in failures if a port fails to connect
    (e.g., due to a version mismatch). The original code also assumes
    unnecessarily that the first port is up and a switch, even though there is
    a flag for switch ports.
    
    This patch only matches a port if it is connected, and otherwise uses the
    switch_port flag to send the packet to a switch port that is up.
    Signed-off-by: default avatarDavid L Stevens <david.stevens@oracle.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    8266f5fc
sunvnet.c 28.4 KB