[SCTP]: Fix SACK sequence during shutdown

Currently, when association enters SHUTDOWN state,the
implementation will SACK any DATA first and then transmit
the SHUTDOWN chunk. This is against the order required by
2960bis spec. SHUTDOWN must always be first, followed by
SACK. This change forces this order and also enables bundling.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Vlad Yasevich and committed by David S. Miller 732ba35e 610ab73a

+1 -1
+1 -1
net/sctp/sm_sideeffect.c
··· 217 218 asoc->peer.sack_needed = 0; 219 220 - error = sctp_outq_tail(&asoc->outqueue, sack); 221 222 /* Stop the SACK timer. */ 223 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP,
··· 217 218 asoc->peer.sack_needed = 0; 219 220 + sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(sack)); 221 222 /* Stop the SACK timer. */ 223 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP,