sst-linux/net/tipc
Allan Stephens c0cb7ef086 [TIPC]: Enhancements to message header writing
This patch makes two enhancements to the routine used to
set bit fields within a TIPC message header:

 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: David S. Miller <davem@davemloft.net>
2008-03-06 15:08:10 -08:00
..
addr.c
addr.h [TIPC]: Kill unused static inline (x5) 2008-02-07 18:17:13 -08:00
bcast.c
bcast.h [TIPC]: Kill unused static inline (x5) 2008-02-07 18:17:13 -08:00
bearer.c
bearer.h
cluster.c tipc: fix integer as NULL pointer sparse warnings in tipc 2008-02-24 18:38:31 -08:00
cluster.h
config.c
config.h
core.c [TIPC]: Eliminate "sparse" symbol warnings 2008-03-06 15:06:06 -08:00
core.h [TIPC]: Eliminate "sparse" symbol warnings 2008-03-06 15:06:06 -08:00
dbg.c
dbg.h
discover.c
discover.h
eth_media.c [NET]: Wrap netdevice hardware header creation. 2007-10-10 16:52:50 -07:00
handler.c
Kconfig
link.c [TIPC]: Minor cleanup of message header code 2008-03-06 15:06:55 -08:00
link.h
Makefile
msg.c [TIPC]: Minor cleanup of message header code 2008-03-06 15:06:55 -08:00
msg.h [TIPC]: Enhancements to message header writing 2008-03-06 15:08:10 -08:00
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 [TIPC]: Minor cleanup of message header code 2008-03-06 15:06:55 -08:00
port.h
ref.c tipc: fix integer as NULL pointer sparse warnings in tipc 2008-02-24 18:38:31 -08:00
ref.h
socket.c [TIPC]: Add argument validation for shutdown() 2008-03-06 15:05:38 -08:00
subscr.c
subscr.h
user_reg.c
user_reg.h
zone.c tipc: fix integer as NULL pointer sparse warnings in tipc 2008-02-24 18:38:31 -08:00
zone.h