caif: Use RCU and lists in cfcnfg.c for managing caif link layers
authorsjur.brandeland@stericsson.com <sjur.brandeland@stericsson.com>
Fri, 13 May 2011 02:44:01 +0000 (02:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 May 2011 21:45:54 +0000 (17:45 -0400)
commitf36214408470ecf6a052e76b72d05b2328b60fcf
treeadc3df40fdf0ff782392a881c2d80ba16d237c6b
parentbd30ce4bc0b7dc859c1d1cba7ad87e08642418b0
caif: Use RCU and lists in cfcnfg.c for managing caif link layers

RCU lists are used for handling the link layers instead of array.
When generating CAIF phy-id, ifindex is used as base. Legal range is 1-6.
Introduced set_phy_state() for managing CAIF Link layer state.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/cfcnfg.c