Home
last modified time | relevance | path

Searched hist:"8 f13399d" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/sctp/
H A Dstream.c8f13399d Wed Jul 22 10:52:11 CDT 2020 Xin Long <lucien.xin@gmail.com> 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>
8f13399d Wed Jul 22 10:52:11 CDT 2020 Xin Long <lucien.xin@gmail.com> 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>