tipc: Optimize setting of immutable payload message header fields
authorAllan Stephens <allan.stephens@windriver.com>
Wed, 9 Nov 2011 21:30:55 +0000 (16:30 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 29 Feb 2012 16:45:35 +0000 (11:45 -0500)
commit9bbbc59dbd4e69da078b65a7f708c4250984dd29
tree11d5ba1e7539d866742d26c623fd5d4003e802b3
parente8ec1ae756de320644c69194898c53d247925586
tipc: Optimize setting of immutable payload message header fields

Optimizes routines that send payload messages so that they no longer
update the "originating node" and "originating port" fields of the
outgoing message header template, since these fields are initialized
when the sending port is created and never change thereafter. Also
optimizes the routine which updates the message header template when
a connection to a port is established, for the same reason.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/port.c