linux/include/net/sctp
Vlad Yasevich 619a60ee04 sctp: Remove outqueue empty state
The SCTP outqueue structure maintains a data chunks
that are pending transmission, the list of chunks that
are pending a retransmission and a length of data in
flight.  It also tries to keep the emtpy state so that
it can performe shutdown sequence or notify user.

The problem is that the empy state is inconsistently
tracked.  It is possible to completely drain the queue
without sending anything when using PR-SCTP.  In this
case, the empty state will not be correctly state as
report by Jamal Hadi Salim <jhs@mojatatu.com>.  This
can cause an association to be perminantly stuck in the
SHUTDOWN_PENDING state.

Additionally, SCTP is incredibly inefficient when setting
the empty state.  Even though all the data is availaible
in the outqueue structure, we ignore it and walk a list
of trasnports.

In the end, we can completely remove the extra empty
state and figure out if the queue is empty by looking
at 3 things:  length of pending data, length of in-flight
data, and exisiting of retransmit data.  All of these
are already in the strucutre.

Reported-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Vlad Yasevich <vyasevich@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Tested-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-01-02 17:22:48 -05:00
..
auth.h net: sctp: trivial: update bug report in header comment 2013-08-09 11:33:02 -07:00
checksum.h net: sctp: fix and consolidate SCTP checksumming code 2013-11-03 23:04:57 -05:00
command.h net: sctp: trivial: update bug report in header comment 2013-08-09 11:33:02 -07:00
constants.h net: sctp: trivial: update bug report in header comment 2013-08-09 11:33:02 -07:00
sctp.h sctp: Remove extern from function prototypes 2013-09-23 16:29:42 -04:00
sm.h net: sctp: trivial: update bug report in header comment 2013-08-09 11:33:02 -07:00
structs.h sctp: Remove outqueue empty state 2014-01-02 17:22:48 -05:00
tsnmap.h net: sctp: trivial: update bug report in header comment 2013-08-09 11:33:02 -07:00
ulpevent.h net: sctp: trivial: update bug report in header comment 2013-08-09 11:33:02 -07:00
ulpqueue.h net: sctp: trivial: update bug report in header comment 2013-08-09 11:33:02 -07:00