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)
commitec78e31852c9bb7d96b6557468fecb6f6f3b28f3
treeed2bb4b951d8125e23c6845ecc9442bb007b4bd9
parent75cee397ae6f1020fbb75db90aa22a51bc3318ac
tipc: fix incorrect setting window for bcast link

In commit 16ad3f4022bb
("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: 16ad3f4022bb ("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