Home
last modified time | relevance | path

Searched refs:ring_cookie (Results 1 – 25 of 29) sorted by relevance

12

/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_flows.c877 fsp->ring_cookie == RX_CLS_FLOW_DISC) in otx2_prepare_flow_request()
928 u64 ring_cookie = fsp->ring_cookie; in otx2_is_flow_rule_dmacfilter() local
939 if (flow_type == ETHER_FLOW && ring_cookie != RX_CLS_FLOW_DISC && in otx2_is_flow_rule_dmacfilter()
940 !ethtool_get_flow_spec_ring_vf(ring_cookie)) { in otx2_is_flow_rule_dmacfilter()
951 u64 ring_cookie = flow->flow_spec.ring_cookie; in otx2_add_flow_msg() local
977 if (ring_cookie == RX_CLS_FLOW_DISC) { in otx2_add_flow_msg()
989 req->index = ethtool_get_flow_spec_ring(ring_cookie); in otx2_add_flow_msg()
991 vf = ethtool_get_flow_spec_ring_vf(ring_cookie); in otx2_add_flow_msg()
1083 ring = ethtool_get_flow_spec_ring(fsp->ring_cookie); in otx2_add_flow()
1099 vf_num = ethtool_get_flow_spec_ring_vf(fsp->ring_cookie); in otx2_add_flow()
[all …]
/drivers/net/ethernet/aquantia/atlantic/
Daq_filters.c175 if (fsp->ring_cookie > cfg->num_rss_queues * cfg->tcs) { in aq_check_approve_fvlan()
279 } else if (fsp->ring_cookie != RX_CLS_FLOW_DISC) { in aq_rule_is_not_correct()
280 if (fsp->ring_cookie >= cfg->num_rss_queues * cfg->tcs) { in aq_rule_is_not_correct()
318 if (fsp->ring_cookie != RX_CLS_FLOW_DISC) in aq_set_data_fl2()
319 data->queue = fsp->ring_cookie; in aq_set_data_fl2()
425 aq_vlans[location].queue = fsp->ring_cookie & 0x1FU; in aq_set_data_fvlan()
552 if (fsp->ring_cookie != RX_CLS_FLOW_DISC) { in aq_set_data_fl3l4()
554 data->cmd |= fsp->ring_cookie << HW_ATL_RX_QUEUE_FL3L4_SHIFT; in aq_set_data_fl3l4()
/drivers/net/dsa/
Dbcm_sf2_cfp.c596 rule->fs.ring_cookie != fs->ring_cookie || in bcm_sf2_cfp_rule_cmp()
851 __u64 ring_cookie = fs->ring_cookie; in bcm_sf2_cfp_rule_insert() local
860 if (ring_cookie == RX_CLS_FLOW_WAKE) in bcm_sf2_cfp_rule_insert()
861 ring_cookie = cpu_port * SF2_NUM_EGRESS_QUEUES; in bcm_sf2_cfp_rule_insert()
867 port_num = ring_cookie / SF2_NUM_EGRESS_QUEUES; in bcm_sf2_cfp_rule_insert()
869 if (ring_cookie == RX_CLS_FLOW_DISC || in bcm_sf2_cfp_rule_insert()
903 queue_num = ring_cookie % SF2_NUM_EGRESS_QUEUES; in bcm_sf2_cfp_rule_insert()
/drivers/net/ethernet/engleder/
Dtsnep_rxnfc.c112 fsp->ring_cookie = rule->queue_index; in tsnep_rxnfc_get_rule()
176 rule->queue_index = fsp->ring_cookie; in tsnep_rxnfc_init_rule()
220 if (fsp->ring_cookie > in tsnep_rxnfc_add_rule()
/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ethtool.c553 if (fs->ring_cookie != RX_CLS_FLOW_DISC && in dpaa2_eth_do_cls_rule()
554 fs->ring_cookie >= dpaa2_eth_queue_count(priv)) in dpaa2_eth_do_cls_rule()
607 if (fs->ring_cookie == RX_CLS_FLOW_DISC) in dpaa2_eth_do_cls_rule()
610 fs_act.flow_id = fs->ring_cookie; in dpaa2_eth_do_cls_rule()
/drivers/net/ethernet/sfc/siena/
Dethtool_common.c667 rule->ring_cookie = RX_CLS_FLOW_DISC; in efx_ethtool_get_class_rule()
669 rule->ring_cookie = spec.dmaq_id; in efx_ethtool_get_class_rule()
941 if (rule->ring_cookie >= efx->n_rx_channels && in efx_ethtool_set_class_rule()
942 rule->ring_cookie != RX_CLS_FLOW_DISC) in efx_ethtool_set_class_rule()
957 (rule->ring_cookie == RX_CLS_FLOW_DISC) ? in efx_ethtool_set_class_rule()
958 EFX_FILTER_RX_DMAQ_ID_DROP : rule->ring_cookie); in efx_ethtool_set_class_rule()
/drivers/net/ethernet/sfc/
Dethtool_common.c704 rule->ring_cookie = RX_CLS_FLOW_DISC; in efx_ethtool_get_class_rule()
706 rule->ring_cookie = spec.dmaq_id; in efx_ethtool_get_class_rule()
977 if (rule->ring_cookie >= efx->n_rx_channels && in efx_ethtool_set_class_rule()
978 rule->ring_cookie != RX_CLS_FLOW_DISC) in efx_ethtool_set_class_rule()
993 (rule->ring_cookie == RX_CLS_FLOW_DISC) ? in efx_ethtool_set_class_rule()
994 EFX_FILTER_RX_DMAQ_ID_DROP : rule->ring_cookie); in efx_ethtool_set_class_rule()
/drivers/net/ethernet/sfc/falcon/
Dethtool.c814 rule->ring_cookie = RX_CLS_FLOW_DISC; in ef4_ethtool_get_class_rule()
816 rule->ring_cookie = spec.dmaq_id; in ef4_ethtool_get_class_rule()
1049 if (rule->ring_cookie >= efx->n_rx_channels && in ef4_ethtool_set_class_rule()
1050 rule->ring_cookie != RX_CLS_FLOW_DISC) in ef4_ethtool_set_class_rule()
1061 (rule->ring_cookie == RX_CLS_FLOW_DISC) ? in ef4_ethtool_set_class_rule()
1062 EF4_FILTER_RX_DMAQ_ID_DROP : rule->ring_cookie); in ef4_ethtool_set_class_rule()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c454 *tirn = mlx5e_rx_res_get_tirn_direct(priv->rx_res, fs->ring_cookie); in flow_get_tirn()
480 if (fs->ring_cookie == RX_CLS_FLOW_DISC) { in add_ethtool_flow_rule()
676 if (fs->ring_cookie != RX_CLS_FLOW_DISC) in validate_flow()
677 if (fs->ring_cookie >= priv->channels.params.num_channels) in validate_flow()
/drivers/net/ethernet/freescale/enetc/
Denetc_ethtool.c513 if (fs->ring_cookie != RX_CLS_FLOW_DISC) { in enetc_set_cls_entry()
515 rfse.result = fs->ring_cookie; in enetc_set_cls_entry()
582 if (rxnfc->fs.ring_cookie >= priv->num_rx_rings && in enetc_set_rxnfc()
583 rxnfc->fs.ring_cookie != RX_CLS_FLOW_DISC) in enetc_set_rxnfc()
/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1633 if (cmd->fs.ring_cookie == RX_CLS_FLOW_DISC) in mlx4_en_flow_replace()
1635 else if (cmd->fs.ring_cookie & EN_ETHTOOL_QP_ATTACH) { in mlx4_en_flow_replace()
1636 qpn = cmd->fs.ring_cookie & (EN_ETHTOOL_QP_ATTACH - 1); in mlx4_en_flow_replace()
1638 if (cmd->fs.ring_cookie >= priv->rx_ring_num) { in mlx4_en_flow_replace()
1640 cmd->fs.ring_cookie); in mlx4_en_flow_replace()
1643 qpn = priv->rss_map.qps[cmd->fs.ring_cookie].qpn; in mlx4_en_flow_replace()
1646 cmd->fs.ring_cookie); in mlx4_en_flow_replace()
/drivers/net/ethernet/qlogic/qede/
Dqede_filter.c1365 fsp->ring_cookie = fltr->rxq_id; in qede_get_cls_rule_entry()
1368 fsp->ring_cookie |= ((u64)fltr->vfid) << in qede_get_cls_rule_entry()
1373 fsp->ring_cookie = RX_CLS_FLOW_DISC; in qede_get_cls_rule_entry()
1611 if (fs->ring_cookie == RX_CLS_FLOW_DISC) { in qede_flow_set_destination()
1616 n->vfid = ethtool_get_flow_spec_ring_vf(fs->ring_cookie); in qede_flow_set_destination()
1617 n->rxq_id = ethtool_get_flow_spec_ring(fs->ring_cookie); in qede_flow_set_destination()
/drivers/net/ethernet/broadcom/genet/
Dbcmgenet_wol.c158 if (rule->fs.ring_cookie == RX_CLS_FLOW_WAKE) in bcmgenet_wol_power_down_cfg()
Dbcmgenet.c688 if (!fs->ring_cookie || fs->ring_cookie == RX_CLS_FLOW_WAKE) { in bcmgenet_hfb_create_rxnfc_filter()
697 fs->ring_cookie); in bcmgenet_hfb_create_rxnfc_filter()
1459 if (cmd->fs.ring_cookie > priv->hw_params->rx_queues && in bcmgenet_insert_flow()
1460 cmd->fs.ring_cookie != RX_CLS_FLOW_WAKE) { in bcmgenet_insert_flow()
1462 cmd->fs.ring_cookie); in bcmgenet_insert_flow()
/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c1159 if (rule->ring_cookie == RX_CLS_FLOW_DISC) in gfar_convert_to_filer()
1162 tab->fe[tab->index - 1].ctrl |= (rule->ring_cookie << 10); in gfar_convert_to_filer()
1401 if ((cmd->fs.ring_cookie != RX_CLS_FLOW_DISC && in gfar_set_nfc()
1402 cmd->fs.ring_cookie >= priv->num_rx_queues) || in gfar_set_nfc()
/drivers/net/ethernet/intel/ice/
Dice_ethtool_fdir.c207 fsp->ring_cookie = RX_CLS_FLOW_DISC; in ice_get_ethtool_fdir_entry()
209 fsp->ring_cookie = rule->orig_q_index; in ice_get_ethtool_fdir_entry()
1711 if (fsp->ring_cookie == RX_CLS_FLOW_DISC) { in ice_set_fdir_input_set()
1714 u32 ring = ethtool_get_flow_spec_ring(fsp->ring_cookie); in ice_set_fdir_input_set()
1715 u8 vf = ethtool_get_flow_spec_ring_vf(fsp->ring_cookie); in ice_set_fdir_input_set()
/drivers/net/ethernet/intel/iavf/
Diavf_ethtool.c1183 fsp->ring_cookie = RX_CLS_FLOW_DISC; in iavf_get_ethtool_fdir_entry()
1185 fsp->ring_cookie = rule->q_index; in iavf_get_ethtool_fdir_entry()
1246 if (fsp->ring_cookie == RX_CLS_FLOW_DISC) { in iavf_add_fdir_fltr_info()
1249 q_index = fsp->ring_cookie; in iavf_add_fdir_fltr_info()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c2564 fsp->ring_cookie = RX_CLS_FLOW_DISC; in ixgbe_get_ethtool_fdir_entry()
2566 fsp->ring_cookie = rule->action; in ixgbe_get_ethtool_fdir_entry()
2792 if (fsp->ring_cookie == RX_CLS_FLOW_DISC) { in ixgbe_add_ethtool_fdir_entry()
2795 u32 ring = ethtool_get_flow_spec_ring(fsp->ring_cookie); in ixgbe_add_ethtool_fdir_entry()
2796 u8 vf = ethtool_get_flow_spec_ring_vf(fsp->ring_cookie); in ixgbe_add_ethtool_fdir_entry()
2864 if (fsp->ring_cookie == RX_CLS_FLOW_DISC) in ixgbe_add_ethtool_fdir_entry()
2867 input->action = fsp->ring_cookie; in ixgbe_add_ethtool_fdir_entry()
/drivers/net/ethernet/intel/igc/
Digc_ethtool.c976 fsp->ring_cookie = rule->action; in igc_ethtool_get_nfc_rule()
1222 rule->action = fsp->ring_cookie; in igc_ethtool_init_nfc_rule()
1342 if (fsp->ring_cookie >= adapter->num_rx_queues) { in igc_ethtool_add_nfc_rule()
/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c444 fsp->ring_cookie = n->rq_id; in enic_grxclsrule()
/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c3473 fsp->ring_cookie = RX_CLS_FLOW_DISC; in i40e_get_ethtool_fdir_entry()
3475 fsp->ring_cookie = rule->q_index; in i40e_get_ethtool_fdir_entry()
3496 fsp->ring_cookie |= ring_vf; in i40e_get_ethtool_fdir_entry()
4836 if (fsp->ring_cookie == RX_CLS_FLOW_DISC) { in i40e_add_fdir_ethtool()
4839 u32 ring = ethtool_get_flow_spec_ring(fsp->ring_cookie); in i40e_add_fdir_ethtool()
4840 u8 vf = ethtool_get_flow_spec_ring_vf(fsp->ring_cookie); in i40e_add_fdir_ethtool()
/drivers/net/ethernet/intel/igb/
Digb_ethtool.c2457 fsp->ring_cookie = rule->action; in igb_get_ethtool_nfc_entry()
2915 if ((fsp->ring_cookie == RX_CLS_FLOW_DISC) || in igb_add_ethtool_nfc_entry()
2916 (fsp->ring_cookie >= adapter->num_rx_queues)) { in igb_add_ethtool_nfc_entry()
2962 input->action = fsp->ring_cookie; in igb_add_ethtool_nfc_entry()
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ethtool.c1699 fs->ring_cookie = RX_CLS_FLOW_DISC; in cxgb4_fill_filter_rule()
1701 fs->ring_cookie = dfs->iq; in cxgb4_fill_filter_rule()
/drivers/net/ethernet/cadence/
Dmacb_main.c3463 t2_scr = GEM_BFINS(QUEUE, (fs->ring_cookie) & 0xFF, t2_scr); in gem_prog_cmp_regs()
3491 fs->flow_type, (int)fs->ring_cookie, fs->location, in gem_add_flow_filter()
3545 fs->flow_type, (int)fs->ring_cookie, fs->location, in gem_del_flow_filter()
3635 || (cmd->fs.ring_cookie >= bp->num_queues)) { in gem_set_rxnfc()
/drivers/net/ethernet/broadcom/
Dbcmsysport.c2165 nfc->fs.ring_cookie = RX_CLS_FLOW_WAKE; in bcm_sysport_rule_get()
2183 if (nfc->fs.ring_cookie != RX_CLS_FLOW_WAKE) in bcm_sysport_rule_set()

12