Lines Matching refs:ht_key
54 struct prestera_acl_ruleset_ht_key ht_key; member
83 .key_offset = offsetof(struct prestera_acl_ruleset, ht_key),
153 ruleset->ht_key.block = block; in prestera_acl_ruleset_create()
154 ruleset->ht_key.chain_index = chain_index; in prestera_acl_ruleset_create()
212 ruleset->ht_key.chain_index, in prestera_acl_ruleset_offload()
218 if (ruleset->ht_key.chain_index) { in prestera_acl_ruleset_offload()
250 if (ruleset->ht_key.chain_index) { in prestera_acl_ruleset_destroy()
273 struct prestera_acl_ruleset_ht_key ht_key; in __prestera_acl_ruleset_lookup() local
275 memset(&ht_key, 0, sizeof(ht_key)); in __prestera_acl_ruleset_lookup()
276 ht_key.block = block; in __prestera_acl_ruleset_lookup()
277 ht_key.chain_index = chain_index; in __prestera_acl_ruleset_lookup()
278 return rhashtable_lookup_fast(&acl->ruleset_ht, &ht_key, in __prestera_acl_ruleset_lookup()
391 if (ruleset->ht_key.chain_index != rule->chain_index) in prestera_acl_ruleset_prio_refresh()
482 struct prestera_flow_block *block = ruleset->ht_key.block; in prestera_acl_rule_add()
508 if (!ruleset->ht_key.chain_index && !ruleset->rule_count) { in prestera_acl_rule_add()
533 struct prestera_flow_block *block = ruleset->ht_key.block; in prestera_acl_rule_del()
544 if (!ruleset->ht_key.chain_index && !ruleset->rule_count) in prestera_acl_rule_del()