]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
tipc: Optimize creation of FIN messages
authorAllan Stephens <allan.stephens@windriver.com>
Tue, 31 May 2011 20:10:08 +0000 (16:10 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 24 Jun 2011 20:18:18 +0000 (16:18 -0400)
commite244a915ff7676b1567ba68102c9b53011f5b766
treec5c2eaede7ac38927a075d7b019e36cc54f65daf
parent741d9eb7b8f352071f56aacb77f5245b4e2a4fbe
tipc: Optimize creation of FIN messages

Speeds up the creation of the FIN message that terminates a TIPC
connection. The typical peer termination message is now created by
duplicating the terminating port's standard payload message header
and adjusting the message size, importance, and error code fields,
rather than building all fields of the message from scratch. A FIN
message that is directed to the port itself is created the same way.
but also requires swapping the origin and destination address fields.

In addition to reducing the work required to create FIN messages,
these changes eliminate several instances of duplicated code,

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