mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
sctp: reduce memory footprint of sctp_chunk structure
sctp_chunks should be put on a diet. This is some of the low hanging fruit that we can strip out. Changes all the __s8/__u8 flags to bitfields. Saves 12 bytes per chunk. Signed-off-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
This commit is contained in:
committed by
Vlad Yasevich
parent
845b8eda4d
commit
c226ef9b83
@@ -699,7 +699,7 @@ static sctp_xmit_t sctp_packet_append_data(struct sctp_packet *packet,
|
||||
* When a Fast Retransmit is being performed the sender SHOULD
|
||||
* ignore the value of cwnd and SHOULD NOT delay retransmission.
|
||||
*/
|
||||
if (chunk->fast_retransmit <= 0)
|
||||
if (chunk->fast_retransmit != SCTP_NEED_FRTX)
|
||||
if (transport->flight_size >= transport->cwnd) {
|
||||
retval = SCTP_XMIT_RWND_FULL;
|
||||
goto finish;
|
||||
|
||||
Reference in New Issue
Block a user