Skip to content

Commit

Permalink
netfilter: nft_hash: indent rhashtable parameters
Browse files Browse the repository at this point in the history
Improve readability by indenting the parameter initialization.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
Patrick McHardy authored and Pablo Neira Ayuso committed Mar 25, 2015
1 parent 745f545 commit 45d8475
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions net/netfilter/nft_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ static unsigned int nft_hash_privsize(const struct nlattr * const nla[])
}

static const struct rhashtable_params nft_hash_params = {
.head_offset = offsetof(struct nft_hash_elem, node),
.key_offset = offsetof(struct nft_hash_elem, key),
.hashfn = jhash,
.automatic_shrinking = true,
.head_offset = offsetof(struct nft_hash_elem, node),
.key_offset = offsetof(struct nft_hash_elem, key),
.hashfn = jhash,
.automatic_shrinking = true,
};

static int nft_hash_init(const struct nft_set *set,
Expand All @@ -187,7 +187,7 @@ static int nft_hash_init(const struct nft_set *set,
struct rhashtable_params params = nft_hash_params;

params.nelem_hint = desc->size ?: NFT_HASH_ELEMENT_HINT;
params.key_len = set->klen;
params.key_len = set->klen;

return rhashtable_init(&priv->ht, &params);
}
Expand Down

0 comments on commit 45d8475

Please sign in to comment.