diff options
author | Jon Paul Maloy <jon.maloy@ericsson.com> | 2015-03-25 12:07:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-25 14:05:56 -0400 |
commit | 3127a0200d4a46cf279bb388cc0f71827cd60699 (patch) | |
tree | c0bf142814ecd5cea45db33cd8706c118ea6e45d /net/tipc/link.h | |
parent | 1f66d161ab3d8b518903fa6c3f9c1f48d6919e74 (diff) | |
download | op-kernel-dev-3127a0200d4a46cf279bb388cc0f71827cd60699.zip op-kernel-dev-3127a0200d4a46cf279bb388cc0f71827cd60699.tar.gz |
tipc: clean up handling of link congestion
After the recent changes in message importance handling it becomes
possible to simplify handling of messages and sockets when we
encounter link congestion.
We merge the function tipc_link_cong() into link_schedule_user(),
and simplify the code of the latter. The code should now be
easier to follow, especially regarding return codes and handling
of the message that caused the situation.
In case the scheduling function is unable to pre-allocate a wakeup
message buffer, it now returns -ENOBUFS, which is a more correct
code than the previously used -EHOSTUNREACH.
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/link.h')
0 files changed, 0 insertions, 0 deletions