mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-30 10:49:28 +00:00
netfilter: nft_hash: indent rhashtable parameters
Improve readability by indenting the parameter initialization. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
745f5450d5
commit
45d84751fb
1 changed files with 5 additions and 5 deletions
|
@ -173,10 +173,10 @@ static unsigned int nft_hash_privsize(const struct nlattr * const nla[])
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct rhashtable_params nft_hash_params = {
|
static const struct rhashtable_params nft_hash_params = {
|
||||||
.head_offset = offsetof(struct nft_hash_elem, node),
|
.head_offset = offsetof(struct nft_hash_elem, node),
|
||||||
.key_offset = offsetof(struct nft_hash_elem, key),
|
.key_offset = offsetof(struct nft_hash_elem, key),
|
||||||
.hashfn = jhash,
|
.hashfn = jhash,
|
||||||
.automatic_shrinking = true,
|
.automatic_shrinking = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int nft_hash_init(const struct nft_set *set,
|
static int nft_hash_init(const struct nft_set *set,
|
||||||
|
@ -187,7 +187,7 @@ static int nft_hash_init(const struct nft_set *set,
|
||||||
struct rhashtable_params params = nft_hash_params;
|
struct rhashtable_params params = nft_hash_params;
|
||||||
|
|
||||||
params.nelem_hint = desc->size ?: NFT_HASH_ELEMENT_HINT;
|
params.nelem_hint = desc->size ?: NFT_HASH_ELEMENT_HINT;
|
||||||
params.key_len = set->klen;
|
params.key_len = set->klen;
|
||||||
|
|
||||||
return rhashtable_init(&priv->ht, ¶ms);
|
return rhashtable_init(&priv->ht, ¶ms);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue