/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
H A 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 …]
|
H A 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 …]
|
H A 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()
|
H A 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()
|
H A 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()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
H A 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 …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A 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()
|
H A D | eswitch_offloads.c | 1453 u32 *flow_group_in, in mlx5_esw_set_flow_group_source_port() argument 1457 flow_group_in, in mlx5_esw_set_flow_group_source_port() 1461 MLX5_SET(create_flow_group_in, flow_group_in, in mlx5_esw_set_flow_group_source_port() 1469 MLX5_SET(create_flow_group_in, flow_group_in, in mlx5_esw_set_flow_group_source_port() 1636 u32 *flow_group_in, in esw_create_send_to_vport_group() argument 1644 memset(flow_group_in, 0, inlen); in esw_create_send_to_vport_group() 1646 mlx5_esw_set_flow_group_source_port(esw, flow_group_in, MLX5_MATCH_MISC_PARAMETERS); in esw_create_send_to_vport_group() 1648 match_criteria = MLX5_ADDR_OF(create_flow_group_in, flow_group_in, match_criteria); in esw_create_send_to_vport_group() 1655 MLX5_SET(create_flow_group_in, flow_group_in, in esw_create_send_to_vport_group() 1661 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, 0); in esw_create_send_to_vport_group() [all …]
|
H A D | eswitch.h | 771 u32 *flow_group_in,
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A 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 …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A 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()
|
H A 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 …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ipsec_fs.c | 164 u32 *flow_group_in; in ipsec_rx_status_drop_create() local 167 flow_group_in = kvzalloc(inlen, GFP_KERNEL); in ipsec_rx_status_drop_create() 169 if (!flow_group_in || !spec) { in ipsec_rx_status_drop_create() 174 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, ft->max_fte - 1); in ipsec_rx_status_drop_create() 175 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, ft->max_fte - 1); in ipsec_rx_status_drop_create() 176 g = mlx5_create_flow_group(ft, flow_group_in); in ipsec_rx_status_drop_create() 209 kvfree(flow_group_in); in ipsec_rx_status_drop_create() 218 kvfree(flow_group_in); in ipsec_rx_status_drop_create() 299 u32 *flow_group_in; in ipsec_miss_create() local 302 flow_group_in = kvzalloc(inlen, GFP_KERNEL); in ipsec_miss_create() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | tc_ct.c | 1668 u32 *flow_group_in; in mlx5_tc_ct_alloc_pre_ct() local 1679 flow_group_in = kvzalloc(inlen, GFP_KERNEL); in mlx5_tc_ct_alloc_pre_ct() 1680 if (!flow_group_in) in mlx5_tc_ct_alloc_pre_ct() 1697 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, 0); in mlx5_tc_ct_alloc_pre_ct() 1698 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, 0); in mlx5_tc_ct_alloc_pre_ct() 1699 MLX5_SET(create_flow_group_in, flow_group_in, match_criteria_enable, in mlx5_tc_ct_alloc_pre_ct() 1702 misc = MLX5_ADDR_OF(create_flow_group_in, flow_group_in, in mlx5_tc_ct_alloc_pre_ct() 1713 g = mlx5_create_flow_group(ft, flow_group_in); in mlx5_tc_ct_alloc_pre_ct() 1722 memset(flow_group_in, 0, inlen); in mlx5_tc_ct_alloc_pre_ct() 1723 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, 1); in mlx5_tc_ct_alloc_pre_ct() [all …]
|
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A 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 …]
|