]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Hide media-specific addressing details from generic bearer code
authorAllan Stephens <allan.stephens@windriver.com>
Fri, 7 Oct 2011 19:19:11 +0000 (15:19 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 27 Dec 2011 16:33:36 +0000 (11:33 -0500)
commitbc0d7ff7a3e66ec4747a4187caabd92cd4c81fce
tree57616bd9e10a70b9146cb46ccd8905ee2a75475d
parent938d89607b348f420bead22e6fc166fc17ed5d34
tipc: Hide media-specific addressing details from generic bearer code

Reworks TIPC's media address data structure and associated processing
routines to transfer all media-specific details of address conversion
to the associated TIPC media adaptation code. TIPC's generic bearer code
now only needs to know which media type an address is associated with
and whether or not it is a broadcast address, and totally ignores the
"value" field that contains the actual media-specific addressing info.

These changes eliminate the need for a number of endianness conversion
operations and will make it easier for TIPC to support new media types
in the future.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/bearer.c
net/tipc/bearer.h
net/tipc/discover.c
net/tipc/eth_media.c
net/tipc/msg.c
net/tipc/msg.h