tmp_suning_uos_patched/net/tipc
Allan Stephens 1f9eda7e2b [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.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Jon Paul Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-04-25 22:29:49 -07:00
..
addr.c
addr.h
bcast.c
bcast.h
bearer.c
bearer.h
cluster.c
cluster.h
config.c
config.h
core.c
core.h
dbg.c
dbg.h
discover.c
discover.h
eth_media.c
handler.c
Kconfig
link.c
link.h
Makefile
msg.c
msg.h
name_distr.c
name_distr.h
name_table.c
name_table.h
net.c
net.h
netlink.c
node_subscr.c
node_subscr.h
node.c
node.h
port.c
port.h
ref.c
ref.h
socket.c
subscr.c
subscr.h
user_reg.c
user_reg.h
zone.c
zone.h