/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs_ethtool.c | 38 static int flow_type_to_traffic_type(u32 flow_type); 40 static u32 flow_type_mask(u32 flow_type) in flow_type_mask() argument 42 return flow_type & ~(FLOW_EXT | FLOW_MAC_EXT | FLOW_RSS); in flow_type_mask() 77 switch (flow_type_mask(fs->flow_type)) { in get_flow_table() 340 u32 flow_type = flow_type_mask(fs->flow_type); in set_flow_attrs() local 342 switch (flow_type) { in set_flow_attrs() 368 if ((fs->flow_type & FLOW_EXT) && in set_flow_attrs() 372 if (fs->flow_type & FLOW_MAC_EXT && in set_flow_attrs() 413 if (fs->flow_type & FLOW_RSS) { in flow_get_tirn() 416 u32 flow_type; in flow_get_tirn() local [all …]
|
/drivers/net/ethernet/intel/ice/ |
D | ice_fdir.c | 884 if (input->flow_type == ICE_FLTR_PTYPE_NONF_IPV4_OTHER) { in ice_fdir_get_gen_prgm_pkt() 899 } else if (input->flow_type == ICE_FLTR_PTYPE_NONF_IPV6_OTHER) { in ice_fdir_get_gen_prgm_pkt() 915 flow = input->flow_type; in ice_fdir_get_gen_prgm_pkt() 1224 enum ice_fltr_ptype flow_type = a->flow_type; in ice_fdir_comp_rules() local 1230 if (flow_type == ICE_FLTR_PTYPE_NONF_IPV4_TCP || in ice_fdir_comp_rules() 1231 flow_type == ICE_FLTR_PTYPE_NONF_IPV4_UDP || in ice_fdir_comp_rules() 1232 flow_type == ICE_FLTR_PTYPE_NONF_IPV4_SCTP) { in ice_fdir_comp_rules() 1238 } else if (flow_type == ICE_FLTR_PTYPE_NONF_IPV4_OTHER) { in ice_fdir_comp_rules() 1248 if (flow_type == ICE_FLTR_PTYPE_NONF_IPV6_UDP || in ice_fdir_comp_rules() 1249 flow_type == ICE_FLTR_PTYPE_NONF_IPV6_TCP || in ice_fdir_comp_rules() [all …]
|
D | ice_ethtool_fdir.c | 133 fsp->flow_type = ice_fltr_to_ethtool_flow(rule->flow_type); in ice_get_ethtool_fdir_entry() 138 switch (fsp->flow_type) { in ice_get_ethtool_fdir_entry() 210 idx = ice_ethtool_flow_to_fltr(fsp->flow_type); in ice_get_ethtool_fdir_entry() 213 rule->flow_type); in ice_get_ethtool_fdir_entry() 316 enum ice_fltr_ptype flow_type) in ice_fdir_rem_flow() argument 318 int flow = (int)flow_type & ~FLOW_EXT; in ice_fdir_rem_flow() 412 if (!(fsp->flow_type & FLOW_EXT)) in ice_parse_rx_flow_user_data() 1078 switch (fsp->flow_type & ~FLOW_EXT) { in ice_cfg_fdir_xtrct_seq() 1138 fltr_idx = ice_ethtool_flow_to_fltr(fsp->flow_type & ~FLOW_EXT); in ice_cfg_fdir_xtrct_seq() 1222 has_frag = ice_fdir_has_frag(input->flow_type); in ice_fdir_write_fltr() [all …]
|
D | ice_arfs.c | 24 ice_is_arfs_using_perfect_flow(struct ice_hw *hw, enum ice_fltr_ptype flow_type) in ice_is_arfs_using_perfect_flow() argument 38 switch (flow_type) { in ice_is_arfs_using_perfect_flow() 64 switch (entry->fltr_info.flow_type) { in ice_arfs_update_active_fltr_cntrs() 91 entry->fltr_info.flow_type); in ice_arfs_update_active_fltr_cntrs() 190 if (arfs_entry->fltr_info.flow_type != ICE_FLTR_PTYPE_NONF_IPV4_UDP && in ice_arfs_is_flow_expired() 191 arfs_entry->fltr_info.flow_type != ICE_FLTR_PTYPE_NONF_IPV6_UDP) in ice_arfs_is_flow_expired() 228 enum ice_fltr_ptype flow_type = e->fltr_info.flow_type; in ice_arfs_update_flow_rules() local 240 if (flow_type == ICE_FLTR_PTYPE_NONF_IPV4_UDP || in ice_arfs_update_flow_rules() 241 flow_type == ICE_FLTR_PTYPE_NONF_IPV6_UDP) in ice_arfs_update_flow_rules() 321 fltr_info->flow_type = (ip_proto == IPPROTO_TCP) ? in ice_arfs_build_entry() [all …]
|
D | ice_virtchnl_fdir.c | 528 enum ice_fltr_ptype flow = conf->input.flow_type; in ice_vc_fdir_set_flow_hdr() 772 flow_type_a = a->flow_type; in ice_vc_fdir_has_prof_conflict() 773 flow_type_b = b->flow_type; in ice_vc_fdir_has_prof_conflict() 962 flow = input->flow_type; in ice_vc_fdir_config_input_set() 1121 input->flow_type = ICE_FLTR_PTYPE_NON_IP_L2; in ice_vc_fdir_parse_pattern() 1129 input->flow_type = ICE_FLTR_PTYPE_NONF_IPV4_OTHER; in ice_vc_fdir_parse_pattern() 1141 input->flow_type = ICE_FLTR_PTYPE_NONF_IPV6_OTHER; in ice_vc_fdir_parse_pattern() 1158 input->flow_type = ICE_FLTR_PTYPE_NONF_IPV4_TCP; in ice_vc_fdir_parse_pattern() 1160 input->flow_type = ICE_FLTR_PTYPE_NONF_IPV6_TCP; in ice_vc_fdir_parse_pattern() 1175 input->flow_type = ICE_FLTR_PTYPE_NONF_IPV4_UDP; in ice_vc_fdir_parse_pattern() [all …]
|
D | ice_arfs.h | 53 enum ice_fltr_ptype flow_type); 77 enum ice_fltr_ptype __always_unused flow_type) in ice_is_arfs_using_perfect_flow() argument
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_flows.c | 488 u32 flow_type) in otx2_prepare_ipv4_flow() argument 499 switch (flow_type) { in otx2_prepare_ipv4_flow() 578 if (flow_type == UDP_V4_FLOW) in otx2_prepare_ipv4_flow() 580 else if (flow_type == TCP_V4_FLOW) in otx2_prepare_ipv4_flow() 590 if (flow_type == UDP_V4_FLOW) in otx2_prepare_ipv4_flow() 592 else if (flow_type == TCP_V4_FLOW) in otx2_prepare_ipv4_flow() 597 if (flow_type == UDP_V4_FLOW) in otx2_prepare_ipv4_flow() 599 else if (flow_type == TCP_V4_FLOW) in otx2_prepare_ipv4_flow() 633 if (flow_type == AH_V4_FLOW) in otx2_prepare_ipv4_flow() 647 u32 flow_type) in otx2_prepare_ipv6_flow() argument [all …]
|
/drivers/irqchip/ |
D | irq-tb10x.c | 42 static int tb10x_irq_set_type(struct irq_data *data, unsigned int flow_type) in tb10x_irq_set_type() argument 54 switch (flow_type & IRQF_TRIGGER_MASK) { in tb10x_irq_set_type() 62 flow_type = IRQ_TYPE_LEVEL_LOW; in tb10x_irq_set_type() 77 irqd_set_trigger_type(data, flow_type); in tb10x_irq_set_type() 78 irq_setup_alt_chip(data, flow_type); in tb10x_irq_set_type()
|
D | irq-sunxi-nmi.c | 97 static int sunxi_sc_nmi_set_type(struct irq_data *data, unsigned int flow_type) in sunxi_sc_nmi_set_type() argument 108 switch (flow_type & IRQF_TRIGGER_MASK) { in sunxi_sc_nmi_set_type() 129 irqd_set_trigger_type(data, flow_type); in sunxi_sc_nmi_set_type() 130 irq_setup_alt_chip(data, flow_type); in sunxi_sc_nmi_set_type() 133 if (ct->type & flow_type) in sunxi_sc_nmi_set_type()
|
D | irq-al-fic.c | 64 static int al_fic_irq_set_type(struct irq_data *data, unsigned int flow_type) in al_fic_irq_set_type() argument 73 if (((flow_type & IRQ_TYPE_SENSE_MASK) != IRQ_TYPE_LEVEL_HIGH) && in al_fic_irq_set_type() 74 ((flow_type & IRQ_TYPE_SENSE_MASK) != IRQ_TYPE_EDGE_RISING)) { in al_fic_irq_set_type() 75 pr_debug("fic doesn't support flow type %d\n", flow_type); in al_fic_irq_set_type() 80 new_state = (flow_type & IRQ_TYPE_LEVEL_HIGH) ? in al_fic_irq_set_type()
|
D | irq-rda-intc.c | 40 static int rda_intc_set_type(struct irq_data *data, unsigned int flow_type) in rda_intc_set_type() argument 43 if ((flow_type & (IRQF_TRIGGER_HIGH | IRQF_TRIGGER_LOW)) == flow_type) in rda_intc_set_type()
|
D | irq-pic32-evic.c | 77 unsigned int flow_type) in pic32_set_type_edge() argument 83 if (!(flow_type & IRQ_TYPE_EDGE_BOTH)) in pic32_set_type_edge() 89 ret = pic32_set_ext_polarity(i, flow_type); in pic32_set_type_edge() 95 irqd_set_trigger_type(data, flow_type); in pic32_set_type_edge()
|
D | irq-wpcm450-aic.c | 97 static int wpcm450_aic_set_type(struct irq_data *d, unsigned int flow_type) in wpcm450_aic_set_type() argument 105 if ((flow_type & IRQ_TYPE_SENSE_MASK) != IRQ_TYPE_LEVEL_HIGH) in wpcm450_aic_set_type()
|
/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_cls.c | 16 .flow_type = _type, \ 554 static int mvpp2_cls_ethtool_flow_to_type(int flow_type) in mvpp2_cls_ethtool_flow_to_type() argument 556 switch (flow_type & ~(FLOW_EXT | FLOW_MAC_EXT | FLOW_RSS)) { in mvpp2_cls_ethtool_flow_to_type() 740 static int mvpp2_port_rss_hash_opts_set(struct mvpp2_port *port, int flow_type, in mvpp2_port_rss_hash_opts_set() argument 748 for_each_cls_flow_id_with_type(i, flow_type) { in mvpp2_port_rss_hash_opts_set() 829 static u16 mvpp2_port_rss_hash_opts_get(struct mvpp2_port *port, int flow_type) in mvpp2_port_rss_hash_opts_get() argument 836 for_each_cls_flow_id_with_type(i, flow_type) { in mvpp2_port_rss_hash_opts_get() 1187 for_each_cls_flow_id_containing_type(i, rule->flow_type) { in mvpp2_port_cls_rfs_rule_remove() 1220 for_each_cls_flow_id_containing_type(i, rule->flow_type) { in mvpp2_port_flt_rfs_rule_insert() 1379 if (info->fs.flow_type & FLOW_RSS) in mvpp2_ethtool_cls_rule_ins() [all …]
|
D | mvpp2_cls.h | 197 int flow_type; member 241 if (cls_flows[(i)].flow_type != (type)) \ 247 if ((cls_flows[(i)].flow_type & (type)) != (type)) \
|
/drivers/gpio/ |
D | gpio-rda.c | 88 unsigned int flow_type) in rda_gpio_set_irq() argument 94 switch (flow_type) { in rda_gpio_set_irq() 160 static int rda_gpio_irq_set_type(struct irq_data *data, unsigned int flow_type) in rda_gpio_irq_set_type() argument 166 ret = rda_gpio_set_irq(chip, offset, flow_type); in rda_gpio_irq_set_type() 170 if (flow_type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_LEVEL_HIGH)) in rda_gpio_irq_set_type() 172 else if (flow_type & (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)) in rda_gpio_irq_set_type()
|
D | gpio-hlwd.c | 149 unsigned int flow_type) in hlwd_gpio_irq_setup_emulation() argument 163 if (flow_type & IRQ_TYPE_EDGE_RISING) in hlwd_gpio_irq_setup_emulation() 165 if (flow_type & IRQ_TYPE_EDGE_FALLING) in hlwd_gpio_irq_setup_emulation() 169 static int hlwd_gpio_irq_set_type(struct irq_data *data, unsigned int flow_type) in hlwd_gpio_irq_set_type() argument 180 switch (flow_type) { in hlwd_gpio_irq_set_type() 194 hlwd_gpio_irq_setup_emulation(hlwd, data->hwirq, flow_type); in hlwd_gpio_irq_set_type()
|
D | gpio-mpc8xxx.c | 167 static int mpc8xxx_irq_set_type(struct irq_data *d, unsigned int flow_type) in mpc8xxx_irq_set_type() argument 173 switch (flow_type) { in mpc8xxx_irq_set_type() 198 static int mpc512x_irq_set_type(struct irq_data *d, unsigned int flow_type) in mpc512x_irq_set_type() argument 215 switch (flow_type) { in mpc512x_irq_set_type()
|
/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_filters.c | 11 if (fsp->flow_type & FLOW_MAC_EXT) in aq_rule_is_approve() 14 switch (fsp->flow_type & ~FLOW_EXT) { in aq_rule_is_approve() 56 if (fsp1->flow_type != fsp2->flow_type || in aq_match_filter() 191 if (fsp->flow_type & FLOW_EXT) { in aq_check_filter() 203 switch (fsp->flow_type & ~FLOW_EXT) { in aq_check_filter() 248 } else if ((fsp->flow_type & ~FLOW_EXT) != ETHER_FLOW && in aq_rule_is_not_support() 254 } else if (fsp->flow_type & FLOW_MAC_EXT) { in aq_rule_is_not_support() 493 switch (fsp->flow_type) { in aq_set_data_fl3l4() 530 if (fsp->flow_type != IP_USER_FLOW && in aq_set_data_fl3l4() 531 fsp->flow_type != IPV6_USER_FLOW) { in aq_set_data_fl3l4() [all …]
|
/drivers/net/ethernet/sfc/ |
D | ethtool_common.c | 679 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule() 706 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule() 730 rule->flow_type = ETHER_FLOW; in efx_ethtool_get_class_rule() 754 rule->flow_type = IPV4_USER_FLOW; in efx_ethtool_get_class_rule() 774 rule->flow_type = IPV6_USER_FLOW; in efx_ethtool_get_class_rule() 796 rule->flow_type |= FLOW_EXT; in efx_ethtool_get_class_rule() 802 rule->flow_type |= FLOW_RSS; in efx_ethtool_get_class_rule() 826 if (info->flow_type & FLOW_RSS && info->rss_context) { in efx_ethtool_get_rxnfc() 838 switch (info->flow_type & ~FLOW_RSS) { in efx_ethtool_get_rxnfc() 885 if (info->fs.flow_type & FLOW_RSS) in efx_ethtool_get_rxnfc() [all …]
|
/drivers/net/dsa/ |
D | bcm_sf2_cfp.c | 364 switch (fs->flow_type & ~FLOW_EXT) { in bcm_sf2_cfp_ipv4_rule_set() 378 if (fs->flow_type & FLOW_EXT) { in bcm_sf2_cfp_ipv4_rule_set() 595 if (rule->fs.flow_type != fs->flow_type || in bcm_sf2_cfp_rule_cmp() 600 switch (fs->flow_type & ~FLOW_EXT) { in bcm_sf2_cfp_rule_cmp() 616 if (rule->fs.flow_type & FLOW_EXT) { in bcm_sf2_cfp_rule_cmp() 644 switch (fs->flow_type & ~FLOW_EXT) { in bcm_sf2_cfp_ipv6_rule_set() 658 if (fs->flow_type & FLOW_EXT) { in bcm_sf2_cfp_ipv6_rule_set() 881 if (fs->flow_type & FLOW_EXT) { in bcm_sf2_cfp_rule_insert() 907 switch (fs->flow_type & ~FLOW_EXT) { in bcm_sf2_cfp_rule_insert() 934 if (fs->flow_type & FLOW_MAC_EXT) in bcm_sf2_cfp_rule_set() [all …]
|
/drivers/net/ethernet/intel/iavf/ |
D | iavf_ethtool.c | 993 if (!(fsp->flow_type & FLOW_EXT)) in iavf_parse_rx_flow_user_data() 1039 fsp->flow_type |= FLOW_EXT; in iavf_fill_rx_flow_ext_data() 1071 fsp->flow_type = iavf_fltr_to_ethtool_flow(rule->flow_type); in iavf_get_ethtool_fdir_entry() 1076 switch (fsp->flow_type) { in iavf_get_ethtool_fdir_entry() 1236 u32 flow_type, q_index = 0; in iavf_add_fdir_fltr_info() local 1254 if (fsp->flow_type & FLOW_EXT) { in iavf_add_fdir_fltr_info() 1261 flow_type = fsp->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT | FLOW_RSS); in iavf_add_fdir_fltr_info() 1262 fltr->flow_type = iavf_ethtool_flow_to_fltr(flow_type); in iavf_add_fdir_fltr_info() 1264 switch (flow_type) { in iavf_add_fdir_fltr_info() 1397 if (fsp->flow_type & FLOW_MAC_EXT) in iavf_add_fdir_ethtool() [all …]
|
D | iavf_fdir.c | 604 switch (fltr->flow_type) { in iavf_fill_fdir_add_msg() 675 static const char *iavf_fdir_flow_proto_name(enum iavf_fdir_flow_type flow_type) in iavf_fdir_flow_proto_name() argument 677 switch (flow_type) { in iavf_fdir_flow_proto_name() 712 const char *proto = iavf_fdir_flow_proto_name(fltr->flow_type); in iavf_print_fdir_fltr() 717 switch (fltr->flow_type) { in iavf_print_fdir_fltr() 798 if (tmp->flow_type != fltr->flow_type) in iavf_fdir_is_dup_fltr()
|
/drivers/net/ethernet/sfc/falcon/ |
D | ethtool.c | 821 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in ef4_ethtool_get_class_rule() 848 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in ef4_ethtool_get_class_rule() 872 rule->flow_type = ETHER_FLOW; in ef4_ethtool_get_class_rule() 896 rule->flow_type = IPV4_USER_FLOW; in ef4_ethtool_get_class_rule() 916 rule->flow_type = IPV6_USER_FLOW; in ef4_ethtool_get_class_rule() 938 rule->flow_type |= FLOW_EXT; in ef4_ethtool_get_class_rule() 961 switch (info->flow_type) { in ef4_ethtool_get_rxnfc() 1048 if ((rule->flow_type & FLOW_EXT) && in ef4_ethtool_set_class_rule() 1058 switch (rule->flow_type & ~FLOW_EXT) { in ef4_ethtool_set_class_rule() 1064 spec.ip_proto = ((rule->flow_type & ~FLOW_EXT) == TCP_V4_FLOW ? in ef4_ethtool_set_class_rule() [all …]
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 3043 switch (cmd->flow_type) { in i40e_get_rss_hash_opts() 3088 if (cmd->flow_type == TCP_V4_FLOW || in i40e_get_rss_hash_opts() 3089 cmd->flow_type == UDP_V4_FLOW) { in i40e_get_rss_hash_opts() 3101 } else if (cmd->flow_type == TCP_V6_FLOW || in i40e_get_rss_hash_opts() 3102 cmd->flow_type == UDP_V6_FLOW) { in i40e_get_rss_hash_opts() 3161 if (!(fsp->flow_type & FLOW_EXT)) in i40e_parse_rx_flow_user_data() 3204 fsp->flow_type |= FLOW_EXT; in i40e_fill_rx_flow_user_data() 3276 fsp->flow_type = rule->flow_type; in i40e_get_ethtool_fdir_entry() 3277 if (fsp->flow_type == IP_USER_FLOW) { in i40e_get_ethtool_fdir_entry() 3283 if (fsp->flow_type == IPV6_USER_FLOW || in i40e_get_ethtool_fdir_entry() [all …]
|