]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: fix incorrect setting window for bcast link
authorHoang Huu Le <hoang.h.le@dektech.com.au>
Fri, 16 Oct 2020 02:31:19 +0000 (09:31 +0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 16 Oct 2020 21:09:12 +0000 (14:09 -0700)
commitd54b8ea00b7d9339a6b33fcb23dc4645b489b831
treeed2bb4b951d8125e23c6845ecc9442bb007b4bd9
parent1b4b2a92a2555ffa973651491164634ad3677497
tipc: fix incorrect setting window for bcast link

In commit 73f0c44afe57
("tipc: introduce variable window congestion control"), we applied
the algorithm to select window size from minimum window to the
configured maximum window for unicast link, and, besides we chose
to keep the window size for broadcast link unchanged and equal (i.e
fix window 50)

However, when setting maximum window variable via command, the window
variable was re-initialized to unexpect value (i.e 32).

We fix this by updating the fix window for broadcast as we stated.

Fixes: 73f0c44afe57 ("tipc: introduce variable window congestion control")
Acked-by: Jon Maloy <jmaloy@redhat.com>
Signed-off-by: Hoang Huu Le <hoang.h.le@dektech.com.au>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/tipc/bcast.c