Lines Matching defs:fte

94 				    struct fs_fte *fte)
103 struct fs_fte *fte)
110 struct fs_fte *fte)
457 struct fs_fte *fte, bool *extended_dest)
466 if (!(fte->action.action & MLX5_FLOW_CONTEXT_ACTION_FWD_DEST))
469 list_for_each_entry(dst, &fte->node.children, node.list) {
496 mlx5_cmd_set_fte_flow_meter(struct fs_fte *fte, void *in_flow_context)
505 fte->action.exe_aso.object_id);
509 fte->action.exe_aso.return_reg_id);
511 fte->action.exe_aso.type);
513 fte->action.exe_aso.flow_meter.init_color);
515 fte->action.exe_aso.flow_meter.meter_idx);
522 struct fs_fte *fte)
536 if (mlx5_set_extended_dest(dev, fte, &extended_dest))
544 inlen = MLX5_ST_SZ_BYTES(set_fte_in) + fte->dests_size * dst_cnt_size;
554 MLX5_SET(set_fte_in, in, flow_index, fte->index);
556 !!(fte->action.flags & FLOW_ACT_IGNORE_FLOW_LEVEL));
566 fte->flow_context.flow_tag);
568 fte->flow_context.flow_source);
570 !!(fte->flow_context.flags & FLOW_CONTEXT_UPLINK_HAIRPIN_EN));
575 action = fte->action.action;
581 if (!extended_dest && fte->action.pkt_reformat) {
582 struct mlx5_pkt_reformat *pkt_reformat = fte->action.pkt_reformat;
594 reformat_id = fte->action.pkt_reformat->id;
600 if (fte->action.modify_hdr) {
601 if (fte->action.modify_hdr->owner == MLX5_FLOW_RESOURCE_OWNER_SW) {
608 fte->action.modify_hdr->id);
612 fte->action.crypto.type);
614 fte->action.crypto.obj_id);
618 MLX5_SET(vlan, vlan, ethtype, fte->action.vlan[0].ethtype);
619 MLX5_SET(vlan, vlan, vid, fte->action.vlan[0].vid);
620 MLX5_SET(vlan, vlan, prio, fte->action.vlan[0].prio);
624 MLX5_SET(vlan, vlan, ethtype, fte->action.vlan[1].ethtype);
625 MLX5_SET(vlan, vlan, vid, fte->action.vlan[1].vid);
626 MLX5_SET(vlan, vlan, prio, fte->action.vlan[1].prio);
630 memcpy(in_match_value, &fte->val, sizeof(fte->val));
633 if (fte->action.action & MLX5_FLOW_CONTEXT_ACTION_FWD_DEST) {
636 list_for_each_entry(dst, &fte->node.children, node.list) {
709 if (fte->action.action & MLX5_FLOW_CONTEXT_ACTION_COUNT) {
715 list_for_each_entry(dst, &fte->node.children, node.list) {
734 if (fte->action.action & MLX5_FLOW_CONTEXT_ACTION_EXECUTE_ASO) {
735 if (fte->action.exe_aso.type == MLX5_EXE_ASO_FLOW_METER) {
736 mlx5_cmd_set_fte_flow_meter(fte, in_flow_context);
752 struct fs_fte *fte)
757 return mlx5_cmd_set_fte(dev, 0, 0, ft, group_id, fte);
764 struct fs_fte *fte)
775 return mlx5_cmd_set_fte(dev, opmod, modify_mask, ft, fg->id, fte);
780 struct fs_fte *fte)
788 MLX5_SET(delete_fte_in, in, flow_index, fte->index);