summaryrefslogtreecommitdiffstats
path: root/include/linux/tipc_config.h
diff options
context:
space:
mode:
authorPer Liden <per.liden@nospam.ericsson.com>2006-01-13 22:22:22 +0100
committerPer Liden <per.liden@ericsson.com>2006-01-18 00:45:15 +0100
commit16cb4b333c9e7a00ce3b1d74ec0c9b4c2e956910 (patch)
treef7684c0b2c205719c4807f25626af2a08fe6a277 /include/linux/tipc_config.h
parent5f7c3ff6a2e227418d363069ff89cf9d7f01fbc1 (diff)
downloadlinux-16cb4b333c9e7a00ce3b1d74ec0c9b4c2e956910.tar.gz
linux-16cb4b333c9e7a00ce3b1d74ec0c9b4c2e956910.tar.bz2
linux-16cb4b333c9e7a00ce3b1d74ec0c9b4c2e956910.zip
[TIPC] Updated link priority macros
Added macros for min/default/max link priority in tipc_config.h. Also renamed TIPC_NUM_LINK_PRI to TIPC_MEDIA_LINK_PRI since that is a more accurate description of what it is used for. Signed-off-by: Per Liden <per.liden@ericsson.com>
Diffstat (limited to 'include/linux/tipc_config.h')
-rw-r--r--include/linux/tipc_config.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/tipc_config.h b/include/linux/tipc_config.h
index a52c8c64a5a3..33a653913d94 100644
--- a/include/linux/tipc_config.h
+++ b/include/linux/tipc_config.h
@@ -168,10 +168,13 @@
#define TIPC_MAX_LINK_NAME 60 /* format = Z.C.N:interface-Z.C.N:interface */
/*
- * Link priority limits (range from 0 to # priorities - 1)
+ * Link priority limits (min, default, max, media default)
*/
-#define TIPC_NUM_LINK_PRI 32
+#define TIPC_MIN_LINK_PRI 0
+#define TIPC_DEF_LINK_PRI 10
+#define TIPC_MAX_LINK_PRI 31
+#define TIPC_MEDIA_LINK_PRI (TIPC_MAX_LINK_PRI + 1)
/*
* Link tolerance limits (min, default, max), in ms