Home
last modified time | relevance | path

Searched full:gre (Results 1 – 25 of 296) sorted by relevance

12345678910>>...12

/kernel/linux/linux-6.6/net/netfilter/
Dnf_conntrack_proto_gre.c3 * Connection tracking protocol helper module for GRE.
5 * GRE is a generic encapsulation protocol, which is generally not very
11 * GRE is defined in RFC 1701 and RFC 1702, as well as RFC 2784
13 * PPTP is built on top of a modified version of GRE, and has a mandatory
15 * field in plain GRE.
55 return &net->ct.nf_ct_proto.gre; in gre_pernet()
77 key = km->tuple.src.u.gre.key; in gre_keymap_lookup()
150 /* gre hdr info to tuple */
160 /* first only delinearize old RFC1701 GRE header */ in gre_pkt_to_tuple()
175 pr_debug("Unsupported GRE proto(0x%x)\n", ntohs(grehdr->protocol)); in gre_pkt_to_tuple()
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dnf_conntrack_proto_gre.c3 * Connection tracking protocol helper module for GRE.
5 * GRE is a generic encapsulation protocol, which is generally not very
11 * GRE is defined in RFC 1701 and RFC 1702, as well as RFC 2784
13 * PPTP is built on top of a modified version of GRE, and has a mandatory
15 * field in plain GRE.
55 return &net->ct.nf_ct_proto.gre; in gre_pernet()
90 key = km->tuple.src.u.gre.key; in gre_keymap_lookup()
163 /* gre hdr info to tuple */
173 /* first only delinearize old RFC1701 GRE header */ in gre_pkt_to_tuple()
188 pr_debug("Unsupported GRE proto(0x%x)\n", ntohs(grehdr->protocol)); in gre_pkt_to_tuple()
[all …]
/kernel/linux/linux-5.10/arch/x86/kernel/apic/
Dx2apic_uv_x.c602 struct uv_gam_range_entry *gre = uv_gre_table; in build_uv_gr_table() local
607 if (!gre) in build_uv_gr_table()
615 for (; gre->type != UV_GAM_RANGE_TYPE_UNUSED; gre++) { in build_uv_gr_table()
616 if (gre->type == UV_GAM_RANGE_TYPE_HOLE) { in build_uv_gr_table()
620 last_limit = gre->limit; in build_uv_gr_table()
624 last_limit = gre->limit; in build_uv_gr_table()
625 pr_info("UV: extra hole in GAM RE table @%d\n", (int)(gre - uv_gre_table)); in build_uv_gr_table()
628 if (_max_socket < gre->sockid) { in build_uv_gr_table()
629 …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()
632 sid = gre->sockid - _min_socket; in build_uv_gr_table()
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/
Dipip_flat_gre.sh4 # Test IP-in-IP GRE tunnel without key.
29 sw1_flat_create gre $ol1 $ul1
30 sw2_flat_create gre $ol2 $ul2
37 ping_test $h1 192.0.2.18 " gre flat"
42 test_mtu_change gre
Dipip_hier_gre.sh4 # Test IP-in-IP GRE tunnels without key.
29 sw1_hierarchical_create gre $ol1 $ul1
30 sw2_hierarchical_create gre $ol2 $ul2
37 ping_test $h1 192.0.2.18 " gre hierarchical"
42 test_mtu_change gre
Dipip_flat_gre_key.sh4 # Test IP-in-IP GRE tunnel with key.
29 sw1_flat_create gre $ol1 $ul1 key 233
30 sw2_flat_create gre $ol2 $ul2 key 233
37 ping_test $h1 192.0.2.18 " gre flat with key"
42 test_mtu_change gre
Dipip_hier_gre_key.sh4 # Test IP-in-IP GRE tunnels without key.
29 sw1_hierarchical_create gre $ol1 $ul1 key 22
30 sw2_hierarchical_create gre $ol2 $ul2 key 22
37 ping_test $h1 192.0.2.18 " gre hierarchical with key"
42 test_mtu_change gre
Dipip_flat_gre_keys.sh4 # Test IP-in-IP GRE tunnel with key.
29 sw1_flat_create gre $ol1 $ul1 ikey 111 okey 222
30 sw2_flat_create gre $ol2 $ul2 ikey 222 okey 111
37 ping_test $h1 192.0.2.18 " gre flat with ikey/okey"
42 test_mtu_change gre
Dipip_hier_gre_keys.sh4 # Test IP-in-IP GRE tunnels without key.
29 sw1_hierarchical_create gre $ol1 $ul1 ikey 111 okey 222
30 sw2_hierarchical_create gre $ol2 $ul2 ikey 222 okey 111
37 ping_test $h1 192.0.2.18 " gre hierarchical with ikey/okey"
42 test_mtu_change gre
Dip6gre_hier.sh4 # Test IP-in-IP GRE tunnels without key.
38 test_traffic_ip4ip6 "GRE hierarchical IPv4-in-IPv6"
39 test_traffic_ip6ip6 "GRE hierarchical IPv6-in-IPv6"
44 test_mtu_change gre
Dip6gre_hier_keys.sh4 # Test IP-in-IP GRE tunnels without key.
38 test_traffic_ip4ip6 "GRE hierarchical IPv4-in-IPv6 with ikey/okey"
39 test_traffic_ip6ip6 "GRE hierarchical IPv6-in-IPv6 with ikey/okey"
44 test_mtu_change gre
Dip6gre_hier_key.sh4 # Test IP-in-IP GRE tunnels without key.
38 test_traffic_ip4ip6 "GRE hierarchical IPv4-in-IPv6 with key"
39 test_traffic_ip6ip6 "GRE hierarchical IPv6-in-IPv6 with key"
44 test_mtu_change gre
Dip6gre_flat_keys.sh4 # Test IP-in-IP GRE tunnel with keys.
38 test_traffic_ip4ip6 "GRE flat IPv4-in-IPv6 with ikey/okey"
39 test_traffic_ip6ip6 "GRE flat IPv6-in-IPv6 with ikey/okey"
44 test_mtu_change gre
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
Dipip_hier_gre_key.sh4 # Test IP-in-IP GRE tunnels without key.
29 sw1_hierarchical_create gre $ol1 $ul1 key 22
30 sw2_hierarchical_create gre $ol2 $ul2 key 22
37 ping_test $h1 192.0.2.18 " gre hierarchical with key"
42 test_mtu_change gre
Dipip_hier_gre.sh4 # Test IP-in-IP GRE tunnels without key.
29 sw1_hierarchical_create gre $ol1 $ul1
30 sw2_hierarchical_create gre $ol2 $ul2
37 ping_test $h1 192.0.2.18 " gre hierarchical"
42 test_mtu_change gre
Dipip_flat_gre_key.sh4 # Test IP-in-IP GRE tunnel with key.
29 sw1_flat_create gre $ol1 $ul1 key 233
30 sw2_flat_create gre $ol2 $ul2 key 233
37 ping_test $h1 192.0.2.18 " gre flat with key"
42 test_mtu_change gre
Dipip_flat_gre.sh4 # Test IP-in-IP GRE tunnel without key.
29 sw1_flat_create gre $ol1 $ul1
30 sw2_flat_create gre $ol2 $ul2
37 ping_test $h1 192.0.2.18 " gre flat"
42 test_mtu_change gre
Dipip_hier_gre_keys.sh4 # Test IP-in-IP GRE tunnels without key.
29 sw1_hierarchical_create gre $ol1 $ul1 ikey 111 okey 222
30 sw2_hierarchical_create gre $ol2 $ul2 ikey 222 okey 111
37 ping_test $h1 192.0.2.18 " gre hierarchical with ikey/okey"
42 test_mtu_change gre
Dipip_flat_gre_keys.sh4 # Test IP-in-IP GRE tunnel with key.
29 sw1_flat_create gre $ol1 $ul1 ikey 111 okey 222
30 sw2_flat_create gre $ol2 $ul2 ikey 222 okey 111
37 ping_test $h1 192.0.2.18 " gre flat with ikey/okey"
42 test_mtu_change gre
/kernel/linux/linux-6.6/arch/x86/kernel/apic/
Dx2apic_uv_x.c611 struct uv_gam_range_entry *gre = uv_gre_table; in build_uv_gr_table() local
616 if (!gre) in build_uv_gr_table()
625 for (; gre->type != UV_GAM_RANGE_TYPE_UNUSED; gre++) { in build_uv_gr_table()
626 if (gre->type == UV_GAM_RANGE_TYPE_HOLE) { in build_uv_gr_table()
630 last_limit = gre->limit; in build_uv_gr_table()
634 last_limit = gre->limit; in build_uv_gr_table()
635 pr_info("UV: extra hole in GAM RE table @%d\n", (int)(gre - uv_gre_table)); in build_uv_gr_table()
638 if (_max_socket < gre->sockid) { in build_uv_gr_table()
639 …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()
642 sid = gre->sockid - _min_socket; in build_uv_gr_table()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dbpf_flow.c156 struct gre_hdr *gre, _gre; in parse_ip_proto() local
180 gre = bpf_flow_dissect_get_header(skb, sizeof(*gre), &_gre); in parse_ip_proto()
181 if (!gre) in parse_ip_proto()
184 if (bpf_htons(gre->flags & GRE_VERSION)) in parse_ip_proto()
185 /* Only inspect standard GRE packets with version 0 */ in parse_ip_proto()
188 keys->thoff += sizeof(*gre); /* Step over GRE Flags and Proto */ in parse_ip_proto()
189 if (GRE_IS_CSUM(gre->flags)) in parse_ip_proto()
191 if (GRE_IS_KEY(gre->flags)) in parse_ip_proto()
193 if (GRE_IS_SEQ(gre->flags)) in parse_ip_proto()
200 if (gre->proto == bpf_htons(ETH_P_TEB)) { in parse_ip_proto()
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
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()
199 /* Only inspect standard GRE packets with version 0 */ 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()
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dct_fs_smfs.c48 bool gre) in mlx5_ct_fs_smfs_fill_mask() argument
81 } else if (!gre) { in mlx5_ct_fs_smfs_fill_mask()
91 bool tcp, bool gre, u32 priority) in mlx5_ct_fs_smfs_matcher_create() argument
100 mlx5_ct_fs_smfs_fill_mask(fs, spec, ipv4, tcp, gre); in mlx5_ct_fs_smfs_matcher_create()
112 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
123 smfs_matcher = &matchers->smfs_matchers[ipv4 * 3 + tcp * 2 + gre]; in mlx5_ct_fs_smfs_matcher_get()
149 dr_matcher = mlx5_ct_fs_smfs_matcher_create(fs, tbl, ipv4, tcp, gre, prio); in mlx5_ct_fs_smfs_matcher_get()
152 "ct_fs_smfs: failed to create matcher (nat %d, ipv4 %d, tcp %d, gre %d), err: %ld\n", in mlx5_ct_fs_smfs_matcher_get()
153 nat, ipv4, tcp, gre, PTR_ERR(dr_matcher)); in mlx5_ct_fs_smfs_matcher_get()
305 bool nat, tcp, ipv4, gre; in mlx5_ct_fs_smfs_ct_rule_add() local
[all …]
/kernel/linux/linux-6.6/net/ipv4/netfilter/
Dnf_nat_pptp.c10 * GRE is defined in RFC 1701 and RFC 1702. Documentation of
68 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()
[all …]
/kernel/linux/linux-5.10/net/ipv4/netfilter/
Dnf_nat_pptp.c10 * GRE is defined in RFC 1701 and RFC 1702. Documentation of
68 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()
[all …]

12345678910>>...12