summaryrefslogtreecommitdiffstats
path: root/lib/842
diff options
context:
space:
mode:
authorJon Paul Maloy <jon.maloy@ericsson.com>2016-08-16 17:53:51 +0200
committerDavid S. Miller <davem@davemloft.net>2016-08-19 06:14:37 +0200
commit5a0950c27236dc6f6a3e9d13259c1a2e89fd1cf7 (patch)
tree5be9dff97c6e466c0956df3a5bc1f60581f2758c /lib/842
parenttipc: make bearer packet filtering generic (diff)
downloadlinux-5a0950c27236dc6f6a3e9d13259c1a2e89fd1cf7.tar.xz
linux-5a0950c27236dc6f6a3e9d13259c1a2e89fd1cf7.zip
tipc: ensure that link congestion and wakeup use same criteria
When a link is attempted woken up after congestion, it uses a different, more generous criteria than when it was originally declared congested. This has the effect that the link, and the sending process, sometimes will be woken up unnecessarily, just to immediately return to congestion when it turns out there is not not enough space in its send queue to host the pending message. This is a waste of CPU cycles. We now change the function link_prepare_wakeup() to use exactly the same criteria as tipc_link_xmit(). However, since we are now excluding the window limit from the wakeup calculation, and the current backlog limit for the lowest level is too small to house even a single maximum-size message, we have to expand this limit. We do this by evaluating an alternative, minimum value during the setting of the importance limits. Acked-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions