• Xin Long's avatar
    sctp: remove prsctp_param from sctp_chunk · 0605483f
    Xin Long authored
    Now sctp uses chunk->prsctp_param to save the prsctp param for all the
    prsctp polices, we didn't need to introduce prsctp_param to sctp_chunk.
    We can just use chunk->sinfo.sinfo_timetolive for RTX and BUF polices,
    and reuse msg->expires_at for TTL policy, as the prsctp polices and old
    expires policy are mutual exclusive.
    
    This patch is to remove prsctp_param from sctp_chunk, and reuse msg's
    expires_at for TTL and chunk's sinfo.sinfo_timetolive for RTX and BUF
    polices.
    
    Note that sctp can't use chunk's sinfo.sinfo_timetolive for TTL policy,
    as it needs a u64 variables to save the expires_at time.
    
    This one also fixes the "netperf-Throughput_Mbps -37.2% regression"
    issue.
    
    Fixes: a6c2f792 ("sctp: implement prsctp TTL policy")
    Signed-off-by: 's avatarXin Long <lucien.xin@gmail.com>
    Signed-off-by: 's avatarDavid S. Miller <davem@davemloft.net>
    0605483f
Name
Last commit
Last update
..
auth.h Loading commit data...
checksum.h Loading commit data...
command.h Loading commit data...
constants.h Loading commit data...
sctp.h Loading commit data...
sm.h Loading commit data...
structs.h Loading commit data...
tsnmap.h Loading commit data...
ulpevent.h Loading commit data...
ulpqueue.h Loading commit data...