diff options
author | Xin Long <lucien.xin@gmail.com> | 2016-09-29 02:37:27 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-30 02:07:05 -0400 |
commit | 0605483f6ace1f6b63e397c819a115ddcd13af0d (patch) | |
tree | e71a84a43cb26e43cf85d066ff98e87a5245e0d1 /include/net/sctp | |
parent | 73dca124cdbad2d67d47d6196c08325f18447d07 (diff) | |
download | op-kernel-dev-0605483f6ace1f6b63e397c819a115ddcd13af0d.zip op-kernel-dev-0605483f6ace1f6b63e397c819a115ddcd13af0d.tar.gz |
sctp: remove prsctp_param from sctp_chunk
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: a6c2f792873a ("sctp: implement prsctp TTL policy")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sctp')
-rw-r--r-- | include/net/sctp/structs.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index 4f097f5..ced0df3 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h @@ -606,13 +606,6 @@ struct sctp_chunk { /* This needs to be recoverable for SCTP_SEND_FAILED events. */ struct sctp_sndrcvinfo sinfo; - /* We use this field to record param for prsctp policies, - * for TTL policy, it is the time_to_drop of this chunk, - * for RTX policy, it is the max_sent_count of this chunk, - * for PRIO policy, it is the priority of this chunk. - */ - unsigned long prsctp_param; - /* Which association does this belong to? */ struct sctp_association *asoc; |