diff options
author | Patrick McHardy <kaber@trash.net> | 2015-03-25 09:07:47 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-03-25 12:18:34 -0400 |
commit | 45d84751fb310fe0063cf005ffd6593b4c2321a8 (patch) | |
tree | 7bf10b4c0f44881b4dfb69d66593b1e5aaa8f39a | |
parent | 745f5450d5190e8bd02301b8d42f06999af3f5f8 (diff) |
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>
-rw-r--r-- | net/netfilter/nft_hash.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/netfilter/nft_hash.c b/net/netfilter/nft_hash.c index a517f84e9a21..e35f0b2d8e65 100644 --- a/net/netfilter/nft_hash.c +++ b/net/netfilter/nft_hash.c | |||
@@ -173,10 +173,10 @@ static unsigned int nft_hash_privsize(const struct nlattr * const nla[]) | |||
173 | } | 173 | } |
174 | 174 | ||
175 | static const struct rhashtable_params nft_hash_params = { | 175 | static const struct rhashtable_params nft_hash_params = { |
176 | .head_offset = offsetof(struct nft_hash_elem, node), | 176 | .head_offset = offsetof(struct nft_hash_elem, node), |
177 | .key_offset = offsetof(struct nft_hash_elem, key), | 177 | .key_offset = offsetof(struct nft_hash_elem, key), |
178 | .hashfn = jhash, | 178 | .hashfn = jhash, |
179 | .automatic_shrinking = true, | 179 | .automatic_shrinking = true, |
180 | }; | 180 | }; |
181 | 181 | ||
182 | static int nft_hash_init(const struct nft_set *set, | 182 | static int nft_hash_init(const struct nft_set *set, |
@@ -187,7 +187,7 @@ static int nft_hash_init(const struct nft_set *set, | |||
187 | struct rhashtable_params params = nft_hash_params; | 187 | struct rhashtable_params params = nft_hash_params; |
188 | 188 | ||
189 | params.nelem_hint = desc->size ?: NFT_HASH_ELEMENT_HINT; | 189 | params.nelem_hint = desc->size ?: NFT_HASH_ELEMENT_HINT; |
190 | params.key_len = set->klen; | 190 | params.key_len = set->klen; |
191 | 191 | ||
192 | return rhashtable_init(&priv->ht, ¶ms); | 192 | return rhashtable_init(&priv->ht, ¶ms); |
193 | } | 193 | } |