Lines Matching defs:config
96 /* decrease the count of entries using/referencing this config. If last
97 * entry(rule) is removed, remove the config from lists, but don't free it
243 const struct clusterip_config *config)
264 switch (config->hash_mode) {
267 config->hash_initval);
271 config->hash_initval);
275 config->hash_initval);
282 pr_info("unknown mode %u\n", config->hash_mode);
288 return reciprocal_scale(hashval, config->num_total_nodes) + 1;
292 clusterip_responsible(const struct clusterip_config *config, u_int32_t hash)
294 return test_bit(hash - 1, &config->local_nodes);
328 hash = clusterip_hashfn(skb, cipinfo->config);
350 if (!clusterip_responsible(cipinfo->config, hash)) {
367 struct clusterip_config *config;
385 config = clusterip_config_find_get(par->net, e->ip.dst.s_addr, 1);
386 if (!config) {
388 pr_info("no config found for %pI4, need 'new'\n",
406 config = clusterip_config_init(cipinfo,
408 if (!config) {
412 dev_mc_add(config->dev, config->clustermac);
415 cipinfo->config = config;
424 /* drop reference count of cluster config when rule is deleted */
429 /* if no more entries are referencing the config, remove it
431 clusterip_config_entry_put(cipinfo->config);
433 clusterip_config_put(cipinfo->config);
448 compat_uptr_t config;