diff options
author | Per Liden <per.liden@nospam.ericsson.com> | 2006-01-13 22:22:22 +0100 |
---|---|---|
committer | Per Liden <per.liden@ericsson.com> | 2006-01-18 00:45:15 +0100 |
commit | 16cb4b333c9e7a00ce3b1d74ec0c9b4c2e956910 (patch) | |
tree | f7684c0b2c205719c4807f25626af2a08fe6a277 /net/tipc/bcast.c | |
parent | 5f7c3ff6a2e227418d363069ff89cf9d7f01fbc1 (diff) | |
download | linux-3.10-16cb4b333c9e7a00ce3b1d74ec0c9b4c2e956910.tar.gz linux-3.10-16cb4b333c9e7a00ce3b1d74ec0c9b4c2e956910.tar.bz2 linux-3.10-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 'net/tipc/bcast.c')
-rw-r--r-- | net/tipc/bcast.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tipc/bcast.c b/net/tipc/bcast.c index 9713d622efb..af9743a52d6 100644 --- a/net/tipc/bcast.c +++ b/net/tipc/bcast.c @@ -82,7 +82,7 @@ struct bcbearer { struct bearer bearer; struct media media; struct bcbearer_pair bpairs[MAX_BEARERS]; - struct bcbearer_pair bpairs_temp[TIPC_NUM_LINK_PRI]; + struct bcbearer_pair bpairs_temp[TIPC_MAX_LINK_PRI + 1]; }; /** @@ -630,7 +630,7 @@ void bcbearer_sort(void) bp_curr = bcbearer->bpairs; memset(bcbearer->bpairs, 0, sizeof(bcbearer->bpairs)); - for (pri = (TIPC_NUM_LINK_PRI - 1); pri >= 0; pri--) { + for (pri = TIPC_MAX_LINK_PRI; pri >= 0; pri--) { if (!bp_temp[pri].primary) continue; |