summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2020-07-22 23:52:11 +0800
committerDavid S. Miller <davem@davemloft.net>2020-07-22 18:00:12 -0700
commit8f13399db22f909a35735bf8ae2f932e0c8f0e30 (patch)
tree076d3e3508f1f1b7f8fe8f219ff3b3066459e0e9 /scripts
parent2f2a7ffad5c6cbf3d438e813cfdc88230e185ba6 (diff)
sctp: shrink stream outq only when new outcnt < old outcnt
It's not necessary to go list_for_each for outq->out_chunk_list when new outcnt >= old outcnt, as no chunk with higher sid than new (outcnt - 1) exists in the outqueue. While at it, also move the list_for_each code in a new function sctp_stream_shrink_out(), which will be used in the next patch. Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions