• Chas Williams's avatar
    [ATM]: empty tx queue in lec when flush complete · c5b8ed35
    Chas Williams authored
    the lane spec says the following about path switching:
    
    10.1.2.7 Transmitting Held Frames
    
    Once the LE_FLUSH_RESPONSE is received, the LE Client MUST
    transmit any held  data frames on the new data path before
    transmitting any further frames on the new path.
    
    10.1.2.8 Switching Over Paths Without Flush
    
    Regardless of the provisions of the rest of Section 10.1, when
    switching from the old path to a new path, if an LE Client has
    not transmitted a data frame to a particular LAN Destination via
    the old path for a period of time greater than or equal to the
    C22 Path Switching Delay, then it MAY start using the new path
    without employing the Flush protocol.
    
    the lane client in linux-atm does do this but it doesnt send the
    held frames until a frame is transmitted on the vcc after the flush
    has completed.  often this doesnt happen until you get an ip retransmit.
    the following patch sends the held frames after the flush completes
    (or the switching delay expires)
    c5b8ed35
lec.c 79.2 KB