diff options
author | Erik Hugne <erik.hugne@ericsson.com> | 2014-02-19 08:37:58 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-19 16:40:57 -0500 |
commit | 63fa01c147b98eaf5e5e4620c3c7bea8e9ddbbc1 (patch) | |
tree | 1ccb3537b09f42c0fffe9542ffb693c7bd1f75e8 /arch/tile | |
parent | 5f4d4e3f1cfe97b1d7d696e2608c41c2ad123cfc (diff) |
tipc: failed transmissions should return error
When a message could not be sent out because the destination node
or link could not be found, the full message size is returned from
sendmsg() as if it had been sent successfully. An application will
then get a false indication that it's making forward progress. This
problem has existed since the initial commit in 2.6.16.
We change this to return -ENETUNREACH if the message cannot be
delivered due to the destination node/link being unavailable. We
also get rid of the redundant tipc_reject_msg call since freeing
the buffer and doing a tipc_port_iovec_reject accomplishes exactly
the same thing.
Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/tile')
0 files changed, 0 insertions, 0 deletions