/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
H A D | mirred.c | 114 esw_attr = attr->esw_attr; in tc_act_can_offload_mirred() 181 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in parse_mirred_encap() local 198 esw_attr->dests[esw_attr->out_count].flags |= MLX5_ESW_DEST_ENCAP; in parse_mirred_encap() 199 esw_attr->out_count++; in parse_mirred_encap() 212 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in parse_mirred() local 273 esw_attr->dests[esw_attr->out_count].vport_valid = true; in parse_mirred() 274 esw_attr->dests[esw_attr->out_count].vport = rpriv->rep->vport; in parse_mirred() 275 esw_attr->dests[esw_attr->out_count].mdev = out_priv->mdev; in parse_mirred() 277 esw_attr->out_count++; in parse_mirred() 288 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in parse_mirred_ovs_master() local [all …]
|
H A D | redirect_ingress.c | 16 struct mlx5_esw_flow_attr *esw_attr; in tc_act_can_offload_redirect_ingress() local 19 esw_attr = attr->esw_attr; in tc_act_can_offload_redirect_ingress() 42 if (esw_attr->out_count) { in tc_act_can_offload_redirect_ingress() 57 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in tc_act_parse_redirect_ingress() local 65 &attr->action, esw_attr->out_count); in tc_act_parse_redirect_ingress() 70 esw_attr->out_count++; in tc_act_parse_redirect_ingress()
|
H A D | vlan.c | 106 err = parse_tc_vlan_action(priv, &vlan_act, attr->esw_attr, &attr->action, extack, NULL); in mlx5e_tc_act_vlan_add_push_action() 135 err = parse_tc_vlan_action(priv, &vlan_act, attr->esw_attr, &attr->action, in mlx5e_tc_act_vlan_add_pop_action() 150 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in tc_act_parse_vlan() local 161 err = parse_tc_vlan_action(priv, act, esw_attr, &attr->action, in tc_act_parse_vlan() 168 esw_attr->split_count = esw_attr->out_count; in tc_act_parse_vlan()
|
H A D | pedit.c | 87 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in tc_act_parse_pedit() local 102 esw_attr->split_count = esw_attr->out_count; in tc_act_parse_pedit()
|
H A D | ct.c | 21 attr->esw_attr->split_count = attr->esw_attr->out_count; in tc_act_parse_ct()
|
H A D | vlan_mangle.c | 69 attr->esw_attr->split_count = attr->esw_attr->out_count; in tc_act_parse_vlan_mangle()
|
H A D | mpls.c | 84 attr->esw_attr->eth.h_proto = act->mpls_pop.proto; in tc_act_parse_mpls_pop()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | tc_tun_encap.c | 77 struct mlx5_esw_flow_attr *esw_attr = flow->attr->esw_attr; in mlx5e_tc_set_attr_rx_tun() local 181 esw_attr = attr->esw_attr; in mlx5e_tc_encap_flows_add() 230 esw_attr = attr->esw_attr; in mlx5e_tc_encap_flows_del() 717 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in mlx5e_set_vf_tunnel() local 1035 esw_attr = attr->esw_attr; in mlx5e_tc_tun_encap_dests_set() 1093 esw_attr = attr->esw_attr; in mlx5e_tc_tun_encap_dests_unset() 1296 esw_attr = attr->esw_attr; in mlx5e_attach_decap_route() 1299 if (!esw_attr->rx_tun_attr) in mlx5e_attach_decap_route() 1359 esw_attr = attr->esw_attr; in mlx5e_attach_encap_route() 1464 esw_attr = attr->esw_attr; in mlx5e_invalidate_encap() [all …]
|
H A D | tc_tun.c | 715 struct mlx5_esw_flow_attr *esw_attr = flow_attr->esw_attr; in mlx5e_tc_tun_route_lookup() local 724 attr.fl.fl4.saddr = esw_attr->rx_tun_attr->dst_ip.v4; in mlx5e_tc_tun_route_lookup() 725 attr.fl.fl4.daddr = esw_attr->rx_tun_attr->src_ip.v4; in mlx5e_tc_tun_route_lookup() 731 attr.fl.fl6.saddr = esw_attr->rx_tun_attr->dst_ip.v6; in mlx5e_tc_tun_route_lookup() 732 attr.fl.fl6.daddr = esw_attr->rx_tun_attr->src_ip.v6; in mlx5e_tc_tun_route_lookup() 748 esw_attr->rx_tun_attr->decap_vport = vport_num; in mlx5e_tc_tun_route_lookup() 757 esw_attr->int_port = int_port; in mlx5e_tc_tun_route_lookup()
|
H A D | tc_ct.c | 837 attr->esw_attr->in_mdev = priv->mdev; in mlx5_tc_ct_entry_add_rule()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | ipsec_fs.c | 126 struct mlx5_esw_flow_attr *esw_attr; in mlx5_esw_ipsec_modify_flow_dests() local 131 esw_attr = attr->esw_attr; in mlx5_esw_ipsec_modify_flow_dests() 132 if (esw_attr->out_count - esw_attr->split_count > 1) in mlx5_esw_ipsec_modify_flow_dests() 135 err = mlx5_eswitch_restore_ipsec_rule(esw, flow->rule[0], esw_attr, in mlx5_esw_ipsec_modify_flow_dests() 136 esw_attr->out_count - 1); in mlx5_esw_ipsec_modify_flow_dests()
|
H A D | indir_table.c | 72 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in mlx5_esw_indir_table_needed() local 81 return esw_attr->in_rep->vport == MLX5_VPORT_UPLINK && in mlx5_esw_indir_table_needed() 90 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in mlx5_esw_indir_table_decap_vport() local 92 return esw_attr->rx_tun_attr ? esw_attr->rx_tun_attr->decap_vport : 0; in mlx5_esw_indir_table_decap_vport() 99 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in mlx5_esw_indir_table_rule_get() local 119 data = mlx5_eswitch_get_vport_metadata_for_set(esw, esw_attr->rx_tun_attr->decap_vport); in mlx5_esw_indir_table_rule_get()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | eswitch_offloads.c | 127 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in mlx5_eswitch_set_rule_source_port() local 139 if (!attr->chain && esw_attr && esw_attr->int_port) in mlx5_eswitch_set_rule_source_port() 283 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in esw_put_dest_tables_loop() local 314 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in esw_setup_chain_src_port_rewrite() local 323 if (esw_attr->out_count - esw_attr->split_count > 1) in esw_setup_chain_src_port_rewrite() 342 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in esw_cleanup_chain_src_port_rewrite() local 350 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in esw_is_indir_table() local 379 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in esw_setup_indir_table() local 412 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in esw_cleanup_indir_table() local 572 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in esw_setup_dests() local [all …]
|
H A D | eswitch_offloads_termtbl.c | 219 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in mlx5_eswitch_termtbl_required() local 225 (!mlx5_eswitch_offload_is_uplink_port(esw, spec) && !esw_attr->int_port)) in mlx5_eswitch_termtbl_required() 235 for (i = esw_attr->split_count; i < esw_attr->out_count; i++) in mlx5_eswitch_termtbl_required() 236 if (!esw_attr->dest_int_port && esw_attr->dests[i].vport_valid && in mlx5_eswitch_termtbl_required() 237 esw_attr->dests[i].vport == MLX5_VPORT_UPLINK) in mlx5_eswitch_termtbl_required()
|
H A D | en_tc.c | 1731 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in has_encap_dests() local 1802 esw_attr = attr->esw_attr; in mlx5e_tc_add_fdb_flow() 3456 struct mlx5_esw_flow_attr *esw_attr = flow->attr->esw_attr; in actions_match_supported_fdb() local 3594 esw_attr = attr->esw_attr; in mlx5e_tc_get_encap_attr() 4113 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in mlx5e_set_fwd_to_int_port_actions() local 4163 esw_attr = attr->esw_attr; in parse_tc_fdb_actions() 4242 struct mlx5_esw_flow_attr *esw_attr = flow->attr->esw_attr; in is_peer_flow_needed() local 4303 esw_attr = attr->esw_attr; in mlx5_free_flow_attr_actions() 4305 if (esw_attr->int_port) in mlx5_free_flow_attr_actions() 4387 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in mlx5e_flow_esw_attr_init() local [all …]
|
H A D | en_tc.h | 103 DECLARE_FLEX_ARRAY(struct mlx5_esw_flow_attr, esw_attr);
|
H A D | eswitch.h | 873 struct mlx5_esw_flow_attr *esw_attr, int attr_idx);
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
H A D | sample.c | 346 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in add_post_rule() local 360 per_vport_tbl_attr.vport = esw_attr->in_rep->vport; in add_post_rule() 410 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in del_post_rule() local 417 tbl_attr.vport = esw_attr->in_rep->vport; in del_post_rule() 473 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in mlx5e_tc_sample_offload() local 560 pre_esw_attr = pre_attr->esw_attr; in mlx5e_tc_sample_offload() 561 pre_esw_attr->in_mdev = esw_attr->in_mdev; in mlx5e_tc_sample_offload() 562 pre_esw_attr->in_rep = esw_attr->in_rep; in mlx5e_tc_sample_offload()
|
H A D | post_act.c | 135 post_attr->esw_attr->split_count = 0; in mlx5e_tc_post_act_add()
|