Home
last modified time | relevance | path

Searched refs:ip_proto (Results 1 – 25 of 108) sorted by relevance

12345

/linux/samples/bpf/
A Dsockex2_kern.c26 __u8 ip_proto; member
68 *ip_proto = 0; in parse_ip()
72 if (*ip_proto != IPPROTO_GRE) { in parse_ip()
89 *ip_proto = load_byte(skb, in parse_ipv6()
104 __u64 ip_proto; in flow_dissector() local
121 nhoff = parse_ip(skb, nhoff, &ip_proto, flow); in flow_dissector()
127 switch (ip_proto) { in flow_dissector()
159 nhoff = parse_ip(skb, nhoff, &ip_proto, flow); in flow_dissector()
167 nhoff = parse_ip(skb, nhoff, &ip_proto, flow); in flow_dissector()
176 flow->ip_proto = ip_proto; in flow_dissector()
[all …]
A Dsockex3_kern.c74 __u32 ip_proto; member
142 struct globals *g, __u32 ip_proto) in parse_ip_proto() argument
147 switch (ip_proto) { in parse_ip_proto()
184 g->flow.ip_proto = ip_proto; in parse_ip_proto()
195 __u32 nhoff, verlen, ip_proto; in PROG() local
205 ip_proto = load_byte(skb, nhoff + offsetof(struct iphdr, protocol)); in PROG()
207 if (ip_proto != IPPROTO_GRE) { in PROG()
216 parse_ip_proto(skb, g, ip_proto); in PROG()
223 __u32 nhoff, ip_proto; in PROG() local
230 ip_proto = load_byte(skb, in PROG()
[all …]
A Dxdp_redirect_cpu.bpf.c263 u8 ip_proto = IPPROTO_UDP; in xdp_prognum3_proto_separate() local
282 ip_proto = get_proto_ipv4(ctx, l3_offset); in xdp_prognum3_proto_separate()
285 ip_proto = get_proto_ipv6(ctx, l3_offset); in xdp_prognum3_proto_separate()
295 switch (ip_proto) { in xdp_prognum3_proto_separate()
329 u8 ip_proto = IPPROTO_UDP; in xdp_prognum4_ddos_filter_pktgen() local
349 ip_proto = get_proto_ipv4(ctx, l3_offset); in xdp_prognum4_ddos_filter_pktgen()
352 ip_proto = get_proto_ipv6(ctx, l3_offset); in xdp_prognum4_ddos_filter_pktgen()
362 switch (ip_proto) { in xdp_prognum4_ddos_filter_pktgen()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_tc.c403 u8 ip_proto = 0; in otx2_tc_prepare_flow() local
432 if (match.mask->ip_proto && in otx2_tc_prepare_flow()
440 match.key->ip_proto); in otx2_tc_prepare_flow()
443 if (match.mask->ip_proto) in otx2_tc_prepare_flow()
444 ip_proto = match.key->ip_proto; in otx2_tc_prepare_flow()
446 if (ip_proto == IPPROTO_UDP) in otx2_tc_prepare_flow()
448 else if (ip_proto == IPPROTO_TCP) in otx2_tc_prepare_flow()
574 if (ip_proto == IPPROTO_UDP) in otx2_tc_prepare_flow()
576 else if (ip_proto == IPPROTO_TCP) in otx2_tc_prepare_flow()
583 if (ip_proto == IPPROTO_UDP) in otx2_tc_prepare_flow()
[all …]
/linux/tools/testing/selftests/net/forwarding/
A Dtc_police.sh131 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \
157 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \
169 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \
206 dst_ip 198.51.100.1 ip_proto udp src_port 12345 \
211 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \
218 dst_ip 198.51.100.1 ip_proto udp dst_port 22222 \
240 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \
245 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \
250 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \
303 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \
[all …]
A Drouter_multicast.sh324 dst_ip 225.1.2.3 ip_proto udp dst_port 12345 action drop
326 dst_ip 225.1.2.3 ip_proto udp dst_port 12345 action drop
328 dst_ip 225.1.2.3 ip_proto udp dst_port 12345 action drop
330 skip_hw dst_ip 225.1.2.3 ip_proto udp dst_port 12345 action pass
369 dst_ip ff0e::3 ip_proto udp dst_port 12345 action drop
371 dst_ip ff0e::3 ip_proto udp dst_port 12345 action drop
373 dst_ip ff0e::3 ip_proto udp dst_port 12345 action drop
375 skip_hw dst_ip ff0e::3 ip_proto udp dst_port 12345 action pass
/linux/drivers/net/ethernet/intel/ice/
A Dice_arfs.c305 u8 ip_proto; in ice_arfs_build_entry() local
317 ip_proto = fk->basic.ip_proto; in ice_arfs_build_entry()
320 fltr_info->ip.v4.proto = ip_proto; in ice_arfs_build_entry()
321 fltr_info->flow_type = (ip_proto == IPPROTO_TCP) ? in ice_arfs_build_entry()
329 fltr_info->ip.v6.proto = ip_proto; in ice_arfs_build_entry()
330 fltr_info->flow_type = (ip_proto == IPPROTO_TCP) ? in ice_arfs_build_entry()
405 u8 ip_proto; in ice_rx_flow_steer() local
425 ip_proto = fk.basic.ip_proto; in ice_rx_flow_steer()
430 if (ip_proto != IPPROTO_TCP && ip_proto != IPPROTO_UDP) in ice_rx_flow_steer()
434 if (!ice_arfs_is_perfect_flow_set(&pf->hw, n_proto, ip_proto)) in ice_rx_flow_steer()
/linux/include/linux/
A Dvirtio_net.h53 unsigned int ip_proto; in virtio_net_hdr_to_skb() local
59 ip_proto = IPPROTO_TCP; in virtio_net_hdr_to_skb()
64 ip_proto = IPPROTO_TCP; in virtio_net_hdr_to_skb()
69 ip_proto = IPPROTO_UDP; in virtio_net_hdr_to_skb()
131 keys.basic.ip_proto != ip_proto) in virtio_net_hdr_to_skb()
/linux/tools/testing/selftests/bpf/prog_tests/
A Dflow_dissector.c35 got.ip_proto, expected.ip_proto, \
123 .ip_proto = IPPROTO_TCP,
143 .ip_proto = IPPROTO_TCP,
165 .ip_proto = IPPROTO_TCP,
188 .ip_proto = IPPROTO_TCP,
211 .ip_proto = IPPROTO_TCP,
236 .ip_proto = IPPROTO_TCP,
259 .ip_proto = IPPROTO_TCP,
284 .ip_proto = IPPROTO_TCP,
305 .ip_proto = IPPROTO_TCP,
[all …]
/linux/net/ipv4/
A Dnetlink.c10 int rtm_getroute_parse_ip_proto(struct nlattr *attr, u8 *ip_proto, u8 family, in rtm_getroute_parse_ip_proto() argument
13 *ip_proto = nla_get_u8(attr); in rtm_getroute_parse_ip_proto()
15 switch (*ip_proto) { in rtm_getroute_parse_ip_proto()
/linux/drivers/net/ethernet/qlogic/qede/
A Dqede_filter.c29 u8 ip_proto; member
394 if (tpos->tuple.ip_proto == ip_proto && in qede_arfs_htbl_key_search()
440 u8 ip_proto; in qede_rx_flow_steer() local
457 if (ip_proto != IPPROTO_TCP && ip_proto != IPPROTO_UDP) in qede_rx_flow_steer()
515 n->tuple.ip_proto = ip_proto; in qede_rx_flow_steer()
1439 ip->protocol = t->ip_proto; in qede_flow_build_ipv4_hdr()
1597 if (fltr->tuple.ip_proto == t->ip_proto && in qede_flow_find_fltr()
1783 tuple->ip_proto = IPPROTO_TCP; in qede_flow_parse_tcp_v6()
1793 tuple->ip_proto = IPPROTO_TCP; in qede_flow_parse_tcp_v4()
1825 u8 ip_proto = 0; in qede_parse_flow_attr() local
[all …]
/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_flower.c333 u8 ip_proto) in mlxsw_sp_flower_parse_ports() argument
341 if (ip_proto != IPPROTO_TCP && ip_proto != IPPROTO_UDP) { in mlxsw_sp_flower_parse_ports()
360 u8 ip_proto) in mlxsw_sp_flower_parse_tcp() argument
368 if (ip_proto != IPPROTO_TCP) { in mlxsw_sp_flower_parse_tcp()
431 u8 ip_proto = 0; in mlxsw_sp_flower_parse() local
478 ip_proto = match.key->ip_proto; in mlxsw_sp_flower_parse()
481 match.key->ip_proto, in mlxsw_sp_flower_parse()
482 match.mask->ip_proto); in mlxsw_sp_flower_parse()
539 err = mlxsw_sp_flower_parse_ports(mlxsw_sp, rulei, f, ip_proto); in mlxsw_sp_flower_parse()
542 err = mlxsw_sp_flower_parse_tcp(mlxsw_sp, rulei, f, ip_proto); in mlxsw_sp_flower_parse()
/linux/tools/testing/selftests/drivers/net/mlxsw/
A Done_armed_router.sh135 skip_hw dst_ip 198.51.100.1 ip_proto udp dst_port 52768 \
139 skip_hw dst_ip 198.51.100.1 ip_proto udp dst_port 52768 \
143 skip_sw dst_ip 198.51.100.1 ip_proto udp dst_port 52768 \
178 skip_hw dst_ip 2001:db8:2::1 ip_proto udp dst_port 52768 \
182 skip_hw dst_ip 2001:db8:2::1 ip_proto udp dst_port 52768 \
186 skip_sw dst_ip 2001:db8:2::1 ip_proto udp dst_port 52768 \
A Drif_mac_profiles.sh113 flower skip_sw ip_proto udp src_port 12345 dst_port 54321 \
119 flower skip_sw src_mac $smac ip_proto udp src_port 12345 \
148 flower skip_sw ip_proto udp src_port 54321 dst_port 12345 \
152 flower skip_sw src_mac $rp1_mac ip_proto udp src_port 54321 \
A Ddevlink_trap_l3_exceptions.sh186 flower skip_hw ip_proto icmp type 3 code 4 action pass
224 flower skip_hw ip_proto icmp type 11 code 0 action pass
284 flower dst_ip $dst_ip ip_proto udp action drop
319 local ip_proto=$1; shift
334 skip_hw ip_proto $ip_proto type $type code $code action pass
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Den_arfs.c67 u8 ip_proto; member
460 u8 ip_proto, __be16 etype) in arfs_get_table() argument
462 if (etype == htons(ETH_P_IP) && ip_proto == IPPROTO_TCP) in arfs_get_table()
464 if (etype == htons(ETH_P_IP) && ip_proto == IPPROTO_UDP) in arfs_get_table()
466 if (etype == htons(ETH_P_IPV6) && ip_proto == IPPROTO_TCP) in arfs_get_table()
468 if (etype == htons(ETH_P_IPV6) && ip_proto == IPPROTO_UDP) in arfs_get_table()
497 arfs_table = arfs_get_table(arfs, tuple->ip_proto, tuple->etype); in arfs_add_rule()
504 if (tuple->ip_proto == IPPROTO_TCP) { in arfs_add_rule()
563 tuple->ip_proto, err); in arfs_add_rule()
636 tuple->ip_proto = fk->basic.ip_proto; in arfs_alloc_rule()
[all …]
/linux/net/core/
A Dflow_dissector.c820 key_basic->ip_proto = flow_keys->ip_proto; in __skb_flow_bpf_to_target()
931 u8 ip_proto = 0; in __skb_flow_dissect() local
1052 ip_proto = iph->protocol; in __skb_flow_dissect()
1098 ip_proto = iph->nexthdr; in __skb_flow_dissect()
1308 switch (ip_proto) { in __skb_flow_dissect()
1335 ip_proto = opthdr[0]; in __skb_flow_dissect()
1358 ip_proto = fh->nexthdr; in __skb_flow_dissect()
1454 key_basic->ip_proto = ip_proto; in __skb_flow_dissect()
1596 u8 ip_proto; member
1614 data->ip_proto = flow->basic.ip_proto; in make_flow_keys_digest()
[all …]
/linux/drivers/net/ethernet/marvell/prestera/
A Dprestera_flower.c96 u8 ip_proto = 0; in prestera_flower_parse() local
152 m_entry.keymask.u8.key = match.key->ip_proto; in prestera_flower_parse()
153 m_entry.keymask.u8.mask = match.mask->ip_proto; in prestera_flower_parse()
158 ip_proto = match.key->ip_proto; in prestera_flower_parse()
218 if (ip_proto != IPPROTO_TCP && ip_proto != IPPROTO_UDP) { in prestera_flower_parse()
/linux/drivers/net/ethernet/sfc/falcon/
A Dfilter.h139 u8 ip_proto; member
188 spec->ip_proto = proto; in ef4_filter_set_ipv4_local()
213 spec->ip_proto = proto; in ef4_filter_set_ipv4_full()
A Dethtool.c815 (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) && in ef4_ethtool_get_class_rule()
821 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in ef4_ethtool_get_class_rule()
842 (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) && in ef4_ethtool_get_class_rule()
848 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in ef4_ethtool_get_class_rule()
900 uip_entry->proto = spec.ip_proto; in ef4_ethtool_get_class_rule()
919 uip6_entry->l4_proto = spec.ip_proto; in ef4_ethtool_get_class_rule()
1064 spec.ip_proto = ((rule->flow_type & ~FLOW_EXT) == TCP_V4_FLOW ? in ef4_ethtool_set_class_rule()
1099 spec.ip_proto = ((rule->flow_type & ~FLOW_EXT) == TCP_V6_FLOW ? in ef4_ethtool_set_class_rule()
1151 spec.ip_proto = uip_entry->proto; in ef4_ethtool_set_class_rule()
1176 spec.ip_proto = uip6_entry->l4_proto; in ef4_ethtool_set_class_rule()
/linux/drivers/net/ethernet/cisco/enic/
A Denic_clsf.c26 switch (keys->basic.ip_proto) { in enic_addfltr_5t()
165 tpos->keys.basic.ip_proto == k->basic.ip_proto && in htbl_key_search()
183 (keys.basic.ip_proto != IPPROTO_TCP && in enic_rx_flow_steer()
184 keys.basic.ip_proto != IPPROTO_UDP)) in enic_rx_flow_steer()
/linux/drivers/net/ethernet/sfc/
A Dfilter.h165 u8 ip_proto; member
214 spec->ip_proto = proto; in efx_filter_set_ipv4_local()
239 spec->ip_proto = proto; in efx_filter_set_ipv4_full()
A Dethtool_common.c673 (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) && in efx_ethtool_get_class_rule()
679 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule()
700 (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) && in efx_ethtool_get_class_rule()
706 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule()
758 uip_entry->proto = spec.ip_proto; in efx_ethtool_get_class_rule()
777 uip6_entry->l4_proto = spec.ip_proto; in efx_ethtool_get_class_rule()
967 spec.ip_proto = flow_type == TCP_V4_FLOW ? IPPROTO_TCP in efx_ethtool_set_class_rule()
1002 spec.ip_proto = flow_type == TCP_V6_FLOW ? IPPROTO_TCP in efx_ethtool_set_class_rule()
1054 spec.ip_proto = uip_entry->proto; in efx_ethtool_set_class_rule()
1079 spec.ip_proto = uip6_entry->l4_proto; in efx_ethtool_set_class_rule()
/linux/tools/testing/selftests/bpf/
A Dtest_flow_dissector.sh108 tc filter add dev lo parent ffff: protocol ip pref 1337 flower ip_proto \
144 tc filter add dev lo parent ffff: protocol ip pref 1337 flower ip_proto \
158 tc filter add dev lo parent ffff: protocol ipv6 pref 1337 flower ip_proto \
/linux/drivers/net/ethernet/netronome/nfp/flower/
A Daction.c764 static u32 nfp_fl_csum_l4_to_flag(u8 ip_proto) in nfp_fl_csum_l4_to_flag() argument
766 switch (ip_proto) { in nfp_fl_csum_l4_to_flag()
797 u8 ip_proto = 0; in nfp_fl_commit_mangle() local
803 ip_proto = match.key->ip_proto; in nfp_fl_commit_mangle()
820 nfp_fl_csum_l4_to_flag(ip_proto); in nfp_fl_commit_mangle()
831 nfp_fl_csum_l4_to_flag(ip_proto); in nfp_fl_commit_mangle()
841 *csum_updated |= nfp_fl_csum_l4_to_flag(ip_proto); in nfp_fl_commit_mangle()
860 *csum_updated |= nfp_fl_csum_l4_to_flag(ip_proto); in nfp_fl_commit_mangle()
868 *csum_updated |= nfp_fl_csum_l4_to_flag(ip_proto); in nfp_fl_commit_mangle()
876 *csum_updated |= nfp_fl_csum_l4_to_flag(ip_proto); in nfp_fl_commit_mangle()
[all …]

Completed in 39 milliseconds

12345