/drivers/net/ethernet/intel/ice/ |
D | ice_arfs.c | 305 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()
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_tc.c | 437 u8 ip_proto = 0; in otx2_tc_prepare_flow() local 466 if (match.mask->ip_proto && in otx2_tc_prepare_flow() 467 (match.key->ip_proto != IPPROTO_TCP && in otx2_tc_prepare_flow() 468 match.key->ip_proto != IPPROTO_UDP && in otx2_tc_prepare_flow() 469 match.key->ip_proto != IPPROTO_SCTP && in otx2_tc_prepare_flow() 470 match.key->ip_proto != IPPROTO_ICMP && in otx2_tc_prepare_flow() 471 match.key->ip_proto != IPPROTO_ICMPV6)) { in otx2_tc_prepare_flow() 474 match.key->ip_proto); in otx2_tc_prepare_flow() 477 if (match.mask->ip_proto) in otx2_tc_prepare_flow() 478 ip_proto = match.key->ip_proto; in otx2_tc_prepare_flow() [all …]
|
/drivers/net/ethernet/qlogic/qede/ |
D | qede_filter.c | 29 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/ |
D | spectrum_flower.c | 333 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()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_arfs.c | 67 u8 ip_proto; member 464 u8 ip_proto, __be16 etype) in arfs_get_table() argument 466 if (etype == htons(ETH_P_IP) && ip_proto == IPPROTO_TCP) in arfs_get_table() 468 if (etype == htons(ETH_P_IP) && ip_proto == IPPROTO_UDP) in arfs_get_table() 470 if (etype == htons(ETH_P_IPV6) && ip_proto == IPPROTO_TCP) in arfs_get_table() 472 if (etype == htons(ETH_P_IPV6) && ip_proto == IPPROTO_UDP) in arfs_get_table() 501 arfs_table = arfs_get_table(arfs, tuple->ip_proto, tuple->etype); in arfs_add_rule() 508 if (tuple->ip_proto == IPPROTO_TCP) { in arfs_add_rule() 567 tuple->ip_proto, err); in arfs_add_rule() 640 tuple->ip_proto = fk->basic.ip_proto; in arfs_alloc_rule() [all …]
|
/drivers/net/ethernet/marvell/prestera/ |
D | prestera_flower.c | 96 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()
|
/drivers/net/ethernet/sfc/falcon/ |
D | filter.h | 139 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()
|
D | ethtool.c | 815 (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()
|
D | rx.c | 868 spec.ip_proto = fk.basic.ip_proto; in ef4_filter_rfs() 893 (spec.ip_proto == IPPROTO_TCP) ? "TCP" : "UDP", in ef4_filter_rfs() 899 (spec.ip_proto == IPPROTO_TCP) ? "TCP" : "UDP", in ef4_filter_rfs()
|
/drivers/net/ethernet/cisco/enic/ |
D | enic_clsf.c | 26 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/ |
D | filter.h | 166 u8 ip_proto; member 215 spec->ip_proto = proto; in efx_filter_set_ipv4_local() 240 spec->ip_proto = proto; in efx_filter_set_ipv4_full()
|
D | ethtool_common.c | 673 (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()
|
D | rx_common.c | 920 (req->spec.ip_proto == IPPROTO_TCP) ? "TCP" : "UDP", in efx_filter_rfs_work() 927 (req->spec.ip_proto == IPPROTO_TCP) ? "TCP" : "UDP", in efx_filter_rfs_work() 936 (req->spec.ip_proto == IPPROTO_TCP) ? "TCP" : "UDP", in efx_filter_rfs_work() 943 (req->spec.ip_proto == IPPROTO_TCP) ? "TCP" : "UDP", in efx_filter_rfs_work() 1006 req->spec.ip_proto = fk.basic.ip_proto; in efx_filter_rfs()
|
/drivers/net/ethernet/netronome/nfp/flower/ |
D | action.c | 763 static u32 nfp_fl_csum_l4_to_flag(u8 ip_proto) in nfp_fl_csum_l4_to_flag() argument 765 switch (ip_proto) { in nfp_fl_csum_l4_to_flag() 796 u8 ip_proto = 0; in nfp_fl_commit_mangle() local 802 ip_proto = match.key->ip_proto; in nfp_fl_commit_mangle() 819 nfp_fl_csum_l4_to_flag(ip_proto); in nfp_fl_commit_mangle() 830 nfp_fl_csum_l4_to_flag(ip_proto); in nfp_fl_commit_mangle() 840 *csum_updated |= nfp_fl_csum_l4_to_flag(ip_proto); in nfp_fl_commit_mangle() 859 *csum_updated |= nfp_fl_csum_l4_to_flag(ip_proto); in nfp_fl_commit_mangle() 867 *csum_updated |= nfp_fl_csum_l4_to_flag(ip_proto); in nfp_fl_commit_mangle() 875 *csum_updated |= nfp_fl_csum_l4_to_flag(ip_proto); in nfp_fl_commit_mangle() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_tun_gre.c | 28 __u8 *ip_proto, in mlx5e_gen_ip_tunnel_header_gretap() argument 36 *ip_proto = IPPROTO_GRE; in mlx5e_gen_ip_tunnel_header_gretap()
|
D | tc_tun_mplsoudp.c | 29 __u8 *ip_proto, in generate_ip_tun_hdr() argument 39 *ip_proto = IPPROTO_UDP; in generate_ip_tun_hdr()
|
D | tc_tun_vxlan.c | 83 __u8 *ip_proto, in mlx5e_gen_ip_tunnel_header_vxlan() argument 94 *ip_proto = IPPROTO_UDP; in mlx5e_gen_ip_tunnel_header_vxlan()
|
D | tc_ct.c | 100 u8 ip_proto; member 221 tuple->ip_proto = basic.key->ip_proto; in mlx5_tc_ct_rule_to_tuple() 244 switch (tuple->ip_proto) { in mlx5_tc_ct_rule_to_tuple() 331 u8 ip_proto = 0; in mlx5_tc_ct_set_tuple_match() local 341 match.mask->ip_proto); in mlx5_tc_ct_set_tuple_match() 343 match.key->ip_proto); in mlx5_tc_ct_set_tuple_match() 345 ip_proto = match.key->ip_proto; in mlx5_tc_ct_set_tuple_match() 396 switch (ip_proto) { in mlx5_tc_ct_set_tuple_match() 1187 if (flow_keys.basic.ip_proto != IPPROTO_TCP && in mlx5_tc_ct_skb_to_tuple() 1188 flow_keys.basic.ip_proto != IPPROTO_UDP) in mlx5_tc_ct_skb_to_tuple() [all …]
|
D | ptp.h | 67 return (fk.basic.ip_proto == IPPROTO_UDP && in mlx5e_use_ptpsq()
|
D | tc_tun.h | 40 __u8 *ip_proto,
|
D | tc_tun_geneve.c | 93 __u8 *ip_proto, in mlx5e_gen_ip_tunnel_header_geneve() argument 102 *ip_proto = IPPROTO_UDP; in mlx5e_gen_ip_tunnel_header_geneve()
|
/drivers/net/dsa/ |
D | bcm_sf2_cfp.c | 359 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/mscc/ |
D | ocelot_flower.c | 544 match.key->ip_proto; in ocelot_flower_parse_key() 546 match.mask->ip_proto; in ocelot_flower_parse_key() 558 match.key->ip_proto; in ocelot_flower_parse_key() 560 match.mask->ip_proto; in ocelot_flower_parse_key()
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_tc.c | 392 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()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | en_netdev.c | 164 u8 ip_proto; member 183 static enum mlx4_net_trans_rule_id mlx4_ip_proto_to_trans_rule_id(u8 ip_proto) in mlx4_ip_proto_to_trans_rule_id() argument 185 switch (ip_proto) { in mlx4_ip_proto_to_trans_rule_id() 205 .id = mlx4_ip_proto_to_trans_rule_id(filter->ip_proto), in mlx4_en_filter_work() 243 filter->ip_proto); in mlx4_en_filter_work() 290 __be32 dst_ip, u8 ip_proto, __be16 src_port, in mlx4_en_filter_alloc() argument 305 filter->ip_proto = ip_proto; in mlx4_en_filter_alloc() 337 u8 ip_proto, __be16 src_port, __be16 dst_port) in mlx4_en_filter_find() argument 348 filter->ip_proto == ip_proto && in mlx4_en_filter_find() 367 u8 ip_proto; in mlx4_en_filter_rfs() local [all …]
|