diff options
author | David S. Miller <davem@davemloft.net> | 2016-09-30 02:07:10 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-30 02:07:10 -0400 |
commit | 75b005b949d3dc93b526c3da0a750fd1fc9a703a (patch) | |
tree | 859152992bd65e3da93767dbda6fbdf7e011e69c /include | |
parent | 1b0ff89852d79354e8a091c81a88df21f5aa9f0a (diff) | |
parent | be4947bf46cb0e7a7d089e03c61bab35f1e695ce (diff) | |
download | linux-75b005b949d3dc93b526c3da0a750fd1fc9a703a.tar.bz2 |
Merge branch 'sctp-fixes'
Xin Long says:
====================
sctp: a bunch of fixes for prsctp polices
This patchset is to fix 2 issues for prsctp polices:
1. patch 1 and 2 fix "netperf-Throughput_Mbps -37.2% regression" issue
when overloading the CPU.
2. patch 3 fix "prsctp polices should check both sides' prsctp_capable,
instead of only local side".
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/sctp/structs.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index ce93c4b10d26..ced0df374e60 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h @@ -554,6 +554,9 @@ struct sctp_chunk { atomic_t refcnt; + /* How many times this chunk have been sent, for prsctp RTX policy */ + int sent_count; + /* This is our link to the per-transport transmitted list. */ struct list_head transmitted_list; @@ -603,16 +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; - - /* How many times this chunk have been sent, for prsctp RTX policy */ - int sent_count; - /* Which association does this belong to? */ struct sctp_association *asoc; |