Home
last modified time | relevance | path

Searched refs:vrule (Results 1 – 8 of 8) sorted by relevance

/drivers/net/ethernet/microchip/sparx5/
Dsparx5_tc_flower.c67 err = vcap_rule_add_key_u32(st->vrule, in sparx5_tc_flower_es0_tpid()
72 err = vcap_rule_add_key_u32(st->vrule, in sparx5_tc_flower_es0_tpid()
96 err = vcap_rule_add_key_u32(st->vrule, VCAP_KF_ETYPE, in sparx5_tc_flower_handler_basic_usage()
101 err = vcap_rule_add_key_bit(st->vrule, VCAP_KF_IP4_IS, in sparx5_tc_flower_handler_basic_usage()
106 err = vcap_rule_add_key_bit(st->vrule, VCAP_KF_IP4_IS, in sparx5_tc_flower_handler_basic_usage()
111 err = vcap_rule_add_key_bit(st->vrule, in sparx5_tc_flower_handler_basic_usage()
123 err = vcap_rule_add_key_bit(st->vrule, in sparx5_tc_flower_handler_basic_usage()
129 err = vcap_rule_add_key_bit(st->vrule, in sparx5_tc_flower_handler_basic_usage()
135 err = vcap_rule_add_key_bit(st->vrule, in sparx5_tc_flower_handler_basic_usage()
142 err = vcap_rule_add_key_u32(st->vrule, in sparx5_tc_flower_handler_basic_usage()
[all …]
/drivers/net/ethernet/microchip/lan966x/
Dlan966x_tc_flower.c54 err = vcap_rule_add_key_bit(st->vrule, in lan966x_tc_flower_handler_control_usage()
58 err = vcap_rule_add_key_bit(st->vrule, in lan966x_tc_flower_handler_control_usage()
67 err = vcap_rule_add_key_bit(st->vrule, in lan966x_tc_flower_handler_control_usage()
71 err = vcap_rule_add_key_bit(st->vrule, in lan966x_tc_flower_handler_control_usage()
97 err = vcap_rule_add_key_u32(st->vrule, VCAP_KF_ETYPE, in lan966x_tc_flower_handler_basic_usage()
102 err = vcap_rule_add_key_bit(st->vrule, VCAP_KF_IP4_IS, in lan966x_tc_flower_handler_basic_usage()
111 err = vcap_rule_add_key_bit(st->vrule, in lan966x_tc_flower_handler_basic_usage()
117 err = vcap_rule_add_key_bit(st->vrule, in lan966x_tc_flower_handler_basic_usage()
123 err = vcap_rule_add_key_bit(st->vrule, in lan966x_tc_flower_handler_basic_usage()
129 err = vcap_rule_add_key_u32(st->vrule, VCAP_KF_ETYPE, in lan966x_tc_flower_handler_basic_usage()
[all …]
Dlan966x_ptp.c52 int (*add_ptp_key)(struct vcap_rule *vrule, in lan966x_ptp_add_trap() argument
58 struct vcap_rule *vrule; in lan966x_ptp_add_trap() local
61 vrule = vcap_get_rule(lan966x->vcap_ctrl, rule_id); in lan966x_ptp_add_trap()
62 if (!IS_ERR(vrule)) { in lan966x_ptp_add_trap()
66 vcap_rule_get_key_u32(vrule, VCAP_KF_IF_IGR_PORT_MASK, in lan966x_ptp_add_trap()
69 vcap_rule_mod_key_u32(vrule, VCAP_KF_IF_IGR_PORT_MASK, in lan966x_ptp_add_trap()
72 err = vcap_mod_rule(vrule); in lan966x_ptp_add_trap()
76 vrule = vcap_alloc_rule(lan966x->vcap_ctrl, port->dev, in lan966x_ptp_add_trap()
79 if (IS_ERR(vrule)) in lan966x_ptp_add_trap()
80 return PTR_ERR(vrule); in lan966x_ptp_add_trap()
[all …]
/drivers/net/ethernet/microchip/vcap/
Dvcap_tc.c40 err = vcap_rule_add_key_u48(st->vrule, smac_key, &smac); in vcap_tc_flower_handler_ethaddr_usage()
48 err = vcap_rule_add_key_u48(st->vrule, dmac_key, &dmac); in vcap_tc_flower_handler_ethaddr_usage()
72 err = vcap_rule_add_key_u32(st->vrule, in vcap_tc_flower_handler_ipv4_usage()
80 err = vcap_rule_add_key_u32(st->vrule, in vcap_tc_flower_handler_ipv4_usage()
113 err = vcap_rule_add_key_u128(st->vrule, in vcap_tc_flower_handler_ipv6_usage()
121 err = vcap_rule_add_key_u128(st->vrule, in vcap_tc_flower_handler_ipv6_usage()
146 err = vcap_rule_add_key_u32(st->vrule, VCAP_KF_L4_SPORT, value, in vcap_tc_flower_handler_portnum_usage()
155 err = vcap_rule_add_key_u32(st->vrule, VCAP_KF_L4_DPORT, value, in vcap_tc_flower_handler_portnum_usage()
189 err = vcap_rule_add_key_u32(st->vrule, vid_key, in vcap_tc_flower_handler_cvlan_usage()
197 err = vcap_rule_add_key_u32(st->vrule, pcp_key, in vcap_tc_flower_handler_cvlan_usage()
[all …]
Dvcap_api_debugfs.c297 struct vcap_rule *vrule; in vcap_show_admin() local
302 vrule = vcap_decode_rule(elem); in vcap_show_admin()
303 if (IS_ERR_OR_NULL(vrule)) { in vcap_show_admin()
304 ret = PTR_ERR(vrule); in vcap_show_admin()
309 vcap_show_admin_rule(vctrl, admin, out, to_intrule(vrule)); in vcap_show_admin()
310 vcap_free_rule(vrule); in vcap_show_admin()
Dvcap_tc.h12 struct vcap_rule *vrule; member
Dvcap_api_client.h240 void vcap_set_tc_exterr(struct flow_cls_offload *fco, struct vcap_rule *vrule);
Dvcap_api.c2935 void vcap_set_tc_exterr(struct flow_cls_offload *fco, struct vcap_rule *vrule) in vcap_set_tc_exterr() argument
2937 switch (vrule->exterr) { in vcap_set_tc_exterr()