[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <462E3CA4.6070603@ericsson.com>
Date: Tue, 24 Apr 2007 13:21:40 -0400
From: Jon Paul Maloy <jon.maloy@...csson.com>
To: davem@...emloft.net, netdev@...r.kernel.org,
Per Liden <per.liden@...csson.com>,
"Stephens, Allan" <allan.stephens@...driver.com>
Subject: [PATCH] [TIPC]: Enhancements to msg_set_bits() routine
This patch makes two enhancements to msg_set_bits():
1) It now ignores any bits of the new field value that are not
covered by the mask being used. (Previously, if the new value
exceeded the size of the mask the extra bits could corrupt
other fields in the message header word being updated.)
2) The code has been optimized to minimize the number of run-time
endianness conversion operations by leveraging the fact that the
mask (and, in some cases, the value as well) is constant and the
necessary conversion can be performed by the compiler.
Apply the attached patch, or pull from:
git://tipc.cslab.ericsson.net/pub/git/tipc.git
(rebased on linux/kernel/git/davem/net-2.6.git)
Summary:
net/tipc/msg.h | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
///Jon
View attachment "0001-TIPC-Enhancements-to-msg_set_bits-routine.patch" of type "text/x-patch" (1894 bytes)
Powered by blists - more mailing lists