linux-stable/net/tipc
Allan Stephens 7dd1bf28cc tipc: Optimizations & corrections to message rejection
Optimizes the creation of a returned payload message by duplicating
the original message and then updating the small number of fields
that need to be adjusted, rather than building the new message header
from scratch. In addition, certain operations that are not always
required are relocated so that they are only done if needed.

These optimizations also have the effect of addressing other issues
that were present previously:

1) Fixes a bug that caused the socket send routines to return the
size of the returned message, rather than the size of the sent
message, when a returnable payload message was sent to a non-existent
destination port.

2) The message header of the returned message now matches that of
the original message more closely. The header is now always the same
size as the original header, and some message header fields that
weren't being initialized in the returned message header are now
populated correctly -- namely the "d" and "s" bits, and the upper
bound of a multicast name instance (where present).

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
2011-06-24 16:18:15 -04:00
..
addr.c tipc: Eliminate configuration for maximum number of cluster nodes 2011-03-13 16:35:17 -04:00
addr.h tipc: make zone/cluster mask constants a define 2011-05-10 16:03:54 -04:00
bcast.c tipc: Convert fatal broadcast sanity check to non-fatal check 2011-06-24 16:18:15 -04:00
bcast.h tipc: Clean up tracking of node requesting a broadcast retransmit 2011-02-23 18:05:12 -05:00
bearer.c tipc: Add monitoring of number of nodes discovered by bearer 2011-05-10 16:04:01 -04:00
bearer.h tipc: Remove bearer flag indicating existence of broadcast address 2011-03-13 16:35:19 -04:00
config.c tipc: Correct misnamed references to neighbor discovery domain 2011-03-13 16:35:18 -04:00
config.h tipc: Remove obsolete inclusions of header files 2010-12-02 13:34:02 -08:00
core.c tipc: Drop __TIME__ usage 2011-05-10 10:31:03 -04:00
core.h tipc: Remove unused sanity test macro 2011-06-24 16:18:15 -04:00
discover.c tipc: Revise timings used when sending link request messages 2011-05-10 16:04:02 -04:00
discover.h tipc: Add monitoring of number of nodes discovered by bearer 2011-05-10 16:04:01 -04: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: Eliminate configuration for maximum number of cluster nodes 2011-03-13 16:35:17 -04:00
link.c tipc: Introduce routine to enqueue a chain of messages on link tx queue 2011-05-10 16:03:58 -04:00
link.h tipc: Avoid recomputation of outgoing message length 2011-05-10 16:03:57 -04: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: Avoid recomputation of outgoing message length 2011-05-10 16:03:57 -04:00
msg.h tipc: Avoid recomputation of outgoing message length 2011-05-10 16:03:57 -04:00
name_distr.c Fix common misspellings 2011-03-31 11:26:23 -03: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: delete extra semicolon blocking node deletion 2011-03-14 12:21:12 -04:00
net.h tipc: manually inline net_start/stop, make assoc. vars static 2011-03-13 16:35:17 -04:00
netlink.c genetlink: make netns aware 2009-07-12 14:03:27 -07:00
node.c tipc: Optimizations to link creation code 2011-03-13 16:35:18 -04:00
node.h tipc: Optimizations to link creation code 2011-03-13 16:35:18 -04:00
node_subscr.c tipc: Cosmetic changes to node subscription code 2011-03-13 16:35:16 -04:00
node_subscr.h tipc: Cosmetic changes to node subscription code 2011-03-13 16:35:16 -04:00
port.c tipc: Optimizations & corrections to message rejection 2011-06-24 16:18:15 -04:00
port.h tipc: Avoid recomputation of outgoing message length 2011-05-10 16:03:57 -04: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: Avoid recomputation of outgoing message length 2011-05-10 16:03:57 -04:00
subscr.c tipc: Avoid recomputation of outgoing message length 2011-05-10 16:03:57 -04:00
subscr.h Revert d88dca79d3 2010-10-21 04:11:08 -07:00