Home
last modified time | relevance | path

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

123

/drivers/net/ethernet/intel/ice/
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()
Dice_tc_lib.c106 static enum ice_protocol_type ice_proto_type_from_l4_port(u16 ip_proto) in ice_proto_type_from_l4_port() argument
108 switch (ip_proto) { in ice_proto_type_from_l4_port()
316 hdr->l3_key.ip_proto == IPPROTO_UDP) { in ice_tc_fill_tunnel_outer()
568 list[i].type = ice_proto_type_from_l4_port(headers->l3_key.ip_proto); in ice_tc_fill_rules()
1109 headers->l3_key.ip_proto = IPPROTO_UDP; in ice_parse_tunnel_attr()
1269 headers->l3_key.ip_proto = match.key->ip_proto; in ice_parse_cls_flower()
1427 switch (headers->l3_key.ip_proto) { in ice_parse_cls_flower()
/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dct_fs_smfs.c259 if (basic.key->ip_proto != IPPROTO_GRE) in mlx5_ct_fs_smfs_ct_validate_flow_rule()
261 if (basic.key->ip_proto == IPPROTO_TCP) in mlx5_ct_fs_smfs_ct_validate_flow_rule()
266 basic.mask->ip_proto != 0xFF || in mlx5_ct_fs_smfs_ct_validate_flow_rule()
267 (basic.key->ip_proto != IPPROTO_UDP && basic.key->ip_proto != IPPROTO_TCP && in mlx5_ct_fs_smfs_ct_validate_flow_rule()
268 basic.key->ip_proto != IPPROTO_GRE)) { in mlx5_ct_fs_smfs_ct_validate_flow_rule()
271 basic.key->ip_proto, basic.mask->ip_proto); in mlx5_ct_fs_smfs_ct_validate_flow_rule()
275 if (basic.key->ip_proto != IPPROTO_GRE && in mlx5_ct_fs_smfs_ct_validate_flow_rule()
282 if (basic.key->ip_proto == IPPROTO_TCP && tcp.mask->flags != MLX5_CT_TCP_FLAGS_MASK) { in mlx5_ct_fs_smfs_ct_validate_flow_rule()
/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_tc.c477 u8 ip_proto = 0; in otx2_tc_prepare_flow() local
506 if (match.mask->ip_proto && in otx2_tc_prepare_flow()
507 (match.key->ip_proto != IPPROTO_TCP && in otx2_tc_prepare_flow()
508 match.key->ip_proto != IPPROTO_UDP && in otx2_tc_prepare_flow()
509 match.key->ip_proto != IPPROTO_SCTP && in otx2_tc_prepare_flow()
510 match.key->ip_proto != IPPROTO_ICMP && in otx2_tc_prepare_flow()
511 match.key->ip_proto != IPPROTO_ICMPV6)) { in otx2_tc_prepare_flow()
514 match.key->ip_proto); in otx2_tc_prepare_flow()
517 if (match.mask->ip_proto) in otx2_tc_prepare_flow()
518 ip_proto = match.key->ip_proto; in otx2_tc_prepare_flow()
[all …]
/drivers/net/ethernet/qlogic/qede/
Dqede_filter.c29 u8 ip_proto; member
389 __be16 src_port, __be16 dst_port, u8 ip_proto) in qede_arfs_htbl_key_search() argument
394 if (tpos->tuple.ip_proto == ip_proto && in qede_arfs_htbl_key_search()
440 u8 ip_proto; in qede_rx_flow_steer() local
450 ip_proto = ip_hdr(skb)->protocol; in qede_rx_flow_steer()
453 ip_proto = ipv6_hdr(skb)->nexthdr; in qede_rx_flow_steer()
457 if (ip_proto != IPPROTO_TCP && ip_proto != IPPROTO_UDP) in qede_rx_flow_steer()
466 skb, ports[0], ports[1], ip_proto); in qede_rx_flow_steer()
515 n->tuple.ip_proto = ip_proto; in qede_rx_flow_steer()
1343 if (fltr->tuple.ip_proto == IPPROTO_TCP) in qede_get_cls_rule_entry()
[all …]
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_flower.c378 u8 ip_proto) in mlxsw_sp_flower_parse_ports() argument
386 if (ip_proto != IPPROTO_TCP && ip_proto != IPPROTO_UDP) { in mlxsw_sp_flower_parse_ports()
405 u8 ip_proto) in mlxsw_sp_flower_parse_tcp() argument
413 if (ip_proto != IPPROTO_TCP) { in mlxsw_sp_flower_parse_tcp()
476 u8 ip_proto = 0; in mlxsw_sp_flower_parse() local
523 ip_proto = match.key->ip_proto; in mlxsw_sp_flower_parse()
526 match.key->ip_proto, in mlxsw_sp_flower_parse()
527 match.mask->ip_proto); in mlxsw_sp_flower_parse()
585 err = mlxsw_sp_flower_parse_ports(mlxsw_sp, rulei, f, ip_proto); in mlxsw_sp_flower_parse()
588 err = mlxsw_sp_flower_parse_tcp(mlxsw_sp, rulei, f, ip_proto); in mlxsw_sp_flower_parse()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_arfs.c67 u8 ip_proto; member
489 u8 ip_proto, __be16 etype) in arfs_get_table() argument
491 if (etype == htons(ETH_P_IP) && ip_proto == IPPROTO_TCP) in arfs_get_table()
493 if (etype == htons(ETH_P_IP) && ip_proto == IPPROTO_UDP) in arfs_get_table()
495 if (etype == htons(ETH_P_IPV6) && ip_proto == IPPROTO_TCP) in arfs_get_table()
497 if (etype == htons(ETH_P_IPV6) && ip_proto == IPPROTO_UDP) in arfs_get_table()
526 arfs_table = arfs_get_table(arfs, tuple->ip_proto, tuple->etype); in arfs_add_rule()
533 if (tuple->ip_proto == IPPROTO_TCP) { in arfs_add_rule()
592 tuple->ip_proto, err); in arfs_add_rule()
668 tuple->ip_proto = fk->basic.ip_proto; in arfs_alloc_rule()
[all …]
/drivers/net/ethernet/sfc/
Dfilter.h172 u8 ip_proto; member
221 spec->ip_proto = proto; in efx_filter_set_ipv4_local()
242 spec->ip_proto = proto; in efx_filter_set_ipv6_local()
267 spec->ip_proto = proto; in efx_filter_set_ipv4_full()
Dethtool_common.c711 (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) && in efx_ethtool_get_class_rule()
717 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule()
738 (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) && in efx_ethtool_get_class_rule()
744 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule()
796 uip_entry->proto = spec.ip_proto; in efx_ethtool_get_class_rule()
815 uip6_entry->l4_proto = spec.ip_proto; in efx_ethtool_get_class_rule()
1005 spec.ip_proto = flow_type == TCP_V4_FLOW ? IPPROTO_TCP in efx_ethtool_set_class_rule()
1040 spec.ip_proto = flow_type == TCP_V6_FLOW ? IPPROTO_TCP in efx_ethtool_set_class_rule()
1092 spec.ip_proto = uip_entry->proto; in efx_ethtool_set_class_rule()
1117 spec.ip_proto = uip6_entry->l4_proto; in efx_ethtool_set_class_rule()
Drx_common.c900 (req->spec.ip_proto == IPPROTO_TCP) ? "TCP" : "UDP", in efx_filter_rfs_work()
907 (req->spec.ip_proto == IPPROTO_TCP) ? "TCP" : "UDP", in efx_filter_rfs_work()
916 (req->spec.ip_proto == IPPROTO_TCP) ? "TCP" : "UDP", in efx_filter_rfs_work()
923 (req->spec.ip_proto == IPPROTO_TCP) ? "TCP" : "UDP", in efx_filter_rfs_work()
986 req->spec.ip_proto = fk.basic.ip_proto; in efx_filter_rfs()
/drivers/net/ethernet/sfc/falcon/
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()
Dethtool.c821 (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) && in ef4_ethtool_get_class_rule()
827 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in ef4_ethtool_get_class_rule()
848 (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) && in ef4_ethtool_get_class_rule()
854 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in ef4_ethtool_get_class_rule()
906 uip_entry->proto = spec.ip_proto; in ef4_ethtool_get_class_rule()
925 uip6_entry->l4_proto = spec.ip_proto; in ef4_ethtool_get_class_rule()
1070 spec.ip_proto = ((rule->flow_type & ~FLOW_EXT) == TCP_V4_FLOW ? in ef4_ethtool_set_class_rule()
1105 spec.ip_proto = ((rule->flow_type & ~FLOW_EXT) == TCP_V6_FLOW ? in ef4_ethtool_set_class_rule()
1157 spec.ip_proto = uip_entry->proto; in ef4_ethtool_set_class_rule()
1182 spec.ip_proto = uip6_entry->l4_proto; in ef4_ethtool_set_class_rule()
/drivers/net/ethernet/cisco/enic/
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()
/drivers/net/ethernet/sfc/siena/
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()
Dethtool_common.c674 (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) && in efx_ethtool_get_class_rule()
680 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule()
701 (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) && in efx_ethtool_get_class_rule()
707 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule()
759 uip_entry->proto = spec.ip_proto; in efx_ethtool_get_class_rule()
778 uip6_entry->l4_proto = spec.ip_proto; in efx_ethtool_get_class_rule()
969 spec.ip_proto = flow_type == TCP_V4_FLOW ? IPPROTO_TCP in efx_ethtool_set_class_rule()
1004 spec.ip_proto = flow_type == TCP_V6_FLOW ? IPPROTO_TCP in efx_ethtool_set_class_rule()
1056 spec.ip_proto = uip_entry->proto; in efx_ethtool_set_class_rule()
1081 spec.ip_proto = uip6_entry->l4_proto; in efx_ethtool_set_class_rule()
Drx_common.c908 (req->spec.ip_proto == IPPROTO_TCP) ? "TCP" : "UDP", in efx_filter_rfs_work()
915 (req->spec.ip_proto == IPPROTO_TCP) ? "TCP" : "UDP", in efx_filter_rfs_work()
924 (req->spec.ip_proto == IPPROTO_TCP) ? "TCP" : "UDP", in efx_filter_rfs_work()
931 (req->spec.ip_proto == IPPROTO_TCP) ? "TCP" : "UDP", in efx_filter_rfs_work()
995 req->spec.ip_proto = fk.basic.ip_proto; in efx_siena_filter_rfs()
/drivers/net/ethernet/marvell/prestera/
Dprestera_flower.c195 u8 ip_proto = 0; in prestera_flower_parse() local
243 rule_match_set(r_match->key, IP_PROTO, match.key->ip_proto); in prestera_flower_parse()
244 rule_match_set(r_match->mask, IP_PROTO, match.mask->ip_proto); in prestera_flower_parse()
245 ip_proto = match.key->ip_proto; in prestera_flower_parse()
291 if (ip_proto != IPPROTO_TCP && ip_proto != IPPROTO_UDP) { in prestera_flower_parse()
/drivers/net/ethernet/netronome/nfp/flower/
Daction.c766 static u32 nfp_fl_csum_l4_to_flag(u8 ip_proto) in nfp_fl_csum_l4_to_flag() argument
768 switch (ip_proto) { in nfp_fl_csum_l4_to_flag()
799 u8 ip_proto = 0; in nfp_fl_commit_mangle() local
805 ip_proto = match.key->ip_proto; in nfp_fl_commit_mangle()
822 nfp_fl_csum_l4_to_flag(ip_proto); in nfp_fl_commit_mangle()
833 nfp_fl_csum_l4_to_flag(ip_proto); in nfp_fl_commit_mangle()
843 *csum_updated |= nfp_fl_csum_l4_to_flag(ip_proto); in nfp_fl_commit_mangle()
862 *csum_updated |= nfp_fl_csum_l4_to_flag(ip_proto); in nfp_fl_commit_mangle()
870 *csum_updated |= nfp_fl_csum_l4_to_flag(ip_proto); in nfp_fl_commit_mangle()
878 *csum_updated |= nfp_fl_csum_l4_to_flag(ip_proto); in nfp_fl_commit_mangle()
[all …]
Dconntrack.c231 u8 ip_proto = 0; in nfp_ct_merge_check() local
270 ip_proto = match1.key->ip_proto; in nfp_ct_merge_check()
333 if (ip_proto == IPPROTO_UDP) in nfp_ct_merge_check()
335 else if (ip_proto == IPPROTO_TCP) in nfp_ct_merge_check()
658 static void nfp_fl_get_csum_flag(struct flow_action_entry *a_in, u8 ip_proto, u32 *csum) in nfp_fl_get_csum_flag() argument
666 if (ip_proto == IPPROTO_TCP) in nfp_fl_get_csum_flag()
668 else if (ip_proto == IPPROTO_UDP) in nfp_fl_get_csum_flag()
714 u8 ip_proto = 0; in nfp_fl_merge_actions_offload() local
727 if (match.mask->ip_proto) { in nfp_fl_merge_actions_offload()
729 ip_proto = match.key->ip_proto; in nfp_fl_merge_actions_offload()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_ct.c122 u8 ip_proto; member
243 tuple->ip_proto = basic.key->ip_proto; in mlx5_tc_ct_rule_to_tuple()
266 switch (tuple->ip_proto) { in mlx5_tc_ct_rule_to_tuple()
276 if (tuple->ip_proto != IPPROTO_GRE) in mlx5_tc_ct_rule_to_tuple()
380 u8 ip_proto = 0; in mlx5_tc_ct_set_tuple_match() local
389 match.mask->ip_proto); in mlx5_tc_ct_set_tuple_match()
391 match.key->ip_proto); in mlx5_tc_ct_set_tuple_match()
393 ip_proto = match.key->ip_proto; in mlx5_tc_ct_set_tuple_match()
444 switch (ip_proto) { in mlx5_tc_ct_set_tuple_match()
837 if (entry->tuple.ip_proto == IPPROTO_TCP || in mlx5_tc_ct_entry_add_rule()
[all …]
Dtc_tun_gre.c28 __u8 *ip_proto, in mlx5e_gen_ip_tunnel_header_gretap() argument
36 *ip_proto = IPPROTO_GRE; in mlx5e_gen_ip_tunnel_header_gretap()
Dtc_tun_mplsoudp.c29 __u8 *ip_proto, in generate_ip_tun_hdr() argument
38 *ip_proto = IPPROTO_UDP; in generate_ip_tun_hdr()
Dtc_tun_vxlan.c83 __u8 *ip_proto, in mlx5e_gen_ip_tunnel_header_vxlan() argument
94 *ip_proto = IPPROTO_UDP; in mlx5e_gen_ip_tunnel_header_vxlan()
/drivers/net/dsa/
Dbcm_sf2_cfp.c359 u8 ip_proto, ip_frag; in bcm_sf2_cfp_ipv4_rule_set() local
366 ip_proto = IPPROTO_TCP; in bcm_sf2_cfp_ipv4_rule_set()
369 ip_proto = IPPROTO_UDP; in bcm_sf2_cfp_ipv4_rule_set()
436 ip_proto << IPPROTO_SHIFT | ip_frag << IP_FRAG_SHIFT | in bcm_sf2_cfp_ipv4_rule_set()
639 u8 ip_proto, ip_frag; in bcm_sf2_cfp_ipv6_rule_set() local
646 ip_proto = IPPROTO_TCP; in bcm_sf2_cfp_ipv6_rule_set()
649 ip_proto = IPPROTO_UDP; in bcm_sf2_cfp_ipv6_rule_set()
734 reg = 1 << L3_FRAMING_SHIFT | ip_proto << IPPROTO_SHIFT | in bcm_sf2_cfp_ipv6_rule_set()
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.c392 flow->l4_key.ip_proto = match.key->ip_proto; in bnxt_tc_parse_flow()
393 flow->l4_mask.ip_proto = match.mask->ip_proto; in bnxt_tc_parse_flow()
683 req->ip_proto = flow->l4_key.ip_proto; in bnxt_hwrm_cfa_flow_alloc()
1045 (flow->l4_key.ip_proto != IPPROTO_TCP && in bnxt_tc_can_offload()
1046 flow->l4_key.ip_proto != IPPROTO_UDP)) { in bnxt_tc_can_offload()
1048 flow->l4_key.ip_proto); in bnxt_tc_can_offload()

123