android_kernel_samsung_msm8226/net/tipc
Allan Stephens cb7ce91448 tipc: Fix port counter handling to correct congestion control
Modifies TIPC's congestion control between a connected port and its
peer so that it works as documented. The following changes have been
made:

1) The counter of the number of messages sent by a port now starts
   at zero, rather than one. This prevents the port from reporting port
   congestion one message earlier than it was supposed to.

2) The counter of the number of messages sent by a port is now
   incremented only if a non-empty message is sent successfully.
   This prevents the port from becoming permanently congested if
   too many send attempts are unsuccessful because of congestion
   (or other reasons). It also removes the risk that empty hand-
   shaking messages used during connection setup might cause the
   port to report congestion earlier than it was supposed to.

3) The counter of the number of unacknowledged messages received by
   a port controlled by an internal TIPC service is now incremented
   only if the message is non-empty, in order to be consistent with
   the aforementioned changes.

Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
2011-02-23 18:05:18 -05:00
..
addr.c tipc: remove redundant #includes 2011-01-01 13:57:54 -08:00
addr.h tipc: Remove prototype code for supporting inter-cluster routing 2011-01-01 13:57:48 -08:00
bcast.c tipc: Improve accuracy of link transmit queue maximum size statistic 2011-02-23 18:05:15 -05:00
bcast.h tipc: Clean up tracking of node requesting a broadcast retransmit 2011-02-23 18:05:12 -05:00
bearer.c tipc: Combine bearer structure with tipc_bearer structure 2011-02-23 18:05:05 -05:00
bearer.h tipc: Combine bearer structure with tipc_bearer structure 2011-02-23 18:05:05 -05:00
config.c tipc: cleanup various cosmetic whitespace issues 2011-01-01 13:57:56 -08:00
config.h tipc: Remove obsolete inclusions of header files 2010-12-02 13:34:02 -08:00
core.c tipc: Remove unused global variable tipc_user_count 2011-02-23 18:05:06 -05:00
core.h tipc: Remove unused global variable tipc_user_count 2011-02-23 18:05:06 -05:00
discover.c tipc: Combine bearer structure with tipc_bearer structure 2011-02-23 18:05:05 -05:00
discover.h tipc: Combine bearer structure with tipc_bearer structure 2011-02-23 18:05:05 -05:00
eth_media.c tipc: remove zeroing assignments to static global variables 2011-01-01 13:57:57 -08:00
handler.c tipc: remove zeroing assignments to static global variables 2011-01-01 13:57:57 -08:00
Kconfig tipc: cleanup various cosmetic whitespace issues 2011-01-01 13:57:56 -08:00
link.c tipc: Set unused probe field of link protocol messages to defined value 2011-02-23 18:05:16 -05:00
link.h tipc: Improve accuracy of link transmit queue maximum size statistic 2011-02-23 18:05:15 -05:00
log.c tipc: Finish streamlining of debugging code 2011-01-01 13:57:54 -08:00
log.h tipc: update log.h re-include protection to reflect new name 2011-01-01 14:56:18 -08:00
Makefile tipc: rename dbg.[ch] to log.[ch] 2011-01-01 13:57:51 -08:00
msg.c tipc: remove extraneous braces from single statements 2011-01-01 13:57:57 -08:00
msg.h tipc: cleanup various cosmetic whitespace issues 2011-01-01 13:57:56 -08:00
name_distr.c tipc: remove zeroing assignments to static global variables 2011-01-01 13:57:57 -08:00
name_distr.h
name_table.c tipc: remove extraneous braces from single statements 2011-01-01 13:57:57 -08:00
name_table.h tipc: cleanup various cosmetic whitespace issues 2011-01-01 13:57:56 -08:00
net.c tipc: remove redundant #includes 2011-01-01 13:57:54 -08:00
net.h tipc: Remove prototype code for supporting multiple clusters 2011-01-01 13:57:49 -08:00
netlink.c genetlink: make netns aware 2009-07-12 14:03:27 -07:00
node.c tipc: Combine bearer structure with tipc_bearer structure 2011-02-23 18:05:05 -05:00
node.h tipc: Remove prototype code for supporting multiple clusters 2011-01-01 13:57:49 -08:00
node_subscr.c tipc: Remove obsolete inclusions of header files 2010-12-02 13:34:02 -08:00
node_subscr.h tipc: Don't use structure names which easily globally conflict. 2008-09-02 23:38:32 -07:00
port.c tipc: Fix port counter handling to correct congestion control 2011-02-23 18:05:18 -05:00
port.h tipc: Fix port counter handling to correct congestion control 2011-02-23 18:05:18 -05:00
ref.c tipc: remove zeroing assignments to static global variables 2011-01-01 13:57:57 -08:00
ref.h tipc: cleanup function namespace 2010-10-16 11:13:24 -07:00
socket.c tipc: Prevent invalid memory access when sending to configuration service 2011-02-23 18:05:07 -05:00
subscr.c tipc: Minor optimization to topology service connection establishment 2011-02-23 18:05:17 -05:00
subscr.h Revert d88dca79d3 2010-10-21 04:11:08 -07:00