vcap_control
struct vcap_control *vcap_ctrl;
static int lan966x_tc_flower_action_check(struct vcap_control *vctrl,
static int lan966x_tc_add_rule_link(struct vcap_control *vctrl,
struct vcap_control *vctrl;
struct vcap_control *vctrl;
lan966x_vcap_admin_alloc(struct lan966x *lan966x, struct vcap_control *ctrl,
struct vcap_control *ctrl;
struct vcap_control *ctrl;
struct vcap_control *vcap_ctrl;
struct vcap_control *vctrl;
struct vcap_control *vctrl,
struct vcap_control *vctrl;
struct vcap_control *vctrl;
struct vcap_control *vctrl;
struct vcap_control *vctrl;
static int sparx5_tc_flower_action_check(struct vcap_control *vctrl,
struct vcap_control *vctrl;
static int sparx5_tc_add_rule_copy(struct vcap_control *vctrl,
static int sparx5_tc_add_remaining_rules(struct vcap_control *vctrl,
static int sparx5_tc_add_rule_link(struct vcap_control *vctrl,
struct vcap_control *vctrl;
sparx5_vcap_admin_alloc(struct sparx5 *sparx5, struct vcap_control *ctrl,
struct vcap_control *ctrl;
struct vcap_control *ctrl = sparx5->vcap_ctrl;
vcap_verify_actionstream_actionset(struct vcap_control *vctrl,
static int vcap_find_actionstream_typegroup_sw(struct vcap_control *vctrl,
vcap_find_actionstream_actionset(struct vcap_control *vctrl,
struct vcap_control *vctrl = ri->vctrl;
struct vcap_control *vctrl = ri->vctrl;
struct vcap_admin *vcap_find_admin(struct vcap_control *vctrl, int cid)
static bool vcap_admin_is_last(struct vcap_control *vctrl,
int vcap_chain_offset(struct vcap_control *vctrl, int from_cid, int to_cid)
bool vcap_is_next_lookup(struct vcap_control *vctrl, int src_cid, int dst_cid)
const char *vcap_keyset_name(struct vcap_control *vctrl,
const char *vcap_keyfield_name(struct vcap_control *vctrl,
const char *vcap_actionset_name(struct vcap_control *vctrl,
const char *vcap_actionfield_name(struct vcap_control *vctrl,
vcap_find_keyset_keyfield(struct vcap_control *vctrl,
vcap_find_actionset_actionfield(struct vcap_control *vctrl,
static bool vcap_verify_keystream_keyset(struct vcap_control *vctrl,
static bool vcap_is_chain_used(struct vcap_control *vctrl,
static int vcap_get_next_chain(struct vcap_control *vctrl,
static bool vcap_path_exist(struct vcap_control *vctrl, struct net_device *ndev,
struct vcap_rule *vcap_alloc_rule(struct vcap_control *vctrl,
struct vcap_rule *vcap_get_rule(struct vcap_control *vctrl, u32 id)
int vcap_del_rule(struct vcap_control *vctrl, struct net_device *ndev, u32 id)
int vcap_del_rules(struct vcap_control *vctrl, struct vcap_admin *admin)
static int vcap_enable_rules(struct vcap_control *vctrl,
static int vcap_disable_rules(struct vcap_control *vctrl,
static int vcap_find_keystream_typegroup_sw(struct vcap_control *vctrl,
static bool vcap_is_enabled(struct vcap_control *vctrl, struct net_device *ndev,
static int vcap_enable(struct vcap_control *vctrl, struct net_device *ndev,
static int vcap_disable(struct vcap_control *vctrl, struct net_device *ndev,
int vcap_enable_lookups(struct vcap_control *vctrl, struct net_device *ndev,
bool vcap_is_last_chain(struct vcap_control *vctrl, int cid, bool ingress)
vcap_find_keystream_keysets(struct vcap_control *vctrl,
struct vcap_control *vctrl = ri->vctrl;
struct vcap_control *vctrl = ri->vctrl;
int vcap_get_rule_count_by_cookie(struct vcap_control *vctrl,
vcap_select_min_rule_keyset(struct vcap_control *vctrl,
int vcap_addr_keysets(struct vcap_control *vctrl,
const struct vcap_field *vcap_keyfields(struct vcap_control *vctrl,
const struct vcap_set *vcap_keyfieldset(struct vcap_control *vctrl,
vcap_keyfield_typegroup(struct vcap_control *vctrl,
int vcap_keyfield_count(struct vcap_control *vctrl,
static void vcap_encode_keyfield_typegroups(struct vcap_control *vctrl,
vcap_actionfields(struct vcap_control *vctrl,
vcap_actionfieldset(struct vcap_control *vctrl,
vcap_actionfield_typegroup(struct vcap_control *vctrl,
int vcap_actionfield_count(struct vcap_control *vctrl,
int vcap_api_check(struct vcap_control *ctrl)
static bool vcap_rule_exists(struct vcap_control *vctrl, u32 id)
vcap_get_locked_rule(struct vcap_control *vctrl, u32 id)
int vcap_lookup_rule_by_cookie(struct vcap_control *vctrl, u64 cookie)
struct vcap_control *vctrl; /* the control instance owning this vcap */
int vcap_enable_lookups(struct vcap_control *vctrl, struct net_device *ndev,
struct vcap_rule *vcap_alloc_rule(struct vcap_control *vctrl,
int vcap_del_rule(struct vcap_control *vctrl, struct net_device *ndev, u32 id);
struct vcap_rule *vcap_get_rule(struct vcap_control *vctrl, u32 id);
int vcap_get_rule_count_by_cookie(struct vcap_control *vctrl,
struct vcap_admin *vcap_find_admin(struct vcap_control *vctrl, int cid);
int vcap_lookup_rule_by_cookie(struct vcap_control *vctrl, u64 cookie);
int vcap_chain_offset(struct vcap_control *vctrl, int from_cid, int to_cid);
bool vcap_is_next_lookup(struct vcap_control *vctrl, int cur_cid, int next_cid);
bool vcap_is_last_chain(struct vcap_control *vctrl, int cid, bool ingress);
const struct vcap_set *vcap_keyfieldset(struct vcap_control *vctrl,
int vcap_del_rules(struct vcap_control *vctrl, struct vcap_admin *admin);
const char *vcap_keyset_name(struct vcap_control *vctrl,
const char *vcap_keyfield_name(struct vcap_control *vctrl,
vcap_select_min_rule_keyset(struct vcap_control *vctrl, enum vcap_type vtype,
vcap_debugfs_show_rule_actionfield(struct vcap_control *vctrl,
struct vcap_control *vctrl;
struct vcap_control *vctrl;
struct vcap_control *vctrl = ri->vctrl;
struct vcap_control *vctrl = ri->vctrl;
static void vcap_debugfs_show_rule_keyfield(struct vcap_control *vctrl,
static void vcap_show_admin_rule(struct vcap_control *vctrl,
static void vcap_show_admin_info(struct vcap_control *vctrl,
static int vcap_show_admin(struct vcap_control *vctrl,
static int vcap_show_admin_raw(struct vcap_control *vctrl,
struct vcap_control *vctrl,
struct vcap_control *vctrl)
struct vcap_control *vctrl,
struct vcap_control *vctrl);
struct vcap_control *vctrl,
struct vcap_control *vctrl)
static struct vcap_control test_vctrl = {
static struct vcap_control test_vctrl = {
const char *vcap_actionset_name(struct vcap_control *vctrl,
const char *vcap_actionfield_name(struct vcap_control *vctrl,
int vcap_addr_keysets(struct vcap_control *vctrl, struct net_device *ndev,
int vcap_find_keystream_keysets(struct vcap_control *vctrl, enum vcap_type vt,
struct vcap_control *vctrl; /* the client control */
int vcap_api_check(struct vcap_control *ctrl);
int vcap_keyfield_count(struct vcap_control *vctrl,
vcap_keyfield_typegroup(struct vcap_control *vctrl,
const struct vcap_field *vcap_keyfields(struct vcap_control *vctrl,
vcap_actionfieldset(struct vcap_control *vctrl,
int vcap_actionfield_count(struct vcap_control *vctrl,
vcap_actionfield_typegroup(struct vcap_control *vctrl, enum vcap_type vt,
vcap_actionfields(struct vcap_control *vctrl,