Home
last modified time | relevance | path

Searched refs:gre (Results 1 – 25 of 45) sorted by relevance

12

/linux/arch/x86/kernel/apic/
H A Dx2apic_uv_x.c577 struct uv_gam_range_entry *gre = uv_gre_table; in build_uv_gr_table() local
582 if (!gre) in build_uv_gr_table()
591 for (; gre->type != UV_GAM_RANGE_TYPE_UNUSED; gre++) { in build_uv_gr_table()
592 if (gre->type == UV_GAM_RANGE_TYPE_HOLE) { in build_uv_gr_table()
596 last_limit = gre->limit; in build_uv_gr_table()
600 last_limit = gre->limit; in build_uv_gr_table()
601 pr_info("UV: extra hole in GAM RE table @%d\n", (int)(gre - uv_gre_table)); in build_uv_gr_table()
604 if (_max_socket < gre->sockid) { in build_uv_gr_table()
605 …pr_err("UV: GAM table sockid(%d) too large(>%d) @%d\n", gre->sockid, _max_socket, (int)(gre - uv_g… in build_uv_gr_table()
608 sid = gre->sockid - _min_socket; in build_uv_gr_table()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dct_fs_hmfs.c40 static u32 get_matcher_idx(bool ipv4, bool tcp, bool gre) in get_matcher_idx() argument
42 return ipv4 * 3 + tcp * 2 + gre; in get_matcher_idx()
94 struct mlx5_flow_spec *spec, bool ipv4, bool tcp, bool gre) in mlx5_ct_fs_hmfs_matcher_create() argument
101 u32 priority = get_matcher_idx(ipv4, tcp, gre); /* Static priority based on params. */ in mlx5_ct_fs_hmfs_matcher_create()
113 bool nat, bool ipv4, bool tcp, bool gre) in mlx5_ct_fs_hmfs_matcher_get() argument
116 u32 matcher_idx = get_matcher_idx(ipv4, tcp, gre); in mlx5_ct_fs_hmfs_matcher_get()
136 hws_bwc_matcher = mlx5_ct_fs_hmfs_matcher_create(fs, tbl, spec, ipv4, tcp, gre); in mlx5_ct_fs_hmfs_matcher_get()
140 nat, ipv4, tcp, gre, hws_bwc_matcher); in mlx5_ct_fs_hmfs_matcher_get()
200 bool nat, tcp, ipv4, gre; in mlx5_ct_fs_hmfs_ct_rule_add() local
214 gre = MLX5_GET(fte_match_param, spec->match_value, in mlx5_ct_fs_hmfs_ct_rule_add()
[all …]
H A Dct_fs_smfs.c47 bool gre) in mlx5_ct_fs_smfs_fill_mask() argument
80 } else if (!gre) { in mlx5_ct_fs_smfs_fill_mask()
90 bool tcp, bool gre, u32 priority) in mlx5_ct_fs_smfs_matcher_create() argument
99 mlx5_ct_fs_smfs_fill_mask(fs, spec, ipv4, tcp, gre); in mlx5_ct_fs_smfs_matcher_create()
111 mlx5_ct_fs_smfs_matcher_get(struct mlx5_ct_fs *fs, bool nat, bool ipv4, bool tcp, bool gre) in mlx5_ct_fs_smfs_matcher_get() argument
122 smfs_matcher = &matchers->smfs_matchers[ipv4 * 3 + tcp * 2 + gre]; in mlx5_ct_fs_smfs_matcher_get()
148 dr_matcher = mlx5_ct_fs_smfs_matcher_create(fs, tbl, ipv4, tcp, gre, prio); in mlx5_ct_fs_smfs_matcher_get()
152 nat, ipv4, tcp, gre, dr_matcher); in mlx5_ct_fs_smfs_matcher_get()
232 bool nat, tcp, ipv4, gre; in mlx5_ct_fs_smfs_ct_rule_add() local
255 gre = MLX5_GET(fte_match_param, spec->match_value, in mlx5_ct_fs_smfs_ct_rule_add()
[all …]
/linux/net/netfilter/
H A Dnf_conntrack_proto_gre.c57 return &net->ct.nf_ct_proto.gre; in gre_pernet()
79 key = km->tuple.src.u.gre.key; in gre_keymap_lookup()
181 tuple->dst.u.gre.key = pgrehdr->call_id; in gre_pkt_to_tuple()
183 tuple->src.u.gre.key = srckey; in gre_pkt_to_tuple()
193 (ct->proto.gre.timeout / HZ), in gre_print_conntrack()
194 (ct->proto.gre.stream_timeout / HZ)); in gre_print_conntrack()
220 ct->proto.gre.stream_timeout = timeouts[GRE_CT_REPLIED]; in nf_conntrack_gre_packet()
221 ct->proto.gre.timeout = timeouts[GRE_CT_UNREPLIED]; in nf_conntrack_gre_packet()
229 ct->proto.gre.stream_timeout); in nf_conntrack_gre_packet()
240 ct->proto.gre.timeout); in nf_conntrack_gre_packet()
H A Dnf_conntrack_pptp.c97 ct->proto.gre.timeout = PPTP_GRE_TIMEOUT; in pptp_expectfn()
98 ct->proto.gre.stream_timeout = PPTP_GRE_STREAM_TIMEOUT; in pptp_expectfn()
143 sibling->proto.gre.timeout = 0; in destroy_sibling_or_exp()
144 sibling->proto.gre.stream_timeout = 0; in destroy_sibling_or_exp()
172 t.src.u.gre.key = ct_pptp_info->pns_call_id; in pptp_destroy_siblings()
173 t.dst.u.gre.key = ct_pptp_info->pac_call_id; in pptp_destroy_siblings()
180 t.src.u.gre.key = ct_pptp_info->pac_call_id; in pptp_destroy_siblings()
181 t.dst.u.gre.key = ct_pptp_info->pns_call_id; in pptp_destroy_siblings()
/linux/net/ipv4/netfilter/
H A Dnf_nat_pptp.c68 t.src.u.gre.key = ct_pptp_info->pac_call_id; in pptp_nat_expected()
70 t.dst.u.gre.key = ct_pptp_info->pns_call_id; in pptp_nat_expected()
77 t.src.u.gre.key = nat_pptp_info->pns_call_id; in pptp_nat_expected()
79 t.dst.u.gre.key = nat_pptp_info->pac_call_id; in pptp_nat_expected()
217 expect_orig->saved_proto.gre.key = ct_pptp_info->pns_call_id; in pptp_exp_gre()
218 expect_orig->tuple.src.u.gre.key = nat_pptp_info->pns_call_id; in pptp_exp_gre()
219 expect_orig->tuple.dst.u.gre.key = ct_pptp_info->pac_call_id; in pptp_exp_gre()
223 expect_reply->saved_proto.gre.key = nat_pptp_info->pns_call_id; in pptp_exp_gre()
224 expect_reply->tuple.src.u.gre.key = nat_pptp_info->pac_call_id; in pptp_exp_gre()
225 expect_reply->tuple.dst.u.gre.key = ct_pptp_info->pns_call_id; in pptp_exp_gre()
/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_flow.c170 struct gre_hdr *gre, _gre; in parse_ip_proto() local
194 gre = bpf_flow_dissect_get_header(skb, sizeof(*gre), &_gre); in parse_ip_proto()
195 if (!gre) in parse_ip_proto()
198 if (bpf_htons(gre->flags & GRE_VERSION)) in parse_ip_proto()
202 keys->thoff += sizeof(*gre); /* Step over GRE Flags and Proto */ in parse_ip_proto()
203 if (GRE_IS_CSUM(gre->flags)) in parse_ip_proto()
205 if (GRE_IS_KEY(gre->flags)) in parse_ip_proto()
207 if (GRE_IS_SEQ(gre->flags)) in parse_ip_proto()
214 if (gre->proto == bpf_htons(ETH_P_TEB)) { in parse_ip_proto()
224 return parse_eth_proto(skb, gre->proto); in parse_ip_proto()
H A Dtest_tc_tunnel.c58 struct gre_hdr gre;
172 olen += sizeof(h_outer.l4hdr.gre); in __encap_ipv4()
173 h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); in __encap_ipv4()
174 h_outer.l4hdr.gre.flags = 0; in __encap_ipv4()
303 olen += sizeof(h_outer.l4hdr.gre); in __encap_ipv6()
304 h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); in __encap_ipv6()
305 h_outer.l4hdr.gre.flags = 0; in __encap_ipv6()
64 struct gre_hdr gre; global() member
/linux/tools/testing/selftests/net/forwarding/
H A Dipip_flat_gre.sh29 sw1_flat_create gre $ol1 $ul1
30 sw2_flat_create gre $ol2 $ul2
42 test_mtu_change gre
H A Dipip_hier_gre.sh29 sw1_hierarchical_create gre $ol1 $ul1
30 sw2_hierarchical_create gre $ol2 $ul2
42 test_mtu_change gre
H A Dipip_flat_gre_keys.sh29 sw1_flat_create gre $ol1 $ul1 ikey 111 okey 222
30 sw2_flat_create gre $ol2 $ul2 ikey 222 okey 111
42 test_mtu_change gre
H A Dipip_flat_gre_key.sh29 sw1_flat_create gre $ol1 $ul1 key 233
30 sw2_flat_create gre $ol2 $ul2 key 233
42 test_mtu_change gre
H A Dipip_hier_gre_key.sh29 sw1_hierarchical_create gre $ol1 $ul1 key 22
30 sw2_hierarchical_create gre $ol2 $ul2 key 22
42 test_mtu_change gre
H A Dipip_hier_gre_keys.sh29 sw1_hierarchical_create gre $ol1 $ul1 ikey 111 okey 222
30 sw2_hierarchical_create gre $ol2 $ul2 ikey 222 okey 111
42 test_mtu_change gre
H A Dgre_multipath.sh18 # | + g1a (gre) + g1b (gre) |
43 # | + g2a (gre) | + g2b (gre) | |
85 tunnel_create g1a gre 192.0.2.65 192.0.2.66 tos inherit dev v$ol1
89 tunnel_create g1b gre 192.0.2.81 192.0.2.82 tos inherit dev v$ol1
123 tunnel_create g2a gre 192.0.2.66 192.0.2.65 tos inherit dev v$ol2
127 tunnel_create g2b gre 192.0.2.82 192.0.2.81 tos inherit dev v$ol2
H A Dgre_multipath_nh_res.sh20 # | + g1a (gre) + g1b (gre) |
45 # | + g2a (gre) | + g2b (gre) | |
93 tunnel_create g1a gre 192.0.2.65 192.0.2.66 tos inherit dev v$ol1
97 tunnel_create g1b gre 192.0.2.81 192.0.2.82 tos inherit dev v$ol1
140 tunnel_create g2a gre 192.0.2.66 192.0.2.65 tos inherit dev v$ol2
144 tunnel_create g2b gre 192.0.2.82 192.0.2.81 tos inherit dev v$ol2
H A Dgre_multipath_nh.sh20 # | + g1a (gre) + g1b (gre) |
45 # | + g2a (gre) | + g2b (gre) | |
93 tunnel_create g1a gre 192.0.2.65 192.0.2.66 tos inherit dev v$ol1
97 tunnel_create g1b gre 192.0.2.81 192.0.2.82 tos inherit dev v$ol1
139 tunnel_create g2a gre 192.0.2.66 192.0.2.65 tos inherit dev v$ol2
143 tunnel_create g2b gre 192.0.2.82 192.0.2.81 tos inherit dev v$ol2
H A Dip6gre_hier.sh45 test_mtu_change gre
H A Dip6gre_flat_keys.sh45 test_mtu_change gre
H A Dip6gre_hier_key.sh45 test_mtu_change gre
/linux/tools/testing/selftests/drivers/net/hw/
H A Dhw_stats_l3_gre.sh37 sw1_flat_create gre $ol1 $ul1
38 sw2_flat_create gre $ol2 $ul2
/linux/tools/testing/selftests/bpf/
H A Dtest_tc_tunnel.sh
H A Dwith_tunnels.sh
/linux/include/uapi/linux/netfilter/
H A Dnf_conntrack_tuple_common.h41 } gre; member
/linux/net/openvswitch/
H A DMakefile27 obj-$(CONFIG_OPENVSWITCH_GRE) += vport-gre.o

12