A method and system for transmitting frames using a fiber channel switch
element is provided. The switch element includes a port having a receive
segment and a transmit segment, wherein the fiber channel switch element
determines if a port link has been reset; determines if a flush state has
been enabled for the port; and removes frames from a buffer, if the flush
state has been enabled for the port. For a flush state operation, frames
are removed from a receive buffer of the fiber channel port as if it is a
typical fiber channel frame transfer. The removed frames are sent to a
processor for analysis. The method also includes, setting a control bit
for activating frame removal from the transmit buffer; and diverting
frames that are waiting in the transmit buffer and have not been able to
move from the transmit buffer.