Home
last modified time | relevance | path

Searched refs:dests (Results 1 – 24 of 24) sorted by relevance

/linux/net/tipc/
H A Dbcast.c67 int dests[MAX_BEARERS]; member
122 if (!bb->dests[i]) in tipc_bcbase_select_primary()
133 if (bb->dests[i] < all_dests) in tipc_bcbase_select_primary()
152 bb->dests[bearer_id]++; in tipc_bcast_inc_bearer_dst_cnt()
162 bb->dests[bearer_id]--; in tipc_bcast_dec_bearer_dst_cnt()
197 if (!bb->dests[bearer_id]) in tipc_bcbase_xmit()
212 static void tipc_bcast_select_xmit_method(struct net *net, int dests, in tipc_bcast_select_xmit_method() argument
249 method->rcast = dests <= bb->bc_threshold; in tipc_bcast_select_xmit_method()
289 struct tipc_nlist *dests, u16 *cong_link_cnt) in tipc_rcast_xmit() argument
298 list_for_each_entry_safe(dst, tmp, &dests->list, list) { in tipc_rcast_xmit()
[all …]
H A Dgroup.c85 struct tipc_nlist dests; member
175 tipc_nlist_init(&grp->dests, tipc_own_addr(net)); in tipc_group_create()
227 tipc_nlist_purge(&grp->dests); in tipc_group_delete()
326 tipc_nlist_add(&grp->dests, m->node); in tipc_group_create_member()
353 tipc_nlist_del(&grp->dests, m->node); in tipc_group_delete_member()
360 return &grp->dests; in tipc_group_dests()
H A Dbcast.h91 struct tipc_mc_method *method, struct tipc_nlist *dests,
/linux/tools/testing/selftests/damon/
H A Dsysfs.py90 def assert_migrate_dests_committed(dests, dump):
91 assert_true(dump['nr_dests'] == len(dests.dests), 'nr_dests', dump)
92 for idx, dest in enumerate(dests.dests):
144 assert_migrate_dests_committed(scheme.dests, dump['migrate_dests'])
328 dests=_damon_sysfs.DamosDests(
329 dests=[_damon_sysfs.DamosDest(id=1, weight=30),
77 assert_migrate_dests_committed(dests, dump) global() argument
H A D_damon_sysfs.py349 dests = None # owner dests
356 return os.path.join(self.dests.sysfs_dir(), '%d' % self.idx)
368 dests = None
371 def __init__(self, dests=[]):
372 self.dests = dests
373 for idx, dest in enumerate(self.dests):
375 dest.dests = self
378 return os.path.join(self.scheme.sysfs_dir(), 'dests')
326 dests = None # owner dests global() variable in DamosDest
345 dests = None global() variable in DamosDests
348 __init__(self, dests=[]) global() argument
399 dests = None global() variable in Damos
409 __init__(self, action='stat', access_pattern=DamosAccessPattern(), quota=DamosQuota(), watermarks=DamosWatermarks(), core_filters=[], ops_filters=[], filters=[], target_nid=0, dests=DamosDests(), apply_interval_us=0) global() argument
[all...]
H A Ddrgn_dump_damon_status.py128 def damos_migrate_dests_to_dict(dests):
129 nr_dests = int(dests.nr_dests)
133 node_id_arr.append(int(dests.node_id_arr[i]))
134 weight_arr.append(int(dests.weight_arr[i]))
126 damos_migrate_dests_to_dict(dests) global() argument
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch_offloads_termtbl.c236 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()
268 if (attr->dests[num_vport_dests].flags & MLX5_ESW_DEST_ENCAP) { in mlx5_eswitch_add_termtbl_rule()
270 term_tbl_act.pkt_reformat = attr->dests[num_vport_dests].pkt_reformat; in mlx5_eswitch_add_termtbl_rule()
283 attr->dests[num_vport_dests].termtbl = tt; in mlx5_eswitch_add_termtbl_rule()
313 struct mlx5_termtbl_handle *tt = attr->dests[curr_dest].termtbl; in mlx5_eswitch_add_termtbl_rule()
315 attr->dests[curr_dest].termtbl = NULL; in mlx5_eswitch_add_termtbl_rule()
H A Deswitch_offloads.c292 if (esw_attr->dests[i].flags & MLX5_ESW_DEST_CHAIN_WITH_SRC_PORT_CHANGE) in esw_put_dest_tables_loop()
294 else if (mlx5_esw_indir_table_needed(esw, attr, esw_attr->dests[i].vport, in esw_put_dest_tables_loop()
295 esw_attr->dests[i].mdev)) in esw_put_dest_tables_loop()
296 mlx5_esw_indir_table_put(esw, esw_attr->dests[i].vport, false); in esw_put_dest_tables_loop()
305 if (esw_attr->dests[i].flags & MLX5_ESW_DEST_CHAIN_WITH_SRC_PORT_CHANGE) in esw_is_chain_src_port_rewrite()
334 if (esw_attr->dests[esw_attr->split_count].pkt_reformat) { in esw_setup_chain_src_port_rewrite()
336 flow_act->pkt_reformat = esw_attr->dests[esw_attr->split_count].pkt_reformat; in esw_setup_chain_src_port_rewrite()
364 if (esw_attr->dests[i].vport_valid && in esw_is_indir_table()
365 mlx5_esw_indir_table_needed(esw, attr, esw_attr->dests[i].vport, in esw_is_indir_table()
366 esw_attr->dests[i].mdev)) { in esw_is_indir_table()
[all …]
H A Den_tc.c845 ttc_params->dests[tt].type = MLX5_FLOW_DESTINATION_TYPE_TIR; in mlx5e_hairpin_set_ttc_params()
846 ttc_params->dests[tt].tir_num = in mlx5e_hairpin_set_ttc_params()
1741 if (esw_attr->dests[out_index].flags & MLX5_ESW_DEST_ENCAP) in has_encap_dests()
1764 (esw_attr->dests[esw_attr->split_count].flags & in extra_split_attr_dests_needed()
1770 if (esw_attr->dests[i].vport == MLX5_VPORT_UPLINK && in extra_split_attr_dests_needed()
1771 !(esw_attr->dests[i].flags & MLX5_ESW_DEST_ENCAP)) in extra_split_attr_dests_needed()
1819 esw_attr2->dests[j] = esw_attr->dests[i]; in extra_split_attr_dests()
3712 if (esw_attr->dests[i].flags & MLX5_ESW_DEST_ENCAP) in mlx5e_tc_get_encap_attr()
4273 esw_attr->dests[out_index].flags |= MLX5_ESW_DEST_CHAIN_WITH_SRC_PORT_CHANGE; in mlx5e_set_fwd_to_int_port_actions()
H A Deswitch.h591 } dests[MLX5_MAX_FLOW_FWD_VPORTS]; member
/linux/include/linux/
H A Ddm-kcopyd.h68 unsigned int num_dests, struct dm_io_region *dests,
87 unsigned int num_dests, struct dm_io_region *dests,
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dmirred.c198 esw_attr->dests[esw_attr->out_count].flags |= MLX5_ESW_DEST_ENCAP; in parse_mirred_encap()
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()
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dbridge_mcast.c61 struct mlx5_flow_destination *dests; in mlx5_esw_bridge_mdb_flow_create() local
72 dests = kvzalloc_objs(*dests, num_dests); in mlx5_esw_bridge_mdb_flow_create()
73 if (!dests) { in mlx5_esw_bridge_mdb_flow_create()
79 dests[i].type = MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE; in mlx5_esw_bridge_mdb_flow_create()
80 dests[i].ft = port->mcast.ft; in mlx5_esw_bridge_mdb_flow_create()
82 dests[i].ft->flags |= MLX5_FLOW_TABLE_UPLINK_VPORT; in mlx5_esw_bridge_mdb_flow_create()
111 handle = mlx5_add_flow_rules(bridge->egress_ft, rule_spec, &flow_act, dests, num_dests); in mlx5_esw_bridge_mdb_flow_create()
113 kvfree(dests); in mlx5_esw_bridge_mdb_flow_create()
H A Dbridge.c584 struct mlx5_flow_destination dests[2] = {}; in mlx5_esw_bridge_ingress_flow_with_esw_create() local
630 dests[0].type = MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE; in mlx5_esw_bridge_ingress_flow_with_esw_create()
631 dests[0].ft = bridge->egress_ft; in mlx5_esw_bridge_ingress_flow_with_esw_create()
632 dests[1].type = MLX5_FLOW_DESTINATION_TYPE_COUNTER; in mlx5_esw_bridge_ingress_flow_with_esw_create()
633 dests[1].counter = counter; in mlx5_esw_bridge_ingress_flow_with_esw_create()
635 handle = mlx5_add_flow_rules(br_offloads->ingress_ft, rule_spec, &flow_act, dests, in mlx5_esw_bridge_ingress_flow_with_esw_create()
636 ARRAY_SIZE(dests)); in mlx5_esw_bridge_ingress_flow_with_esw_create()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Daction.c1362 struct mlx5hws_action_dest_attr *dests, in mlx5hws_action_create_dest_array() argument
1391 enum mlx5hws_action_type action_type = dests[i].dest->type; in mlx5hws_action_create_dest_array()
1392 struct mlx5hws_action *reformat_action = dests[i].reformat; in mlx5hws_action_create_dest_array()
1398 dest_list[i].destination_id = dests[i].dest->dest_obj.obj_id; in mlx5hws_action_create_dest_array()
1401 if (dests[i].is_wire_ft) in mlx5hws_action_create_dest_array()
1406 dest_list[i].destination_id = dests[i].dest->vport.vport_num; in mlx5hws_action_create_dest_array()
1412 dests[i].dest->vport.esw_owner_vhca_id; in mlx5hws_action_create_dest_array()
1430 fte_attr.dests = dest_list; in mlx5hws_action_create_dest_array()
1893 fte_attr.dests = &dest; in mlx5hws_action_create_flow_sampler()
H A Dcmd.h33 struct mlx5hws_cmd_set_fte_dest *dests; member
H A Dmlx5hws.h744 struct mlx5hws_action_dest_attr *dests,
H A Dfs_hws.c574 struct mlx5hws_action_dest_attr *dests, in mlx5_fs_create_action_dest_array() argument
579 return mlx5hws_action_create_dest_array(ctx, num_of_dests, dests, in mlx5_fs_create_action_dest_array()
H A Dcmd.c230 struct mlx5hws_cmd_set_fte_dest *dest = &fte_attr->dests[i]; in mlx5hws_cmd_set_fte()
/linux/Documentation/admin-guide/device-mapper/
H A Dkcopyd.rst33 unsigned int num_dests, struct io_region *dests,
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Dmlx5dr.h100 struct mlx5dr_action_dest *dests,
H A Ddr_action.c1175 struct mlx5dr_action_dest *dests, in mlx5dr_action_create_mult_dest_tbl() argument
1209 struct mlx5dr_action *reformat_action = dests[i].reformat; in mlx5dr_action_create_mult_dest_tbl()
1210 struct mlx5dr_action *dest_action = dests[i].dest; in mlx5dr_action_create_mult_dest_tbl()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dfs_ttc.c419 rule->rule = mlx5_generate_ttc_rule(dev, ft, &params->dests[tt], in mlx5_generate_ttc_table_rules()
429 rule->default_dest = params->dests[tt]; in mlx5_generate_ttc_table_rules()
687 &params->dests[tt], in mlx5_generate_inner_ttc_table_rules()
696 rule->default_dest = params->dests[tt]; in mlx5_generate_inner_ttc_table_rules()
/linux/drivers/vdpa/mlx5/net/
H A Dmlx5_vnet.c1876 struct mlx5_flow_destination *dests) in add_steering_counters() argument
1891 dests[1].type = MLX5_FLOW_DESTINATION_TYPE_COUNTER; in add_steering_counters()
1915 struct mlx5_flow_destination dests[NUM_DESTS] = {}; in mlx5_vdpa_add_mac_vlan_rules() local
1946 dests[0].type = MLX5_FLOW_DESTINATION_TYPE_TIR; in mlx5_vdpa_add_mac_vlan_rules()
1947 dests[0].tir_num = ndev->res.tirn; in mlx5_vdpa_add_mac_vlan_rules()
1948 err = add_steering_counters(ndev, node, &flow_act, dests); in mlx5_vdpa_add_mac_vlan_rules()
1953 dests[1].counter = node->ucast_counter.counter; in mlx5_vdpa_add_mac_vlan_rules()
1955 node->ucast_rule = mlx5_add_flow_rules(ndev->rxft, spec, &flow_act, dests, NUM_DESTS); in mlx5_vdpa_add_mac_vlan_rules()
1962 dests[1].counter = node->mcast_counter.counter; in mlx5_vdpa_add_mac_vlan_rules()
1969 node->mcast_rule = mlx5_add_flow_rules(ndev->rxft, spec, &flow_act, dests, NUM_DESTS); in mlx5_vdpa_add_mac_vlan_rules()