summaryrefslogtreecommitdiff
path: root/net/tipc/link.c
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2010-05-11 14:30:11 +0000
committerDavid S. Miller <davem@davemloft.net>2010-05-12 23:02:24 -0700
commit01fee256a675f6492fc6945bbb9b59640d8705d4 (patch)
treeab5ac9e161298795006b85a53eb9354a1605d3a0 /net/tipc/link.c
parent15e979da7c9ddddd55d2eb81e962dbb2aac51ad1 (diff)
downloadlinux-3.10-01fee256a675f6492fc6945bbb9b59640d8705d4.tar.gz
linux-3.10-01fee256a675f6492fc6945bbb9b59640d8705d4.tar.bz2
linux-3.10-01fee256a675f6492fc6945bbb9b59640d8705d4.zip
tipc: Relocate trivial link status functions to header file
Rather than live in link.c where they can only be used in that file alone, these helper routines are better served by being in link.h Relocated are the following: link_working_working link_working_unknown link_reset_unknown link_reset_reset link_blocked link_congested Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/link.c')
-rw-r--r--net/tipc/link.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c
index 441b26a5785..e8320bf78d5 100644
--- a/net/tipc/link.c
+++ b/net/tipc/link.c
@@ -202,36 +202,6 @@ static unsigned int align(unsigned int i)
return (i + 3) & ~3u;
}
-static int link_working_working(struct link *l_ptr)
-{
- return (l_ptr->state == WORKING_WORKING);
-}
-
-static int link_working_unknown(struct link *l_ptr)
-{
- return (l_ptr->state == WORKING_UNKNOWN);
-}
-
-static int link_reset_unknown(struct link *l_ptr)
-{
- return (l_ptr->state == RESET_UNKNOWN);
-}
-
-static int link_reset_reset(struct link *l_ptr)
-{
- return (l_ptr->state == RESET_RESET);
-}
-
-static int link_blocked(struct link *l_ptr)
-{
- return (l_ptr->exp_msg_count || l_ptr->blocked);
-}
-
-static int link_congested(struct link *l_ptr)
-{
- return (l_ptr->out_queue_size >= l_ptr->queue_limit[0]);
-}
-
static void link_init_max_pkt(struct link *l_ptr)
{
u32 max_pkt;