diff options
author | Per Liden <per.liden@nospam.ericsson.com> | 2006-01-13 16:22:22 -0500 |
---|---|---|
committer | Per Liden <per.liden@ericsson.com> | 2006-01-17 18:45:15 -0500 |
commit | 16cb4b333c9e7a00ce3b1d74ec0c9b4c2e956910 (patch) | |
tree | f7684c0b2c205719c4807f25626af2a08fe6a277 /net/tipc/link.c | |
parent | 5f7c3ff6a2e227418d363069ff89cf9d7f01fbc1 (diff) |
[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 'net/tipc/link.c')
-rw-r--r-- | net/tipc/link.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c index 7265f4be4766..d1e1ae66464a 100644 --- a/net/tipc/link.c +++ b/net/tipc/link.c | |||
@@ -2812,7 +2812,8 @@ struct sk_buff *link_cmd_config(const void *req_tlv_area, int req_tlv_space, | |||
2812 | } | 2812 | } |
2813 | break; | 2813 | break; |
2814 | case TIPC_CMD_SET_LINK_PRI: | 2814 | case TIPC_CMD_SET_LINK_PRI: |
2815 | if (new_value < TIPC_NUM_LINK_PRI) { | 2815 | if ((new_value >= TIPC_MIN_LINK_PRI) && |
2816 | (new_value <= TIPC_MAX_LINK_PRI)) { | ||
2816 | l_ptr->priority = new_value; | 2817 | l_ptr->priority = new_value; |
2817 | link_send_proto_msg(l_ptr, STATE_MSG, | 2818 | link_send_proto_msg(l_ptr, STATE_MSG, |
2818 | 0, 0, 0, new_value, 0); | 2819 | 0, 0, 0, new_value, 0); |