/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
D | ingress_lgcy.c | 25 u32 *flow_group_in; in esw_acl_ingress_lgcy_groups_create() local 28 flow_group_in = kvzalloc(inlen, GFP_KERNEL); in esw_acl_ingress_lgcy_groups_create() 29 if (!flow_group_in) in esw_acl_ingress_lgcy_groups_create() 32 match_criteria = MLX5_ADDR_OF(create_flow_group_in, flow_group_in, match_criteria); in esw_acl_ingress_lgcy_groups_create() 34 MLX5_SET(create_flow_group_in, flow_group_in, match_criteria_enable, in esw_acl_ingress_lgcy_groups_create() 39 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, 0); in esw_acl_ingress_lgcy_groups_create() 40 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, 0); in esw_acl_ingress_lgcy_groups_create() 42 g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in); in esw_acl_ingress_lgcy_groups_create() 51 memset(flow_group_in, 0, inlen); in esw_acl_ingress_lgcy_groups_create() 52 MLX5_SET(create_flow_group_in, flow_group_in, match_criteria_enable, in esw_acl_ingress_lgcy_groups_create() [all …]
|
D | ingress_ofld.c | 213 u32 *flow_group_in; in esw_acl_ingress_ofld_groups_create() local 217 flow_group_in = kvzalloc(inlen, GFP_KERNEL); in esw_acl_ingress_ofld_groups_create() 218 if (!flow_group_in) in esw_acl_ingress_ofld_groups_create() 225 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, flow_index); in esw_acl_ingress_ofld_groups_create() 226 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, flow_index); in esw_acl_ingress_ofld_groups_create() 228 g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in); in esw_acl_ingress_ofld_groups_create() 243 memset(flow_group_in, 0, inlen); in esw_acl_ingress_ofld_groups_create() 245 flow_group_in, match_criteria); in esw_acl_ingress_ofld_groups_create() 246 MLX5_SET(create_flow_group_in, flow_group_in, in esw_acl_ingress_ofld_groups_create() 249 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, flow_index); in esw_acl_ingress_ofld_groups_create() [all …]
|
D | helper.c | 100 u32 *flow_group_in; in esw_acl_egress_vlan_grp_create() local 103 flow_group_in = kvzalloc(inlen, GFP_KERNEL); in esw_acl_egress_vlan_grp_create() 104 if (!flow_group_in) in esw_acl_egress_vlan_grp_create() 107 MLX5_SET(create_flow_group_in, flow_group_in, in esw_acl_egress_vlan_grp_create() 110 flow_group_in, match_criteria); in esw_acl_egress_vlan_grp_create() 113 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, 0); in esw_acl_egress_vlan_grp_create() 114 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, 0); in esw_acl_egress_vlan_grp_create() 116 vlan_grp = mlx5_create_flow_group(vport->egress.acl, flow_group_in); in esw_acl_egress_vlan_grp_create() 127 kvfree(flow_group_in); in esw_acl_egress_vlan_grp_create()
|
D | egress_lgcy.c | 24 u32 *flow_group_in; in esw_acl_egress_lgcy_groups_create() local 31 flow_group_in = kvzalloc(inlen, GFP_KERNEL); in esw_acl_egress_lgcy_groups_create() 32 if (!flow_group_in) { in esw_acl_egress_lgcy_groups_create() 37 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, 1); in esw_acl_egress_lgcy_groups_create() 38 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, 1); in esw_acl_egress_lgcy_groups_create() 39 drop_grp = mlx5_create_flow_group(vport->egress.acl, flow_group_in); in esw_acl_egress_lgcy_groups_create() 48 kvfree(flow_group_in); in esw_acl_egress_lgcy_groups_create() 52 kvfree(flow_group_in); in esw_acl_egress_lgcy_groups_create()
|
D | egress_ofld.c | 121 u32 *flow_group_in; in esw_acl_egress_ofld_groups_create() local 136 flow_group_in = kvzalloc(inlen, GFP_KERNEL); in esw_acl_egress_ofld_groups_create() 137 if (!flow_group_in) { in esw_acl_egress_ofld_groups_create() 145 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, flow_index); in esw_acl_egress_ofld_groups_create() 146 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, flow_index); in esw_acl_egress_ofld_groups_create() 147 fwd_grp = mlx5_create_flow_group(vport->egress.acl, flow_group_in); in esw_acl_egress_ofld_groups_create() 153 kvfree(flow_group_in); in esw_acl_egress_ofld_groups_create() 157 kvfree(flow_group_in); in esw_acl_egress_ofld_groups_create()
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
D | post_meter.c | 86 u32 *flow_group_in; in mlx5e_post_meter_rate_fg_create() local 89 flow_group_in = kvzalloc(inlen, GFP_KERNEL); in mlx5e_post_meter_rate_fg_create() 90 if (!flow_group_in) in mlx5e_post_meter_rate_fg_create() 93 MLX5_SET(create_flow_group_in, flow_group_in, match_criteria_enable, in mlx5e_post_meter_rate_fg_create() 95 match_criteria = MLX5_ADDR_OF(create_flow_group_in, flow_group_in, in mlx5e_post_meter_rate_fg_create() 99 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, 0); in mlx5e_post_meter_rate_fg_create() 100 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, 1); in mlx5e_post_meter_rate_fg_create() 102 table->fg = mlx5_create_flow_group(table->ft, flow_group_in); in mlx5e_post_meter_rate_fg_create() 108 kvfree(flow_group_in); in mlx5e_post_meter_rate_fg_create() 299 u32 *flow_group_in; in mlx5e_post_meter_create_mtu_table() local [all …]
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/ |
D | rdma.c | 34 u32 *flow_group_in; in mlx5_rdma_enable_roce_steering() local 41 flow_group_in = kvzalloc(inlen, GFP_KERNEL); in mlx5_rdma_enable_roce_steering() 42 if (!flow_group_in) in mlx5_rdma_enable_roce_steering() 46 kvfree(flow_group_in); in mlx5_rdma_enable_roce_steering() 66 mlx5_esw_set_flow_group_source_port(esw, flow_group_in, 0); in mlx5_rdma_enable_roce_steering() 68 fg = mlx5_create_flow_group(ft, flow_group_in); in mlx5_rdma_enable_roce_steering() 87 kvfree(flow_group_in); in mlx5_rdma_enable_roce_steering() 100 kvfree(flow_group_in); in mlx5_rdma_enable_roce_steering()
|
D | eswitch_offloads.c | 1467 u32 *flow_group_in, in mlx5_esw_set_flow_group_source_port() argument 1471 flow_group_in, in mlx5_esw_set_flow_group_source_port() 1475 MLX5_SET(create_flow_group_in, flow_group_in, in mlx5_esw_set_flow_group_source_port() 1483 MLX5_SET(create_flow_group_in, flow_group_in, in mlx5_esw_set_flow_group_source_port() 1650 u32 *flow_group_in, in esw_create_send_to_vport_group() argument 1658 memset(flow_group_in, 0, inlen); in esw_create_send_to_vport_group() 1660 mlx5_esw_set_flow_group_source_port(esw, flow_group_in, MLX5_MATCH_MISC_PARAMETERS); in esw_create_send_to_vport_group() 1662 match_criteria = MLX5_ADDR_OF(create_flow_group_in, flow_group_in, match_criteria); in esw_create_send_to_vport_group() 1669 MLX5_SET(create_flow_group_in, flow_group_in, in esw_create_send_to_vport_group() 1675 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, 0); in esw_create_send_to_vport_group() [all …]
|
D | eswitch.h | 771 u32 *flow_group_in,
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | legacy.c | 82 u32 *flow_group_in; in esw_create_legacy_fdb_table() local 95 flow_group_in = kvzalloc(inlen, GFP_KERNEL); in esw_create_legacy_fdb_table() 96 if (!flow_group_in) in esw_create_legacy_fdb_table() 111 MLX5_SET(create_flow_group_in, flow_group_in, match_criteria_enable, in esw_create_legacy_fdb_table() 113 match_criteria = MLX5_ADDR_OF(create_flow_group_in, flow_group_in, match_criteria); in esw_create_legacy_fdb_table() 115 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, 0); in esw_create_legacy_fdb_table() 117 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, table_size - 3); in esw_create_legacy_fdb_table() 119 g = mlx5_create_flow_group(fdb, flow_group_in); in esw_create_legacy_fdb_table() 128 MLX5_SET(create_flow_group_in, flow_group_in, match_criteria_enable, in esw_create_legacy_fdb_table() 130 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, table_size - 2); in esw_create_legacy_fdb_table() [all …]
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | fs_chains.c | 471 u32 *flow_group_in; in mlx5_chains_create_prio() local 479 flow_group_in = kvzalloc(inlen, GFP_KERNEL); in mlx5_chains_create_prio() 480 if (!prio_s || !flow_group_in) { in mlx5_chains_create_prio() 518 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, in mlx5_chains_create_prio() 520 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, in mlx5_chains_create_prio() 522 miss_group = mlx5_create_flow_group(ft, flow_group_in); in mlx5_chains_create_prio() 556 kvfree(flow_group_in); in mlx5_chains_create_prio() 572 kvfree(flow_group_in); in mlx5_chains_create_prio()
|
D | macsec_fs.c | 404 u32 *flow_group_in; in macsec_fs_tx_create() local 415 flow_group_in = kvzalloc(inlen, GFP_KERNEL); in macsec_fs_tx_create() 416 if (!flow_group_in) { in macsec_fs_tx_create() 483 memset(flow_group_in, 0, inlen); in macsec_fs_tx_create() 484 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, flow_table->max_fte - 1); in macsec_fs_tx_create() 485 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, flow_table->max_fte - 1); in macsec_fs_tx_create() 486 flow_group = mlx5_create_flow_group(tx_tables->ft_check, flow_group_in); in macsec_fs_tx_create() 535 kvfree(flow_group_in); in macsec_fs_tx_create() 542 kvfree(flow_group_in); in macsec_fs_tx_create() 1223 u32 *flow_group_in; in macsec_fs_rx_roce_miss_create() local [all …]
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_ct.c | 1686 u32 *flow_group_in; in mlx5_tc_ct_alloc_pre_ct() local 1697 flow_group_in = kvzalloc(inlen, GFP_KERNEL); in mlx5_tc_ct_alloc_pre_ct() 1698 if (!flow_group_in) in mlx5_tc_ct_alloc_pre_ct() 1715 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, 0); in mlx5_tc_ct_alloc_pre_ct() 1716 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, 0); in mlx5_tc_ct_alloc_pre_ct() 1717 MLX5_SET(create_flow_group_in, flow_group_in, match_criteria_enable, in mlx5_tc_ct_alloc_pre_ct() 1720 misc = MLX5_ADDR_OF(create_flow_group_in, flow_group_in, in mlx5_tc_ct_alloc_pre_ct() 1731 g = mlx5_create_flow_group(ft, flow_group_in); in mlx5_tc_ct_alloc_pre_ct() 1740 memset(flow_group_in, 0, inlen); in mlx5_tc_ct_alloc_pre_ct() 1741 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, 1); in mlx5_tc_ct_alloc_pre_ct() [all …]
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec_fs.c | 321 u32 *flow_group_in; in ipsec_rx_status_drop_all_create() local 324 flow_group_in = kvzalloc(inlen, GFP_KERNEL); in ipsec_rx_status_drop_all_create() 326 if (!flow_group_in || !spec) { in ipsec_rx_status_drop_all_create() 331 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, ft->max_fte - 1); in ipsec_rx_status_drop_all_create() 332 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, ft->max_fte - 1); in ipsec_rx_status_drop_all_create() 333 g = mlx5_create_flow_group(ft, flow_group_in); in ipsec_rx_status_drop_all_create() 366 kvfree(flow_group_in); in ipsec_rx_status_drop_all_create() 375 kvfree(flow_group_in); in ipsec_rx_status_drop_all_create() 460 u32 *flow_group_in; in ipsec_miss_create() local 463 flow_group_in = kvzalloc(inlen, GFP_KERNEL); in ipsec_miss_create() [all …]
|
/linux-6.12.1/drivers/infiniband/hw/mlx5/ |
D | fs.c | 2069 void *flow_group_in; in steering_anchor_create_fg_drop() local 2075 flow_group_in = kvzalloc(inlen, GFP_KERNEL); in steering_anchor_create_fg_drop() 2076 if (!flow_group_in) in steering_anchor_create_fg_drop() 2079 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, 1); in steering_anchor_create_fg_drop() 2080 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, 1); in steering_anchor_create_fg_drop() 2082 fg = mlx5_create_flow_group(ft_prio->anchor.ft, flow_group_in); in steering_anchor_create_fg_drop() 2091 kvfree(flow_group_in); in steering_anchor_create_fg_drop() 2110 void *flow_group_in; in steering_anchor_create_fg_goto_table() local 2116 flow_group_in = kvzalloc(inlen, GFP_KERNEL); in steering_anchor_create_fg_goto_table() 2117 if (!flow_group_in) in steering_anchor_create_fg_goto_table() [all …]
|