net/smc: use DECLARE_BITMAP for rtokens_used_mask
Link group field tokens_used_mask is a bitmap. Use macro DECLARE_BITMAP for its definition. Signed-off-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
00e5fb263f
commit
144ce4b9b5
@@ -192,8 +192,7 @@ struct smc_link_group {
|
|||||||
struct smc_rtoken rtokens[SMC_RMBS_PER_LGR_MAX]
|
struct smc_rtoken rtokens[SMC_RMBS_PER_LGR_MAX]
|
||||||
[SMC_LINKS_PER_LGR_MAX];
|
[SMC_LINKS_PER_LGR_MAX];
|
||||||
/* remote addr/key pairs */
|
/* remote addr/key pairs */
|
||||||
unsigned long rtokens_used_mask[BITS_TO_LONGS
|
DECLARE_BITMAP(rtokens_used_mask, SMC_RMBS_PER_LGR_MAX);
|
||||||
(SMC_RMBS_PER_LGR_MAX)];
|
|
||||||
/* used rtoken elements */
|
/* used rtoken elements */
|
||||||
};
|
};
|
||||||
struct { /* SMC-D */
|
struct { /* SMC-D */
|
||||||
|
|||||||
Reference in New Issue
Block a user