/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
H A D | post_act.c | 11 enum mlx5_flow_namespace_type ns_type; member 19 enum mlx5_flow_namespace_type ns_type; member 31 enum mlx5_flow_namespace_type ns_type) in mlx5e_tc_post_act_init() 33 enum fs_flow_table_type table_type = ns_type == MLX5_FLOW_NAMESPACE_FDB ? in mlx5e_tc_post_act_init() 57 post_act->ns_type = ns_type; in mlx5e_tc_post_act_init() 132 handle->ns_type = post_act->ns_type; in mlx5e_tc_post_act_add() 134 if (handle->ns_type == MLX5_FLOW_NAMESPACE_FDB) in mlx5e_tc_post_act_add() 180 return mlx5e_tc_match_to_reg_set(dev, acts, handle->ns_type, FTEID_TO_RE in mlx5e_tc_post_act_set_handle() 30 mlx5e_tc_post_act_init(struct mlx5e_priv *priv, struct mlx5_fs_chains *chains, enum mlx5_flow_namespace_type ns_type) mlx5e_tc_post_act_init() argument [all...] |
H A D | post_meter.c | 60 enum mlx5_flow_namespace_type ns_type) in mlx5e_post_meter_table_create() 65 root_ns = mlx5_get_flow_namespace(priv->mdev, ns_type); in mlx5e_post_meter_table_create() 250 enum mlx5_flow_namespace_type ns_type, in mlx5e_post_meter_rate_create() 263 ft = mlx5e_post_meter_table_create(priv, ns_type); in mlx5e_post_meter_rate_create() 294 enum mlx5_flow_namespace_type ns_type, in mlx5e_post_meter_create_mtu_table() 306 table->ft = mlx5e_post_meter_table_create(priv, ns_type); in mlx5e_post_meter_create_mtu_table() 335 enum mlx5_flow_namespace_type ns_type, in mlx5e_post_meter_mtu_create() 350 err = mlx5e_post_meter_create_mtu_table(priv, ns_type, &mtu_tables->green_table); in mlx5e_post_meter_mtu_create() 365 err = mlx5e_post_meter_create_mtu_table(priv, ns_type, &mtu_tables->red_table); in mlx5e_post_meter_mtu_create() 394 enum mlx5_flow_namespace_type ns_type, in mlx5e_post_meter_init() 59 mlx5e_post_meter_table_create(struct mlx5e_priv *priv, enum mlx5_flow_namespace_type ns_type) mlx5e_post_meter_table_create() argument 249 mlx5e_post_meter_rate_create(struct mlx5e_priv *priv, enum mlx5_flow_namespace_type ns_type, struct mlx5e_post_act *post_act, struct mlx5_fc *act_counter, struct mlx5_fc *drop_counter, struct mlx5e_post_meter_priv *post_meter, struct mlx5_flow_attr *green_attr, struct mlx5_flow_attr *red_attr) mlx5e_post_meter_rate_create() argument 293 mlx5e_post_meter_create_mtu_table(struct mlx5e_priv *priv, enum mlx5_flow_namespace_type ns_type, struct mlx5e_post_meter_mtu_table *table) mlx5e_post_meter_create_mtu_table() argument 334 mlx5e_post_meter_mtu_create(struct mlx5e_priv *priv, enum mlx5_flow_namespace_type ns_type, struct mlx5e_post_act *post_act, struct mlx5_fc *act_counter, struct mlx5_fc *drop_counter, struct mlx5e_post_meter_priv *post_meter, struct mlx5_flow_attr *green_attr, struct mlx5_flow_attr *red_attr) mlx5e_post_meter_mtu_create() argument 393 mlx5e_post_meter_init(struct mlx5e_priv *priv, enum mlx5_flow_namespace_type ns_type, struct mlx5e_post_act *post_act, enum mlx5e_post_meter_type type, struct mlx5_fc *act_counter, struct mlx5_fc *drop_counter, struct mlx5_flow_attr *branch_true, struct mlx5_flow_attr *branch_false) mlx5e_post_meter_init() argument [all...] |
H A D | meter.c | 35 enum mlx5_flow_namespace_type ns_type; member 511 return flow_meters->ns_type; in mlx5e_tc_meter_get_namespace() 516 enum mlx5_flow_namespace_type ns_type, in mlx5e_flow_meters_init() 554 flow_meters->ns_type = ns_type; in mlx5e_flow_meters_init() 515 mlx5e_flow_meters_init(struct mlx5e_priv *priv, enum mlx5_flow_namespace_type ns_type, struct mlx5e_post_act *post_act) mlx5e_flow_meters_init() argument
|
H A D | post_meter.h | 35 enum mlx5_flow_namespace_type ns_type,
|
H A D | post_act.h | 16 enum mlx5_flow_namespace_type ns_type);
|
H A D | meter.h | 66 enum mlx5_flow_namespace_type ns_type,
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
H A D | vlan_mangle.c | 59 enum mlx5_flow_namespace_type ns_type; in tc_act_parse_vlan_mangle() local 62 ns_type = mlx5e_get_flow_namespace(parse_state->flow); in tc_act_parse_vlan_mangle() 63 err = mlx5e_tc_act_vlan_add_rewrite_action(priv, ns_type, act, attr->parse_attr, in tc_act_parse_vlan_mangle() 68 if (ns_type == MLX5_FLOW_NAMESPACE_FDB) { in tc_act_parse_vlan_mangle()
|
H A D | act.c | 50 * @ns_type: flow namespace type. 54 enum mlx5_flow_namespace_type ns_type) in mlx5e_tc_act_get() 58 tc_acts = ns_type == MLX5_FLOW_NAMESPACE_FDB ? tc_acts_fdb : tc_acts_nic; in mlx5e_tc_act_get() 89 enum mlx5_flow_namespace_type ns_type) in mlx5e_tc_act_post_parse() 104 tc_act = mlx5e_tc_act_get(act->id, ns_type); in mlx5e_tc_act_post_parse() 53 mlx5e_tc_act_get(enum flow_action_id act_id, enum mlx5_flow_namespace_type ns_type) mlx5e_tc_act_get() argument 86 mlx5e_tc_act_post_parse(struct mlx5e_tc_act_parse_state *parse_state, struct flow_action *flow_action, int from, int to, struct mlx5_flow_attr *attr, enum mlx5_flow_namespace_type ns_type) mlx5e_tc_act_post_parse() argument
|
H A D | pedit.c | 89 enum mlx5_flow_namespace_type ns_type; in tc_act_parse_pedit() local 92 ns_type = mlx5e_get_flow_namespace(flow); in tc_act_parse_pedit() 94 err = mlx5e_tc_act_pedit_parse_action(flow->priv, act, ns_type, attr->parse_attr->hdrs, in tc_act_parse_pedit() 101 if (ns_type == MLX5_FLOW_NAMESPACE_FDB) { in tc_act_parse_pedit()
|
H A D | act.h | 105 enum mlx5_flow_namespace_type ns_type); 117 enum mlx5_flow_namespace_type ns_type);
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
H A D | tc.c | 540 enum mlx5_flow_namespace_type ns_type; in mlx5e_rep_indr_replace_act() local 553 ns_type = MLX5_FLOW_NAMESPACE_FDB; in mlx5e_rep_indr_replace_act() 555 ns_type = MLX5_FLOW_NAMESPACE_KERNEL; in mlx5e_rep_indr_replace_act() 558 act = mlx5e_tc_act_get(action->id, ns_type); in mlx5e_rep_indr_replace_act() 578 enum mlx5_flow_namespace_type ns_type; in mlx5e_rep_indr_destroy_act() local 582 ns_type = MLX5_FLOW_NAMESPACE_FDB; in mlx5e_rep_indr_destroy_act() 584 ns_type = MLX5_FLOW_NAMESPACE_KERNEL; in mlx5e_rep_indr_destroy_act() 586 act = mlx5e_tc_act_get(fl_act->id, ns_type); in mlx5e_rep_indr_destroy_act() 600 enum mlx5_flow_namespace_type ns_type; in mlx5e_rep_indr_stats_act() local 604 ns_type in mlx5e_rep_indr_stats_act() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | tc_ct.c | 57 enum mlx5_flow_namespace_type ns_type; member 495 enum mlx5_flow_namespace_type ns = ct_priv->ns_type; in mlx5_tc_ct_entry_set_registers() 620 err = alloc_mod_hdr_actions(mdev, ct_priv->ns_type, in mlx5_tc_ct_entry_create_nat() 687 ct_priv->ns_type, in mlx5_tc_ct_entry_create_mod_hdr() 722 attr = mlx5_alloc_flow_attr(ct_priv->ns_type); in mlx5_tc_ct_entry_add_rule() 1351 err = mlx5e_tc_match_to_reg_set(dev, &pre_mod_acts, ct_priv->ns_type, in tc_ct_pre_ct_add_rules() 1358 mod_hdr = mlx5_modify_header_alloc(dev, ct_priv->ns_type, in tc_ct_pre_ct_add_rules() 1446 ns = mlx5_get_flow_namespace(dev, ct_priv->ns_type); in mlx5_tc_ct_alloc_pre_ct() 1458 ft_attr.prio = ct_priv->ns_type == MLX5_FLOW_NAMESPACE_FDB ? in mlx5_tc_ct_alloc_pre_ct() 1691 u32 attr_sz = ns_to_attr_sz(ct_priv->ns_type); in __mlx5_tc_ct_flow_offload() 2053 mlx5_tc_ct_init_check_support(struct mlx5e_priv *priv, enum mlx5_flow_namespace_type ns_type, const char **err_msg) mlx5_tc_ct_init_check_support() argument 2074 mlx5_tc_ct_init(struct mlx5e_priv *priv, struct mlx5_fs_chains *chains, struct mod_hdr_tbl *mod_hdr, enum mlx5_flow_namespace_type ns_type) mlx5_tc_ct_init() argument [all...] |
H A D | tc_ct.h | 98 enum mlx5_flow_namespace_type ns_type); 138 enum mlx5_flow_namespace_type ns_type) in mlx5_tc_ct_init() 136 mlx5_tc_ct_init(struct mlx5e_priv *priv, struct mlx5_fs_chains *chains, struct mod_hdr_tbl *mod_hdr, enum mlx5_flow_namespace_type ns_type) mlx5_tc_ct_init() argument
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/mlx5/ |
H A D | fs.c | 1418 enum mlx5_flow_namespace_type ns_type, in _get_flow_table() 1435 switch (ns_type) { in _get_flow_table() 1480 ns = mlx5_get_flow_namespace(dev->mdev, ns_type); in _get_flow_table() 1484 switch (ns_type) { in _get_flow_table() 1629 fs_matcher->ns_type, mcast); in raw_fs_rule_add() 1817 if (fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_BYPASS) { in get_dests() 1825 if (fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_FDB_BYPASS && in get_dests() 1830 if ((fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_RDMA_RX) && in get_dests() 1846 if ((fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_FDB_BYPASS || in get_dests() 1847 fs_matcher->ns_type in get_dests() 1417 _get_flow_table(struct mlx5_ib_dev *dev, u16 user_priority, enum mlx5_flow_namespace_type ns_type, bool mcast) _get_flow_table() argument 2026 steering_anchor_create_ft(struct mlx5_ib_dev *dev, struct mlx5_ib_flow_prio *ft_prio, enum mlx5_flow_namespace_type ns_type) steering_anchor_create_ft() argument 2208 steering_anchor_create_res(struct mlx5_ib_dev *dev, struct mlx5_ib_flow_prio *ft_prio, enum mlx5_flow_namespace_type ns_type) steering_anchor_create_res() argument 2406 enum mlx5_flow_namespace_type ns_type; MLX5_IB_METHOD_STEERING_ANCHOR_CREATE() local [all...] |
/kernel/linux/linux-6.6/include/linux/mlx5/ |
H A D | fs.h | 318 u8 ns_type, u8 num_actions, 324 enum mlx5_flow_namespace_type ns_type, u16 format_id, 340 enum mlx5_flow_namespace_type ns_type);
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | tc_ct.h | 99 enum mlx5_flow_namespace_type ns_type, 136 enum mlx5_flow_namespace_type ns_type, in mlx5_tc_ct_init() 134 mlx5_tc_ct_init(struct mlx5e_priv *priv, struct mlx5_fs_chains *chains, struct mod_hdr_tbl *mod_hdr, enum mlx5_flow_namespace_type ns_type, struct mlx5e_post_act *post_act) mlx5_tc_ct_init() argument
|
H A D | tc_ct.c | 76 enum mlx5_flow_namespace_type ns_type; member 558 enum mlx5_flow_namespace_type ns = ct_priv->ns_type; in mlx5_tc_ct_entry_set_registers() 680 modact = mlx5e_mod_hdr_alloc(mdev, ct_priv->ns_type, mod_acts); in mlx5_tc_ct_entry_create_nat() 748 attr->modify_hdr = mlx5_modify_header_alloc(ct_priv->dev, ct_priv->ns_type, in mlx5_tc_ct_entry_create_mod_hdr() 760 ct_priv->ns_type, in mlx5_tc_ct_entry_create_mod_hdr() 807 attr = mlx5_alloc_flow_attr(ct_priv->ns_type); in mlx5_tc_ct_entry_add_rule() 836 if (ct_priv->ns_type == MLX5_FLOW_NAMESPACE_FDB) in mlx5_tc_ct_entry_add_rule() 883 old_attr = mlx5_alloc_flow_attr(ct_priv->ns_type); in mlx5_tc_ct_entry_replace_rule() 1577 err = mlx5e_tc_match_to_reg_set(dev, &pre_mod_acts, ct_priv->ns_type, in tc_ct_pre_ct_add_rules() 1584 mod_hdr = mlx5_modify_header_alloc(dev, ct_priv->ns_type, in tc_ct_pre_ct_add_rules() 2107 mlx5_tc_ct_init_check_support(struct mlx5e_priv *priv, enum mlx5_flow_namespace_type ns_type, struct mlx5e_post_act *post_act) mlx5_tc_ct_init_check_support() argument 2155 mlx5_tc_ct_init(struct mlx5e_priv *priv, struct mlx5_fs_chains *chains, struct mod_hdr_tbl *mod_hdr, enum mlx5_flow_namespace_type ns_type, struct mlx5e_post_act *post_act) mlx5_tc_ct_init() argument [all...] |
/kernel/linux/linux-5.10/include/linux/mlx5/ |
H A D | fs.h | 252 u8 ns_type, u8 num_actions, 261 enum mlx5_flow_namespace_type ns_type);
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | fs_core.h | 53 enum mlx5_flow_namespace_type ns_type; member 63 enum mlx5_flow_namespace_type ns_type; member 72 enum mlx5_flow_namespace_type ns_type; member
|
H A D | fs_core.c | 3582 *get_root_namespace(struct mlx5_core_dev *dev, enum mlx5_flow_namespace_type ns_type) in get_root_namespace() argument 3586 if (ns_type == MLX5_FLOW_NAMESPACE_ESW_EGRESS || in get_root_namespace() 3587 ns_type == MLX5_FLOW_NAMESPACE_ESW_INGRESS) in get_root_namespace() 3588 ns = mlx5_get_flow_vport_acl_namespace(dev, ns_type, 0); in get_root_namespace() 3590 ns = mlx5_get_flow_namespace(dev, ns_type); in get_root_namespace() 3598 u8 ns_type, u8 num_actions, in mlx5_modify_header_alloc() 3605 root = get_root_namespace(dev, ns_type); in mlx5_modify_header_alloc() 3613 modify_hdr->ns_type = ns_type; in mlx5_modify_header_alloc() 3614 err = root->cmds->modify_header_alloc(root, ns_type, num_action in mlx5_modify_header_alloc() 3597 mlx5_modify_header_alloc(struct mlx5_core_dev *dev, u8 ns_type, u8 num_actions, void *modify_actions) mlx5_modify_header_alloc() argument 3638 mlx5_packet_reformat_alloc(struct mlx5_core_dev *dev, struct mlx5_pkt_reformat_params *params, enum mlx5_flow_namespace_type ns_type) mlx5_packet_reformat_alloc() argument 3686 mlx5_create_match_definer(struct mlx5_core_dev *dev, enum mlx5_flow_namespace_type ns_type, u16 format_id, u32 *match_mask) mlx5_create_match_definer() argument [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
H A D | fs.c | 1307 switch (fs_matcher->ns_type) { in _get_flow_table() 1352 ns = mlx5_get_flow_namespace(dev->mdev, fs_matcher->ns_type); in _get_flow_table() 1356 switch (fs_matcher->ns_type) { in _get_flow_table() 1838 if (fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_BYPASS) { in get_dests() 1846 if (fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_FDB && !(dest_devx || in get_dests() 1851 if ((fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_RDMA_RX) && in get_dests() 1867 if ((fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_FDB || in get_dests() 1868 fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_RDMA_RX) && in get_dests() 1888 } else if ((fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_EGRESS || in get_dests() 1889 fs_matcher->ns_type in get_dests() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | fs_core.c | 3207 *get_root_namespace(struct mlx5_core_dev *dev, enum mlx5_flow_namespace_type ns_type) in get_root_namespace() argument 3211 if (ns_type == MLX5_FLOW_NAMESPACE_ESW_EGRESS || in get_root_namespace() 3212 ns_type == MLX5_FLOW_NAMESPACE_ESW_INGRESS) in get_root_namespace() 3213 ns = mlx5_get_flow_vport_acl_namespace(dev, ns_type, 0); in get_root_namespace() 3215 ns = mlx5_get_flow_namespace(dev, ns_type); in get_root_namespace() 3223 u8 ns_type, u8 num_actions, in mlx5_modify_header_alloc() 3230 root = get_root_namespace(dev, ns_type); in mlx5_modify_header_alloc() 3238 modify_hdr->ns_type = ns_type; in mlx5_modify_header_alloc() 3239 err = root->cmds->modify_header_alloc(root, ns_type, num_action in mlx5_modify_header_alloc() 3222 mlx5_modify_header_alloc(struct mlx5_core_dev *dev, u8 ns_type, u8 num_actions, void *modify_actions) mlx5_modify_header_alloc() argument 3263 mlx5_packet_reformat_alloc(struct mlx5_core_dev *dev, int reformat_type, size_t size, void *reformat_data, enum mlx5_flow_namespace_type ns_type) mlx5_packet_reformat_alloc() argument [all...] |
H A D | fs_core.h | 53 enum mlx5_flow_namespace_type ns_type; member 61 enum mlx5_flow_namespace_type ns_type; member
|
/kernel/linux/linux-5.10/net/wireless/ |
H A D | sysfs.c | 162 .ns_type = &net_ns_type_operations,
|
/kernel/linux/linux-6.6/include/linux/device/ |
H A D | class.h | 37 * @ns_type: Callbacks so sysfs can detemine namespaces. 66 const struct kobj_ns_type_operations *ns_type; member in __anon36891
|