Home
last modified time | relevance | path

Searched refs:flow_type (Results 1 – 25 of 117) sorted by relevance

12345

/drivers/net/ethernet/wangxun/txgbe/
A Dtxgbe_ethtool.c132 fsp->flow_type = TCP_V4_FLOW; in txgbe_get_ethtool_fdir_entry()
135 fsp->flow_type = UDP_V4_FLOW; in txgbe_get_ethtool_fdir_entry()
138 fsp->flow_type = SCTP_V4_FLOW; in txgbe_get_ethtool_fdir_entry()
141 fsp->flow_type = IP_USER_FLOW; in txgbe_get_ethtool_fdir_entry()
162 fsp->flow_type |= FLOW_EXT; in txgbe_get_ethtool_fdir_entry()
227 u8 *flow_type) in txgbe_flowspec_to_flow_type() argument
229 switch (fsp->flow_type & ~FLOW_EXT) { in txgbe_flowspec_to_flow_type()
231 *flow_type = TXGBE_ATR_FLOW_TYPE_TCPV4; in txgbe_flowspec_to_flow_type()
234 *flow_type = TXGBE_ATR_FLOW_TYPE_UDPV4; in txgbe_flowspec_to_flow_type()
237 *flow_type = TXGBE_ATR_FLOW_TYPE_SCTPV4; in txgbe_flowspec_to_flow_type()
[all …]
A Dtxgbe_fdir.c183 u8 flow_type; in txgbe_fdir_add_signature_filter() local
190 flow_type = input.formatted.flow_type; in txgbe_fdir_add_signature_filter()
191 switch (flow_type) { in txgbe_fdir_add_signature_filter()
208 fdircmd |= TXGBE_RDB_FDIR_CMD_FLOW_TYPE(flow_type); in txgbe_fdir_add_signature_filter()
288 input.formatted.flow_type = TXGBE_ATR_FLOW_TYPE_TCPV6; in txgbe_atr()
298 input.formatted.flow_type = TXGBE_ATR_FLOW_TYPE_TCPV4; in txgbe_atr()
337 switch (input_mask->formatted.flow_type & TXGBE_ATR_L4TYPE_MASK) { in txgbe_fdir_set_input_mask()
444 fdircmd |= TXGBE_RDB_FDIR_CMD_FLOW_TYPE(input->formatted.flow_type); in txgbe_fdir_write_perfect_filter()
/drivers/net/ethernet/mellanox/mlx5/core/
A Den_fs_ethtool.c353 u32 flow_type = flow_type_mask(fs->flow_type); in set_flow_attrs() local
355 switch (flow_type) { in set_flow_attrs()
427 if (fs->flow_type & FLOW_RSS) { in flow_get_tirn()
430 u32 flow_type; in flow_get_tirn() local
438 flow_type = flow_type_mask(fs->flow_type); in flow_get_tirn()
869 switch (flow_type) { in flow_type_to_traffic_type()
902 u32 flow_type = 0; in mlx5e_ethtool_set_rxfh_fields() local
909 flow_type = flow_type_mask(nfc->flow_type); in mlx5e_ethtool_set_rxfh_fields()
921 flow_type != UDP_V6_FLOW) in mlx5e_ethtool_set_rxfh_fields()
948 u32 flow_type = 0; in mlx5e_ethtool_get_rxfh_fields() local
[all …]
/drivers/net/ethernet/intel/ice/
A Dice_arfs.c39 switch (flow_type) { in ice_is_arfs_using_perfect_flow()
65 switch (entry->fltr_info.flow_type) { in ice_arfs_update_active_fltr_cntrs()
92 entry->fltr_info.flow_type); in ice_arfs_update_active_fltr_cntrs()
192 arfs_entry->fltr_info.flow_type != ICE_FLTR_PTYPE_NONF_IPV6_UDP) in ice_arfs_is_flow_expired()
229 enum ice_fltr_ptype flow_type = e->fltr_info.flow_type; in ice_arfs_update_flow_rules() local
241 if (flow_type == ICE_FLTR_PTYPE_NONF_IPV4_UDP || in ice_arfs_update_flow_rules()
242 flow_type == ICE_FLTR_PTYPE_NONF_IPV6_UDP) in ice_arfs_update_flow_rules()
322 fltr_info->flow_type = (ip_proto == IPPROTO_TCP) ? in ice_arfs_build_entry()
331 fltr_info->flow_type = (ip_proto == IPPROTO_TCP) ? in ice_arfs_build_entry()
401 bool is_v4 = fltr_info->flow_type == ICE_FLTR_PTYPE_NONF_IPV4_TCP || in ice_arfs_cmp()
[all …]
A Dice_ethtool_fdir.c138 fsp->flow_type = ice_fltr_to_ethtool_flow(rule->flow_type); in ice_get_ethtool_fdir_entry()
143 switch (fsp->flow_type) { in ice_get_ethtool_fdir_entry()
222 rule->flow_type); in ice_get_ethtool_fdir_entry()
396 enum ice_fltr_ptype flow_type) in ice_fdir_rem_flow() argument
491 if (!(fsp->flow_type & FLOW_EXT)) in ice_parse_rx_flow_user_data()
1834 int flow_type; in ice_set_fdir_input_set() local
1867 flow_type = fsp->flow_type & ~FLOW_EXT; in ice_set_fdir_input_set()
1878 input->flow_type = ice_ethtool_flow_to_fltr(flow_type); in ice_set_fdir_input_set()
1880 if (fsp->flow_type & FLOW_EXT) { in ice_set_fdir_input_set()
1891 switch (flow_type) { in ice_set_fdir_input_set()
[all …]
A Dice_virtchnl_fdir.c336 enum ice_fltr_ptype flow = conf->input.flow_type; in ice_vc_fdir_set_flow_hdr()
580 flow_type_a = a->flow_type; in ice_vc_fdir_has_prof_conflict()
581 flow_type_b = b->flow_type; in ice_vc_fdir_has_prof_conflict()
764 flow = input->flow_type; in ice_vc_fdir_config_input_set()
957 input->flow_type = ICE_FLTR_PTYPE_NON_IP_L2; in ice_vc_fdir_parse_pattern()
1028 input->flow_type = in ice_vc_fdir_parse_pattern()
1031 input->flow_type = in ice_vc_fdir_parse_pattern()
1083 input->flow_type = ICE_FLTR_PTYPE_NONF_IPV4_AH; in ice_vc_fdir_parse_pattern()
1257 if (a->flow_type != b->flow_type) in ice_vc_fdir_comp_rules()
1431 vf->vf_id, input->flow_type); in ice_vc_fdir_write_fltr()
[all …]
A Dice_arfs.h55 enum ice_fltr_ptype flow_type);
78 enum ice_fltr_ptype __always_unused flow_type) in ice_is_arfs_using_perfect_flow() argument
/drivers/net/ethernet/google/gve/
A Dgve_flow_rule.c28 if (be16_to_cpu(flow_rule->flow_type) >= ARRAY_SIZE(flow_type_lut)) in gve_fill_ethtool_flow_spec()
31 fsp->flow_type = flow_type_lut[be16_to_cpu(flow_rule->flow_type)]; in gve_fill_ethtool_flow_spec()
38 switch (fsp->flow_type) { in gve_fill_ethtool_flow_spec()
121 u32 flow_type; in gve_generate_flow_rule() local
131 flow_type = fsp->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT | FLOW_RSS); in gve_generate_flow_rule()
132 if (!flow_type || flow_type >= ARRAY_SIZE(flow_type_lut)) in gve_generate_flow_rule()
135 rule->flow_type = cpu_to_be16(flow_type_lut[flow_type]); in gve_generate_flow_rule()
137 switch (flow_type) { in gve_generate_flow_rule()
/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_flows.c538 u32 flow_type) in otx2_prepare_ipv4_flow() argument
549 switch (flow_type) { in otx2_prepare_ipv4_flow()
683 if (flow_type == AH_V4_FLOW) in otx2_prepare_ipv4_flow()
697 u32 flow_type) in otx2_prepare_ipv6_flow() argument
708 switch (flow_type) { in otx2_prepare_ipv6_flow()
809 if (flow_type == AH_V6_FLOW) in otx2_prepare_ipv6_flow()
828 u32 flow_type; in otx2_prepare_flow_request() local
831 flow_type = fsp->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT | FLOW_RSS); in otx2_prepare_flow_request()
832 switch (flow_type) { in otx2_prepare_flow_request()
954 u32 flow_type; in otx2_is_flow_rule_dmacfilter() local
[all …]
/drivers/irqchip/
A Dirq-tb10x.c41 static int tb10x_irq_set_type(struct irq_data *data, unsigned int flow_type) in tb10x_irq_set_type() argument
51 switch (flow_type & IRQF_TRIGGER_MASK) { in tb10x_irq_set_type()
59 flow_type = IRQ_TYPE_LEVEL_LOW; in tb10x_irq_set_type()
72 irqd_set_trigger_type(data, flow_type); in tb10x_irq_set_type()
73 irq_setup_alt_chip(data, flow_type); in tb10x_irq_set_type()
A Dirq-al-fic.c63 static int al_fic_irq_set_type(struct irq_data *data, unsigned int flow_type) in al_fic_irq_set_type() argument
71 if (((flow_type & IRQ_TYPE_SENSE_MASK) != IRQ_TYPE_LEVEL_HIGH) && in al_fic_irq_set_type()
72 ((flow_type & IRQ_TYPE_SENSE_MASK) != IRQ_TYPE_EDGE_RISING)) { in al_fic_irq_set_type()
73 pr_debug("fic doesn't support flow type %d\n", flow_type); in al_fic_irq_set_type()
77 new_state = (flow_type & IRQ_TYPE_LEVEL_HIGH) ? in al_fic_irq_set_type()
A Dirq-sunxi-nmi.c105 static int sunxi_sc_nmi_set_type(struct irq_data *data, unsigned int flow_type) in sunxi_sc_nmi_set_type() argument
116 switch (flow_type & IRQF_TRIGGER_MASK) { in sunxi_sc_nmi_set_type()
135 irqd_set_trigger_type(data, flow_type); in sunxi_sc_nmi_set_type()
136 irq_setup_alt_chip(data, flow_type); in sunxi_sc_nmi_set_type()
139 if (ct->type & flow_type) in sunxi_sc_nmi_set_type()
A Dirq-rda-intc.c40 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()
A Dirq-pic32-evic.c77 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()
/drivers/net/ethernet/marvell/mvpp2/
A Dmvpp2_cls.c16 .flow_type = _type, \
1379 if (info->fs.flow_type & FLOW_RSS) in mvpp2_ethtool_cls_rule_ins()
1389 efs->rule.flow_type = mvpp2_cls_ethtool_flow_to_type(info->fs.flow_type); in mvpp2_ethtool_cls_rule_ins()
1390 if (efs->rule.flow_type < 0) { in mvpp2_ethtool_cls_rule_ins()
1391 ret = efs->rule.flow_type; in mvpp2_ethtool_cls_rule_ins()
1567 if (!(rxnfc->fs.flow_type & FLOW_RSS) || in mvpp22_port_rss_ctx_delete()
1625 u32 flow_type; in mvpp2_ethtool_rxfh_set() local
1627 flow_type = mvpp2_cls_ethtool_flow_to_type(info->flow_type); in mvpp2_ethtool_rxfh_set()
1629 switch (flow_type) { in mvpp2_ethtool_rxfh_set()
1664 u32 flow_type; in mvpp2_ethtool_rxfh_get() local
[all …]
/drivers/gpio/
A Dgpio-rda.c88 unsigned int flow_type) in rda_gpio_set_irq() argument
94 switch (flow_type) { in rda_gpio_set_irq()
161 static int rda_gpio_irq_set_type(struct irq_data *data, unsigned int flow_type) in rda_gpio_irq_set_type() argument
167 ret = rda_gpio_set_irq(chip, offset, flow_type); in rda_gpio_irq_set_type()
171 if (flow_type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_LEVEL_HIGH)) in rda_gpio_irq_set_type()
173 else if (flow_type & (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)) in rda_gpio_irq_set_type()
A Dgpio-hlwd.c152 unsigned int flow_type) in hlwd_gpio_irq_setup_emulation() argument
166 if (flow_type & IRQ_TYPE_EDGE_RISING) in hlwd_gpio_irq_setup_emulation()
168 if (flow_type & IRQ_TYPE_EDGE_FALLING) in hlwd_gpio_irq_setup_emulation()
172 static int hlwd_gpio_irq_set_type(struct irq_data *data, unsigned int flow_type) in hlwd_gpio_irq_set_type() argument
183 switch (flow_type) { in hlwd_gpio_irq_set_type()
197 hlwd_gpio_irq_setup_emulation(hlwd, data->hwirq, flow_type); in hlwd_gpio_irq_set_type()
/drivers/net/ethernet/sfc/siena/
A Dethtool_common.c725 rule->flow_type = ETHER_FLOW; in efx_ethtool_get_class_rule()
749 rule->flow_type = IPV4_USER_FLOW; in efx_ethtool_get_class_rule()
769 rule->flow_type = IPV6_USER_FLOW; in efx_ethtool_get_class_rule()
791 rule->flow_type |= FLOW_EXT; in efx_ethtool_get_class_rule()
797 rule->flow_type |= FLOW_RSS; in efx_ethtool_get_class_rule()
814 switch (info->flow_type) { in efx_siena_ethtool_get_rxfh_fields()
871 if (info->fs.flow_type & FLOW_RSS) in efx_siena_ethtool_get_rxnfc()
913 u32 flow_type = rule->flow_type & ~(FLOW_EXT | FLOW_RSS); in efx_ethtool_set_class_rule() local
937 if (rule->flow_type & FLOW_RSS) in efx_ethtool_set_class_rule()
944 if (rule->flow_type & FLOW_RSS) in efx_ethtool_set_class_rule()
[all …]
/drivers/net/ethernet/aquantia/atlantic/
A Daq_filters.c11 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()
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()
593 if (aq_rx_fltr->aq_fsp.flow_type & FLOW_EXT) { in aq_add_del_rule()
[all …]
/drivers/net/ethernet/sfc/
A Dethtool_common.c724 rule->flow_type = ETHER_FLOW; in efx_ethtool_get_class_rule()
748 rule->flow_type = IPV4_USER_FLOW; in efx_ethtool_get_class_rule()
768 rule->flow_type = IPV6_USER_FLOW; in efx_ethtool_get_class_rule()
790 rule->flow_type |= FLOW_EXT; in efx_ethtool_get_class_rule()
796 rule->flow_type |= FLOW_RSS; in efx_ethtool_get_class_rule()
823 switch (info->flow_type) { in efx_ethtool_get_rxfh_fields()
880 if (info->fs.flow_type & FLOW_RSS) in efx_ethtool_get_rxnfc()
922 u32 flow_type = rule->flow_type & ~(FLOW_EXT | FLOW_RSS); in efx_ethtool_set_class_rule() local
946 if (rule->flow_type & FLOW_RSS) in efx_ethtool_set_class_rule()
953 if (rule->flow_type & FLOW_RSS) in efx_ethtool_set_class_rule()
[all …]
/drivers/net/ethernet/meta/fbnic/
A Dfbnic_ethtool.c588 fsp->flow_type = ETHER_FLOW; in fbnic_get_cls_rule()
603 fsp->flow_type = IPV6_USER_FLOW; in fbnic_get_cls_rule()
644 fsp->flow_type = UDP_V6_FLOW; in fbnic_get_cls_rule()
646 fsp->flow_type = TCP_V6_FLOW; in fbnic_get_cls_rule()
656 fsp->flow_type = IPV6_USER_FLOW; in fbnic_get_cls_rule()
696 fsp->flow_type = UDP_V4_FLOW; in fbnic_get_cls_rule()
698 fsp->flow_type = TCP_V4_FLOW; in fbnic_get_cls_rule()
748 fsp->flow_type |= FLOW_RSS; in fbnic_get_cls_rule()
819 u32 flow_type; in fbnic_set_cls_rule_ins() local
855 flow_type = fsp->flow_type & ~(FLOW_EXT | FLOW_RSS); in fbnic_set_cls_rule_ins()
[all …]
A Dfbnic_rpc.c64 u16 fbnic_flow_hash_2_rss_en_mask(struct fbnic_net *fbn, int flow_type) in fbnic_flow_hash_2_rss_en_mask() argument
66 u32 flow_hash = fbn->rss_flow_hash[flow_type]; in fbnic_flow_hash_2_rss_en_mask()
304 int flow_type, j; in fbnic_rss_reinit() local
307 flow_type = i % FBNIC_RSS_EN_NUM_UNICAST; in fbnic_rss_reinit()
308 flow_hash = fbn->rss_flow_hash[flow_type]; in fbnic_rss_reinit()
321 else if (tstamp_mask & (1u << flow_type)) in fbnic_rss_reinit()
324 if (act1_value[flow_type] & FBNIC_RPC_TCAM_ACT1_L4_VALID) in fbnic_rss_reinit()
328 rss_en_mask = fbnic_flow_hash_2_rss_en_mask(fbn, flow_type); in fbnic_rss_reinit()
346 flow_type = i % FBNIC_RSS_EN_NUM_UNICAST; in fbnic_rss_reinit()
347 value |= act1_value[flow_type]; in fbnic_rss_reinit()
/drivers/net/dsa/
A Dbcm_sf2_cfp.c364 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/
A Diavf_ethtool.c906 fsp->flow_type |= FLOW_EXT; in iavf_fill_rx_flow_ext_data()
938 fsp->flow_type = iavf_fltr_to_ethtool_flow(rule->flow_type); in iavf_get_ethtool_fdir_entry()
943 switch (fsp->flow_type) { in iavf_get_ethtool_fdir_entry()
1106 u32 flow_type, q_index = 0; in iavf_add_fdir_fltr_info() local
1124 if (fsp->flow_type & FLOW_EXT) { in iavf_add_fdir_fltr_info()
1131 flow_type = fsp->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT | FLOW_RSS); in iavf_add_fdir_fltr_info()
1132 fltr->flow_type = iavf_ethtool_flow_to_fltr(flow_type); in iavf_add_fdir_fltr_info()
1134 switch (flow_type) { in iavf_add_fdir_fltr_info()
1314 switch (cmd->flow_type) { in iavf_adv_rss_parse_hdrs()
1352 switch (cmd->flow_type) { in iavf_adv_rss_parse_hash_flds()
[all …]
/drivers/net/ethernet/sfc/falcon/
A Dethtool.c821 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_rxfh_fields()
1056 if ((rule->flow_type & FLOW_EXT) && in ef4_ethtool_set_class_rule()
1066 switch (rule->flow_type & ~FLOW_EXT) { in ef4_ethtool_set_class_rule()
1072 spec.ip_proto = ((rule->flow_type & ~FLOW_EXT) == TCP_V4_FLOW ? in ef4_ethtool_set_class_rule()
[all …]

Completed in 695 milliseconds

12345