diff options
author | Xin Long <lucien.xin@gmail.com> | 2020-07-22 18:52:11 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-31 19:47:15 +0300 |
commit | be714769d3aecc0e4b4fc0f7a3657955242dbc93 (patch) | |
tree | 6e08030a2ecfdd08b7efe0b4c698cd3f5613d7aa /scripts/gen_compile_commands.py | |
parent | 2dadee3de93fa8ff5011d6fdbf9138784a51af23 (diff) | |
download | linux-be714769d3aecc0e4b4fc0f7a3657955242dbc93.tar.xz |
sctp: shrink stream outq only when new outcnt < old outcnt
[ Upstream commit 8f13399db22f909a35735bf8ae2f932e0c8f0e30 ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions