]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: redefine 'started' flag in struct link to bitmap
authorYing Xue <ying.xue@windriver.com>
Thu, 13 Feb 2014 22:29:08 +0000 (17:29 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Feb 2014 22:57:05 +0000 (17:57 -0500)
commit731b2ee576cc7982c40e76498bf3b8c8bf5cbe46
treeb79670bd960e4985a63d5d1e3967caf298658e22
parent2be85bc7ea2e8ea7e2598c0d781d142828ad398f
tipc: redefine 'started' flag in struct link to bitmap

Currently, the 'started' field in struct tipc_link represents only a
binary state, 'started' or 'not started'. We need it to represent
more link execution states in the coming commits in this series.
Hence, we rename the field to 'flags', and define the current
started/non-started state to be represented by the LSB bit of
that field.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/link.c
net/tipc/link.h