Lines Matching refs:ri

158 static int vcap_debugfs_show_keysets(struct vcap_rule_internal *ri,  in vcap_debugfs_show_keysets()  argument
161 struct vcap_admin *admin = ri->admin; in vcap_debugfs_show_keysets()
170 if (ri->state == VCAP_RS_DISABLED) in vcap_debugfs_show_keysets()
171 err = vcap_rule_get_keysets(ri, &matches); in vcap_debugfs_show_keysets()
173 err = vcap_find_keystream_keysets(ri->vctrl, admin->vtype, in vcap_debugfs_show_keysets()
186 vcap_keyset_name(ri->vctrl, matches.keysets[idx])); in vcap_debugfs_show_keysets()
191 static int vcap_debugfs_show_rule_keyset(struct vcap_rule_internal *ri, in vcap_debugfs_show_rule_keyset() argument
194 struct vcap_control *vctrl = ri->vctrl; in vcap_debugfs_show_rule_keyset()
195 struct vcap_admin *admin = ri->admin; in vcap_debugfs_show_rule_keyset()
199 vcap_debugfs_show_keysets(ri, out); in vcap_debugfs_show_rule_keyset()
200 out->prf(out->dst, " keyset_sw: %d\n", ri->keyset_sw); in vcap_debugfs_show_rule_keyset()
201 out->prf(out->dst, " keyset_sw_regs: %d\n", ri->keyset_sw_regs); in vcap_debugfs_show_rule_keyset()
203 list_for_each_entry(ckf, &ri->data.keyfields, ctrl.list) { in vcap_debugfs_show_rule_keyset()
204 keyfield = vcap_keyfields(vctrl, admin->vtype, ri->data.keyset); in vcap_debugfs_show_rule_keyset()
212 static int vcap_debugfs_show_rule_actionset(struct vcap_rule_internal *ri, in vcap_debugfs_show_rule_actionset() argument
215 struct vcap_control *vctrl = ri->vctrl; in vcap_debugfs_show_rule_actionset()
216 struct vcap_admin *admin = ri->admin; in vcap_debugfs_show_rule_actionset()
221 vcap_actionset_name(vctrl, ri->data.actionset)); in vcap_debugfs_show_rule_actionset()
222 out->prf(out->dst, " actionset_sw: %d\n", ri->actionset_sw); in vcap_debugfs_show_rule_actionset()
223 out->prf(out->dst, " actionset_sw_regs: %d\n", ri->actionset_sw_regs); in vcap_debugfs_show_rule_actionset()
225 list_for_each_entry(caf, &ri->data.actionfields, ctrl.list) { in vcap_debugfs_show_rule_actionset()
227 ri->data.actionset); in vcap_debugfs_show_rule_actionset()
239 struct vcap_rule_internal *ri) in vcap_show_admin_rule() argument
241 ri->counter.value = admin->cache.counter; in vcap_show_admin_rule()
242 ri->counter.sticky = admin->cache.sticky; in vcap_show_admin_rule()
245 ri->data.id, ri->addr, ri->addr + ri->size - 1, ri->size, in vcap_show_admin_rule()
246 ri->counter_id, ri->counter.value, ri->counter.sticky); in vcap_show_admin_rule()
247 out->prf(out->dst, " chain_id: %d\n", ri->data.vcap_chain_id); in vcap_show_admin_rule()
248 out->prf(out->dst, " user: %d\n", ri->data.user); in vcap_show_admin_rule()
249 out->prf(out->dst, " priority: %d\n", ri->data.priority); in vcap_show_admin_rule()
251 switch (ri->state) { in vcap_show_admin_rule()
262 vcap_debugfs_show_rule_keyset(ri, out); in vcap_show_admin_rule()
263 vcap_debugfs_show_rule_actionset(ri, out); in vcap_show_admin_rule()
322 struct vcap_rule_internal *ri; in vcap_show_admin_raw() local
334 ri = list_first_entry(&admin->rules, struct vcap_rule_internal, list); in vcap_show_admin_raw()
342 ret = vcap_addr_keysets(vctrl, ri->ndev, admin, addr, &kslist); in vcap_show_admin_raw()