Home
last modified time | relevance | path

Searched refs:flow_rule (Results 1 - 25 of 105) sorted by relevance

12345

/kernel/linux/linux-6.6/net/netfilter/
H A Dnf_flow_table_offload.c216 flow_action_entry_next(struct nf_flow_rule *flow_rule) in flow_action_entry_next() argument
218 int i = flow_rule->rule->action.num_entries++; in flow_action_entry_next()
220 return &flow_rule->rule->action.entries[i]; in flow_action_entry_next()
226 struct nf_flow_rule *flow_rule) in flow_offload_eth_src()
228 struct flow_action_entry *entry0 = flow_action_entry_next(flow_rule); in flow_offload_eth_src()
229 struct flow_action_entry *entry1 = flow_action_entry_next(flow_rule); in flow_offload_eth_src()
273 struct nf_flow_rule *flow_rule) in flow_offload_eth_dst()
275 struct flow_action_entry *entry0 = flow_action_entry_next(flow_rule); in flow_offload_eth_dst()
276 struct flow_action_entry *entry1 = flow_action_entry_next(flow_rule); in flow_offload_eth_dst()
330 struct nf_flow_rule *flow_rule) in flow_offload_ipv4_snat()
223 flow_offload_eth_src(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) flow_offload_eth_src() argument
270 flow_offload_eth_dst(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) flow_offload_eth_dst() argument
327 flow_offload_ipv4_snat(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) flow_offload_ipv4_snat() argument
354 flow_offload_ipv4_dnat(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) flow_offload_ipv4_dnat() argument
381 flow_offload_ipv6_mangle(struct nf_flow_rule *flow_rule, unsigned int offset, const __be32 *addr, const __be32 *mask) flow_offload_ipv6_mangle() argument
395 flow_offload_ipv6_snat(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) flow_offload_ipv6_snat() argument
420 flow_offload_ipv6_dnat(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) flow_offload_ipv6_dnat() argument
464 flow_offload_port_snat(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) flow_offload_port_snat() argument
494 flow_offload_port_dnat(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) flow_offload_port_dnat() argument
524 flow_offload_ipv4_checksum(struct net *net, const struct flow_offload *flow, struct nf_flow_rule *flow_rule) flow_offload_ipv4_checksum() argument
544 flow_offload_redirect(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) flow_offload_redirect() argument
577 flow_offload_encap_tunnel(const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) flow_offload_encap_tunnel() argument
602 flow_offload_decap_tunnel(const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) flow_offload_decap_tunnel() argument
627 nf_flow_rule_route_common(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) nf_flow_rule_route_common() argument
682 nf_flow_rule_route_ipv4(struct net *net, struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) nf_flow_rule_route_ipv4() argument
707 nf_flow_rule_route_ipv6(struct net *net, struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) nf_flow_rule_route_ipv6() argument
740 struct nf_flow_rule *flow_rule; nf_flow_offload_rule_alloc() local
778 __nf_flow_offload_destroy(struct nf_flow_rule *flow_rule) __nf_flow_offload_destroy() argument
794 nf_flow_offload_destroy(struct nf_flow_rule *flow_rule[]) nf_flow_offload_destroy() argument
802 nf_flow_offload_alloc(const struct flow_offload_work *offload, struct nf_flow_rule *flow_rule[]) nf_flow_offload_alloc() argument
835 nf_flow_offload_tuple(struct nf_flowtable *flowtable, struct flow_offload *flow, struct nf_flow_rule *flow_rule, enum flow_offload_tuple_dir dir, int priority, int cmd, struct flow_stats *stats, struct list_head *block_cb_list) nf_flow_offload_tuple() argument
871 flow_offload_tuple_add(struct flow_offload_work *offload, struct nf_flow_rule *flow_rule, enum flow_offload_tuple_dir dir) flow_offload_tuple_add() argument
891 flow_offload_rule_add(struct flow_offload_work *offload, struct nf_flow_rule *flow_rule[]) flow_offload_rule_add() argument
909 struct nf_flow_rule *flow_rule[FLOW_OFFLOAD_DIR_MAX]; flow_offload_work_add() local
[all...]
H A Dnf_flow_table_inet.c44 struct nf_flow_rule *flow_rule) in nf_flow_rule_route_inet()
51 err = nf_flow_rule_route_ipv4(net, flow, dir, flow_rule); in nf_flow_rule_route_inet()
54 err = nf_flow_rule_route_ipv6(net, flow, dir, flow_rule); in nf_flow_rule_route_inet()
41 nf_flow_rule_route_inet(struct net *net, struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) nf_flow_rule_route_inet() argument
/kernel/linux/linux-5.10/net/netfilter/
H A Dnf_flow_table_offload.c166 flow_action_entry_next(struct nf_flow_rule *flow_rule) in flow_action_entry_next() argument
168 int i = flow_rule->rule->action.num_entries++; in flow_action_entry_next()
170 return &flow_rule->rule->action.entries[i]; in flow_action_entry_next()
176 struct nf_flow_rule *flow_rule) in flow_offload_eth_src()
179 struct flow_action_entry *entry0 = flow_action_entry_next(flow_rule); in flow_offload_eth_src()
180 struct flow_action_entry *entry1 = flow_action_entry_next(flow_rule); in flow_offload_eth_src()
207 struct nf_flow_rule *flow_rule) in flow_offload_eth_dst()
209 struct flow_action_entry *entry0 = flow_action_entry_next(flow_rule); in flow_offload_eth_dst()
210 struct flow_action_entry *entry1 = flow_action_entry_next(flow_rule); in flow_offload_eth_dst()
252 struct nf_flow_rule *flow_rule) in flow_offload_ipv4_snat()
173 flow_offload_eth_src(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) flow_offload_eth_src() argument
204 flow_offload_eth_dst(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) flow_offload_eth_dst() argument
249 flow_offload_ipv4_snat(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) flow_offload_ipv4_snat() argument
276 flow_offload_ipv4_dnat(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) flow_offload_ipv4_dnat() argument
303 flow_offload_ipv6_mangle(struct nf_flow_rule *flow_rule, unsigned int offset, const __be32 *addr, const __be32 *mask) flow_offload_ipv6_mangle() argument
317 flow_offload_ipv6_snat(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) flow_offload_ipv6_snat() argument
342 flow_offload_ipv6_dnat(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) flow_offload_ipv6_dnat() argument
386 flow_offload_port_snat(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) flow_offload_port_snat() argument
416 flow_offload_port_dnat(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) flow_offload_port_dnat() argument
446 flow_offload_ipv4_checksum(struct net *net, const struct flow_offload *flow, struct nf_flow_rule *flow_rule) flow_offload_ipv4_checksum() argument
466 flow_offload_redirect(const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) flow_offload_redirect() argument
479 flow_offload_encap_tunnel(const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) flow_offload_encap_tunnel() argument
499 flow_offload_decap_tunnel(const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) flow_offload_decap_tunnel() argument
518 nf_flow_rule_route_ipv4(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) nf_flow_rule_route_ipv4() argument
547 nf_flow_rule_route_ipv6(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) nf_flow_rule_route_ipv6() argument
583 struct nf_flow_rule *flow_rule; nf_flow_offload_rule_alloc() local
619 __nf_flow_offload_destroy(struct nf_flow_rule *flow_rule) __nf_flow_offload_destroy() argument
635 nf_flow_offload_destroy(struct nf_flow_rule *flow_rule[]) nf_flow_offload_destroy() argument
643 nf_flow_offload_alloc(const struct flow_offload_work *offload, struct nf_flow_rule *flow_rule[]) nf_flow_offload_alloc() argument
676 nf_flow_offload_tuple(struct nf_flowtable *flowtable, struct flow_offload *flow, struct nf_flow_rule *flow_rule, enum flow_offload_tuple_dir dir, int priority, int cmd, struct flow_stats *stats, struct list_head *block_cb_list) nf_flow_offload_tuple() argument
712 flow_offload_tuple_add(struct flow_offload_work *offload, struct nf_flow_rule *flow_rule, enum flow_offload_tuple_dir dir) flow_offload_tuple_add() argument
730 flow_offload_rule_add(struct flow_offload_work *offload, struct nf_flow_rule *flow_rule[]) flow_offload_rule_add() argument
747 struct nf_flow_rule *flow_rule[FLOW_OFFLOAD_DIR_MAX]; flow_offload_work_add() local
[all...]
H A Dnf_flow_table_inet.c27 struct nf_flow_rule *flow_rule) in nf_flow_rule_route_inet()
34 err = nf_flow_rule_route_ipv4(net, flow, dir, flow_rule); in nf_flow_rule_route_inet()
37 err = nf_flow_rule_route_ipv6(net, flow, dir, flow_rule); in nf_flow_rule_route_inet()
24 nf_flow_rule_route_inet(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) nf_flow_rule_route_inet() argument
/kernel/linux/linux-6.6/include/net/
H A Dflow_offload.h95 struct flow_rule;
97 void flow_rule_match_meta(const struct flow_rule *rule,
99 void flow_rule_match_basic(const struct flow_rule *rule,
101 void flow_rule_match_control(const struct flow_rule *rule,
103 void flow_rule_match_eth_addrs(const struct flow_rule *rule,
105 void flow_rule_match_vlan(const struct flow_rule *rule,
107 void flow_rule_match_cvlan(const struct flow_rule *rule,
109 void flow_rule_match_arp(const struct flow_rule *rule,
111 void flow_rule_match_ipv4_addrs(const struct flow_rule *rule,
113 void flow_rule_match_ipv6_addrs(const struct flow_rule *rul
439 struct flow_rule { global() struct
[all...]
/kernel/linux/linux-5.10/include/net/
H A Dflow_offload.h75 struct flow_rule;
77 void flow_rule_match_meta(const struct flow_rule *rule,
79 void flow_rule_match_basic(const struct flow_rule *rule,
81 void flow_rule_match_control(const struct flow_rule *rule,
83 void flow_rule_match_eth_addrs(const struct flow_rule *rule,
85 void flow_rule_match_vlan(const struct flow_rule *rule,
87 void flow_rule_match_cvlan(const struct flow_rule *rule,
89 void flow_rule_match_ipv4_addrs(const struct flow_rule *rule,
91 void flow_rule_match_ipv6_addrs(const struct flow_rule *rule,
93 void flow_rule_match_ip(const struct flow_rule *rul
377 struct flow_rule { global() struct
[all...]
/kernel/linux/linux-5.10/net/core/
H A Dflow_offload.c9 struct flow_rule *flow_rule_alloc(unsigned int num_actions) in flow_rule_alloc()
11 struct flow_rule *rule; in flow_rule_alloc()
37 void flow_rule_match_meta(const struct flow_rule *rule, in flow_rule_match_meta()
44 void flow_rule_match_basic(const struct flow_rule *rule, in flow_rule_match_basic()
51 void flow_rule_match_control(const struct flow_rule *rule, in flow_rule_match_control()
58 void flow_rule_match_eth_addrs(const struct flow_rule *rule, in flow_rule_match_eth_addrs()
65 void flow_rule_match_vlan(const struct flow_rule *rule, in flow_rule_match_vlan()
72 void flow_rule_match_cvlan(const struct flow_rule *rule, in flow_rule_match_cvlan()
79 void flow_rule_match_ipv4_addrs(const struct flow_rule *rule, in flow_rule_match_ipv4_addrs()
86 void flow_rule_match_ipv6_addrs(const struct flow_rule *rul
[all...]
/kernel/linux/linux-6.6/net/core/
H A Dflow_offload.c10 struct flow_rule *flow_rule_alloc(unsigned int num_actions) in flow_rule_alloc()
12 struct flow_rule *rule; in flow_rule_alloc()
58 void flow_rule_match_meta(const struct flow_rule *rule, in flow_rule_match_meta()
65 void flow_rule_match_basic(const struct flow_rule *rule, in flow_rule_match_basic()
72 void flow_rule_match_control(const struct flow_rule *rule, in flow_rule_match_control()
79 void flow_rule_match_eth_addrs(const struct flow_rule *rule, in flow_rule_match_eth_addrs()
86 void flow_rule_match_vlan(const struct flow_rule *rule, in flow_rule_match_vlan()
93 void flow_rule_match_cvlan(const struct flow_rule *rule, in flow_rule_match_cvlan()
100 void flow_rule_match_arp(const struct flow_rule *rule, in flow_rule_match_arp()
107 void flow_rule_match_ipv4_addrs(const struct flow_rule *rul
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/flower/
H A Dmain.h561 struct flow_rule *rule);
571 struct flow_rule *rule);
575 struct flow_rule *rule,
580 struct flow_rule *rule);
584 struct flow_rule *rule);
587 struct nfp_flower_ipv4 *msk, struct flow_rule *rule);
590 struct nfp_flower_ipv6 *msk, struct flow_rule *rule);
592 nfp_flower_compile_geneve_opt(u8 *ext, u8 *msk, struct flow_rule *rule);
596 struct flow_rule *rule);
600 struct flow_rule *rul
[all...]
H A Dmatch.c25 struct flow_rule *rule) in nfp_flower_compile_tci()
54 struct flow_rule *rule, u8 key_type, bool qinq_sup) in nfp_flower_compile_meta_tci()
97 struct flow_rule *rule) in nfp_flower_compile_mac()
121 struct flow_rule *rule, in nfp_flower_compile_mpls()
176 struct flow_rule *rule, in nfp_flower_compile_mac_mpls()
190 struct flow_rule *rule) in nfp_flower_compile_tport()
210 struct nfp_flower_ip_ext *msk, struct flow_rule *rule) in nfp_flower_compile_ip_ext()
320 struct flow_rule *rule) in nfp_flower_compile_vlan()
336 struct nfp_flower_ipv4 *msk, struct flow_rule *rule) in nfp_flower_compile_ipv4()
358 struct nfp_flower_ipv6 *msk, struct flow_rule *rul in nfp_flower_compile_ipv6()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/flower/
H A Dmatch.c13 struct flow_rule *rule, u8 key_type, bool qinq_sup) in nfp_flower_compile_meta_tci()
79 struct nfp_flower_mac_mpls *msk, struct flow_rule *rule, in nfp_flower_compile_mac()
146 struct flow_rule *rule) in nfp_flower_compile_tport()
164 struct nfp_flower_ip_ext *msk, struct flow_rule *rule) in nfp_flower_compile_ip_ext()
258 struct flow_rule *rule) in nfp_flower_compile_vlan()
279 struct nfp_flower_ipv4 *msk, struct flow_rule *rule) in nfp_flower_compile_ipv4()
299 struct nfp_flower_ipv6 *msk, struct flow_rule *rule) in nfp_flower_compile_ipv6()
318 nfp_flower_compile_geneve_opt(void *ext, void *msk, struct flow_rule *rule) in nfp_flower_compile_geneve_opt()
332 struct flow_rule *rule) in nfp_flower_compile_tun_ipv4_addrs()
348 struct flow_rule *rul in nfp_flower_compile_tun_ipv6_addrs()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dct_fs_smfs.c245 mlx5_ct_fs_smfs_ct_validate_flow_rule(struct mlx5_ct_fs *fs, struct flow_rule *flow_rule) in mlx5_ct_fs_smfs_ct_validate_flow_rule() argument
254 if (!mlx5_tc_ct_valid_used_dissector_keys(flow_rule->match.dissector->used_keys)) { in mlx5_ct_fs_smfs_ct_validate_flow_rule()
256 flow_rule->match.dissector->used_keys); in mlx5_ct_fs_smfs_ct_validate_flow_rule()
260 flow_rule_match_basic(flow_rule, &basic); in mlx5_ct_fs_smfs_ct_validate_flow_rule()
261 flow_rule_match_control(flow_rule, &control); in mlx5_ct_fs_smfs_ct_validate_flow_rule()
262 flow_rule_match_ipv4_addrs(flow_rule, &ipv4_addrs); in mlx5_ct_fs_smfs_ct_validate_flow_rule()
263 flow_rule_match_ipv6_addrs(flow_rule, &ipv6_addrs); in mlx5_ct_fs_smfs_ct_validate_flow_rule()
265 flow_rule_match_ports(flow_rule, &ports); in mlx5_ct_fs_smfs_ct_validate_flow_rule()
267 flow_rule_match_tcp(flow_rule, in mlx5_ct_fs_smfs_ct_validate_flow_rule()
296 mlx5_ct_fs_smfs_ct_rule_add(struct mlx5_ct_fs *fs, struct mlx5_flow_spec *spec, struct mlx5_flow_attr *attr, struct flow_rule *flow_rule) mlx5_ct_fs_smfs_ct_rule_add() argument
[all...]
H A Dct_fs.h26 struct flow_rule *flow_rule);
H A Dct_fs_dmfs.c31 struct mlx5_flow_attr *attr, struct flow_rule *flow_rule) in mlx5_ct_fs_dmfs_ct_rule_add()
30 mlx5_ct_fs_dmfs_ct_rule_add(struct mlx5_ct_fs *fs, struct mlx5_flow_spec *spec, struct mlx5_flow_attr *attr, struct flow_rule *flow_rule) mlx5_ct_fs_dmfs_ct_rule_add() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
H A Drdma.c26 struct mlx5_flow_handle *flow_rule = NULL; in mlx5_rdma_enable_roce_steering() local
90 flow_rule = mlx5_add_flow_rules(ft, spec, &flow_act, NULL, 0); in mlx5_rdma_enable_roce_steering()
91 if (IS_ERR(flow_rule)) { in mlx5_rdma_enable_roce_steering()
92 err = PTR_ERR(flow_rule); in mlx5_rdma_enable_roce_steering()
102 roce->allow_rule = flow_rule; in mlx5_rdma_enable_roce_steering()
H A Deswitch.c59 struct mlx5_flow_handle *flow_rule; member
192 struct mlx5_flow_handle *flow_rule = NULL; in __esw_fdb_set_vport_rule() local
235 flow_rule = in __esw_fdb_set_vport_rule()
238 if (IS_ERR(flow_rule)) { in __esw_fdb_set_vport_rule()
241 dmac_v, dmac_c, vport, PTR_ERR(flow_rule)); in __esw_fdb_set_vport_rule()
242 flow_rule = NULL; in __esw_fdb_set_vport_rule()
246 return flow_rule; in __esw_fdb_set_vport_rule()
528 vaddr->flow_rule = esw_fdb_set_vport_rule(esw, mac, vport); in esw_add_uc_addr()
531 vport, mac, vaddr->flow_rule); in esw_add_uc_addr()
556 if (vaddr->flow_rule) in esw_del_uc_addr()
2108 struct mlx5_flow_handle *flow_rule; _mlx5_eswitch_set_vepa_locked() local
[all...]
H A Deswitch_offloads.c774 struct mlx5_flow_handle *flow_rule; in mlx5_eswitch_add_send_to_vport_rule() local
780 flow_rule = ERR_PTR(-ENOMEM); in mlx5_eswitch_add_send_to_vport_rule()
798 flow_rule = mlx5_add_flow_rules(esw->fdb_table.offloads.slow_fdb, in mlx5_eswitch_add_send_to_vport_rule()
800 if (IS_ERR(flow_rule)) in mlx5_eswitch_add_send_to_vport_rule()
801 esw_warn(esw->dev, "FDB: Failed to add send to vport rule err %ld\n", PTR_ERR(flow_rule)); in mlx5_eswitch_add_send_to_vport_rule()
804 return flow_rule; in mlx5_eswitch_add_send_to_vport_rule()
1034 struct mlx5_flow_handle *flow_rule = NULL; in esw_add_fdb_miss_rule() local
1059 flow_rule = mlx5_add_flow_rules(esw->fdb_table.offloads.slow_fdb, in esw_add_fdb_miss_rule()
1061 if (IS_ERR(flow_rule)) { in esw_add_fdb_miss_rule()
1062 err = PTR_ERR(flow_rule); in esw_add_fdb_miss_rule()
1096 struct mlx5_flow_handle *flow_rule; esw_add_restore_rule() local
1552 struct mlx5_flow_handle *flow_rule; mlx5_eswitch_create_vport_rx_rule() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/
H A Drdma.c26 struct mlx5_flow_handle *flow_rule = NULL; in mlx5_rdma_enable_roce_steering() local
78 flow_rule = mlx5_add_flow_rules(ft, spec, &flow_act, NULL, 0); in mlx5_rdma_enable_roce_steering()
79 if (IS_ERR(flow_rule)) { in mlx5_rdma_enable_roce_steering()
80 err = PTR_ERR(flow_rule); in mlx5_rdma_enable_roce_steering()
90 roce->allow_rule = flow_rule; in mlx5_rdma_enable_roce_steering()
H A Den_rep.c408 struct mlx5_flow_handle *flow_rule; in mlx5e_sqs2vport_add_peers_rules() local
421 flow_rule = mlx5_eswitch_add_send_to_vport_rule(peer_esw, esw, in mlx5e_sqs2vport_add_peers_rules()
423 if (IS_ERR(flow_rule)) { in mlx5e_sqs2vport_add_peers_rules()
425 return PTR_ERR(flow_rule); in mlx5e_sqs2vport_add_peers_rules()
428 sq_peer->rule = flow_rule; in mlx5e_sqs2vport_add_peers_rules()
433 mlx5_eswitch_del_send_to_vport_rule(flow_rule); in mlx5e_sqs2vport_add_peers_rules()
445 struct mlx5_flow_handle *flow_rule; in mlx5e_sqs2vport_start() local
469 flow_rule = mlx5_eswitch_add_send_to_vport_rule(esw, esw, rep, in mlx5e_sqs2vport_start()
471 if (IS_ERR(flow_rule)) { in mlx5e_sqs2vport_start()
472 err = PTR_ERR(flow_rule); in mlx5e_sqs2vport_start()
578 struct mlx5_flow_handle *flow_rule; mlx5e_rep_add_meta_tunnel_rule() local
977 struct mlx5_flow_handle *flow_rule; mlx5e_create_rep_vport_rx_rule() local
1615 struct mlx5_flow_handle *flow_rule; mlx5e_vport_rep_event_pair() local
[all...]
H A Deswitch.c64 struct mlx5_flow_handle *flow_rule; member
212 struct mlx5_flow_handle *flow_rule = NULL; in __esw_fdb_set_vport_rule() local
255 flow_rule = in __esw_fdb_set_vport_rule()
258 if (IS_ERR(flow_rule)) { in __esw_fdb_set_vport_rule()
261 dmac_v, dmac_c, vport, PTR_ERR(flow_rule)); in __esw_fdb_set_vport_rule()
262 flow_rule = NULL; in __esw_fdb_set_vport_rule()
266 return flow_rule; in __esw_fdb_set_vport_rule()
330 vaddr->flow_rule = esw_fdb_set_vport_rule(esw, mac, vport); in esw_add_uc_addr()
333 vport, mac, vaddr->flow_rule); in esw_add_uc_addr()
359 if (vaddr->flow_rule) in esw_del_uc_addr()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_ct.c97 struct mlx5_flow_handle *flow_rule; member
229 mlx5_tc_ct_rule_to_tuple(struct mlx5_ct_tuple *tuple, struct flow_rule *rule) in mlx5_tc_ct_rule_to_tuple()
280 struct flow_rule *rule) in mlx5_tc_ct_rule_to_tuple_nat()
368 struct flow_rule *rule) in mlx5_tc_ct_set_tuple_match()
536 mlx5_tc_ct_get_ct_metadata_action(struct flow_rule *flow_rule) in mlx5_tc_ct_get_ct_metadata_action() argument
538 struct flow_action *flow_action = &flow_rule->action; in mlx5_tc_ct_get_ct_metadata_action()
668 struct flow_rule *flow_rule, in mlx5_tc_ct_entry_create_nat()
671 struct flow_action *flow_action = &flow_rule in mlx5_tc_ct_entry_create_nat()
667 mlx5_tc_ct_entry_create_nat(struct mlx5_tc_ct_priv *ct_priv, struct flow_rule *flow_rule, struct mlx5e_tc_mod_hdr_acts *mod_acts) mlx5_tc_ct_entry_create_nat() argument
704 mlx5_tc_ct_entry_create_mod_hdr(struct mlx5_tc_ct_priv *ct_priv, struct mlx5_flow_attr *attr, struct flow_rule *flow_rule, struct mlx5e_mod_hdr_handle **mh, u8 zone_restore_id, bool nat_table, bool has_nat) mlx5_tc_ct_entry_create_mod_hdr() argument
790 mlx5_tc_ct_entry_add_rule(struct mlx5_tc_ct_priv *ct_priv, struct flow_rule *flow_rule, struct mlx5_ct_entry *entry, bool nat, u8 zone_restore_id) mlx5_tc_ct_entry_add_rule() argument
867 mlx5_tc_ct_entry_replace_rule(struct mlx5_tc_ct_priv *ct_priv, struct flow_rule *flow_rule, struct mlx5_ct_entry *entry, bool nat, u8 zone_restore_id) mlx5_tc_ct_entry_replace_rule() argument
1086 mlx5_tc_ct_entry_add_rules(struct mlx5_tc_ct_priv *ct_priv, struct flow_rule *flow_rule, struct mlx5_ct_entry *entry, u8 zone_restore_id) mlx5_tc_ct_entry_add_rules() argument
1124 mlx5_tc_ct_entry_replace_rules(struct mlx5_tc_ct_priv *ct_priv, struct flow_rule *flow_rule, struct mlx5_ct_entry *entry, u8 zone_restore_id) mlx5_tc_ct_entry_replace_rules() argument
1144 mlx5_tc_ct_block_flow_offload_replace(struct mlx5_ct_ft *ft, struct flow_rule *flow_rule, struct mlx5_ct_entry *entry, unsigned long cookie) mlx5_tc_ct_block_flow_offload_replace() argument
1173 struct flow_rule *flow_rule = flow_cls_offload_flow_rule(flow); mlx5_tc_ct_block_flow_offload_add() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_ct.c83 struct mlx5_flow_handle *flow_rule; member
210 mlx5_tc_ct_rule_to_tuple(struct mlx5_ct_tuple *tuple, struct flow_rule *rule) in mlx5_tc_ct_rule_to_tuple()
260 struct flow_rule *rule) in mlx5_tc_ct_rule_to_tuple_nat()
322 struct flow_rule *rule) in mlx5_tc_ct_set_tuple_match()
473 mlx5_tc_ct_get_ct_metadata_action(struct flow_rule *flow_rule) in mlx5_tc_ct_get_ct_metadata_action() argument
475 struct flow_action *flow_action = &flow_rule->action; in mlx5_tc_ct_get_ct_metadata_action()
605 struct flow_rule *flow_rule, in mlx5_tc_ct_entry_create_nat()
608 struct flow_action *flow_action = &flow_rule in mlx5_tc_ct_entry_create_nat()
604 mlx5_tc_ct_entry_create_nat(struct mlx5_tc_ct_priv *ct_priv, struct flow_rule *flow_rule, struct mlx5e_tc_mod_hdr_acts *mod_acts) mlx5_tc_ct_entry_create_nat() argument
648 mlx5_tc_ct_entry_create_mod_hdr(struct mlx5_tc_ct_priv *ct_priv, struct mlx5_flow_attr *attr, struct flow_rule *flow_rule, struct mlx5e_mod_hdr_handle **mh, u8 zone_restore_id, bool nat) mlx5_tc_ct_entry_create_mod_hdr() argument
705 mlx5_tc_ct_entry_add_rule(struct mlx5_tc_ct_priv *ct_priv, struct flow_rule *flow_rule, struct mlx5_ct_entry *entry, bool nat, u8 zone_restore_id) mlx5_tc_ct_entry_add_rule() argument
942 mlx5_tc_ct_entry_add_rules(struct mlx5_tc_ct_priv *ct_priv, struct flow_rule *flow_rule, struct mlx5_ct_entry *entry, u8 zone_restore_id) mlx5_tc_ct_entry_add_rules() argument
982 struct flow_rule *flow_rule = flow_cls_offload_flow_rule(flow); mlx5_tc_ct_block_flow_offload_add() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dlegacy.c255 struct mlx5_flow_handle *flow_rule; in _mlx5_eswitch_set_vepa_locked() local
283 flow_rule = mlx5_add_flow_rules(esw->fdb_table.legacy.vepa_fdb, spec, in _mlx5_eswitch_set_vepa_locked()
285 if (IS_ERR(flow_rule)) { in _mlx5_eswitch_set_vepa_locked()
286 err = PTR_ERR(flow_rule); in _mlx5_eswitch_set_vepa_locked()
289 esw->fdb_table.legacy.vepa_uplink_rule = flow_rule; in _mlx5_eswitch_set_vepa_locked()
296 flow_rule = mlx5_add_flow_rules(esw->fdb_table.legacy.vepa_fdb, NULL, in _mlx5_eswitch_set_vepa_locked()
298 if (IS_ERR(flow_rule)) { in _mlx5_eswitch_set_vepa_locked()
299 err = PTR_ERR(flow_rule); in _mlx5_eswitch_set_vepa_locked()
302 esw->fdb_table.legacy.vepa_star_rule = flow_rule; in _mlx5_eswitch_set_vepa_locked()
/kernel/linux/linux-5.10/include/net/netfilter/
H A Dnf_flow_table.h45 struct flow_rule *rule;
58 struct nf_flow_rule *flow_rule);
259 struct nf_flow_rule *flow_rule);
262 struct nf_flow_rule *flow_rule);
/kernel/linux/linux-6.6/include/net/netfilter/
H A Dnf_flow_table.h49 struct flow_rule *rule;
63 struct nf_flow_rule *flow_rule);
330 struct nf_flow_rule *flow_rule);
333 struct nf_flow_rule *flow_rule);

Completed in 25 milliseconds

12345