]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: remove the unnecessary sinfo_stream check in sctp_prsctp_prune_unsent
authorXin Long <lucien.xin@gmail.com>
Fri, 4 Nov 2022 21:45:15 +0000 (17:45 -0400)
committerJakub Kicinski <kuba@kernel.org>
Tue, 8 Nov 2022 03:59:01 +0000 (19:59 -0800)
commit019611f2e4dba61794d96a56bd6c4978df10ada2
tree5e686426c33b2556cf2db38e3512146710e6f385
parentd0bc66e57d0bffa04ed6f9248527141cda3f6760
sctp: remove the unnecessary sinfo_stream check in sctp_prsctp_prune_unsent

Since commit 4ec45eebba0b ("sctp: introduce stream scheduler foundations"),
sctp_stream_outq_migrate() has been called in sctp_stream_init/update to
removes those chunks to streams higher than the new max. There is no longer
need to do such check in sctp_prsctp_prune_unsent().

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sctp/outqueue.c