Home
last modified time | relevance | path

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

12

/linux/drivers/net/ethernet/aquantia/atlantic/
A 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()
/linux/drivers/net/dsa/
A 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()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_flows.c878 u64 ring_cookie = fsp->ring_cookie; in otx2_is_flow_rule_dmacfilter() local
889 if (flow_type == ETHER_FLOW && ring_cookie != RX_CLS_FLOW_DISC && in otx2_is_flow_rule_dmacfilter()
890 !ethtool_get_flow_spec_ring_vf(ring_cookie)) { in otx2_is_flow_rule_dmacfilter()
901 u64 ring_cookie = flow->flow_spec.ring_cookie; in otx2_add_flow_msg() local
924 if (ring_cookie == RX_CLS_FLOW_DISC) { in otx2_add_flow_msg()
936 req->index = ethtool_get_flow_spec_ring(ring_cookie); in otx2_add_flow_msg()
938 vf = ethtool_get_flow_spec_ring_vf(ring_cookie); in otx2_add_flow_msg()
1005 ring = ethtool_get_flow_spec_ring(fsp->ring_cookie); in otx2_add_flow()
1009 if (ring >= pfvf->hw.rx_queues && fsp->ring_cookie != RX_CLS_FLOW_DISC) in otx2_add_flow()
/linux/include/uapi/linux/
A Dethtool.h1043 __u64 ring_cookie; member
1061 static inline __u64 ethtool_get_flow_spec_ring(__u64 ring_cookie) in ethtool_get_flow_spec_ring() argument
1063 return ETHTOOL_RX_FLOW_SPEC_RING & ring_cookie; in ethtool_get_flow_spec_ring()
1066 static inline __u64 ethtool_get_flow_spec_ring_vf(__u64 ring_cookie) in ethtool_get_flow_spec_ring_vf() argument
1068 return (ETHTOOL_RX_FLOW_SPEC_RING_VF & ring_cookie) >> in ethtool_get_flow_spec_ring_vf()
/linux/drivers/net/ethernet/freescale/dpaa2/
A 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()
/linux/drivers/net/ethernet/freescale/enetc/
A Denetc_ethtool.c404 if (fs->ring_cookie != RX_CLS_FLOW_DISC) { in enetc_set_cls_entry()
406 rfse.result = fs->ring_cookie; in enetc_set_cls_entry()
473 if (rxnfc->fs.ring_cookie >= priv->num_rx_rings && in enetc_set_rxnfc()
474 rxnfc->fs.ring_cookie != RX_CLS_FLOW_DISC) in enetc_set_rxnfc()
/linux/drivers/net/ethernet/sfc/falcon/
A Dethtool.c808 rule->ring_cookie = RX_CLS_FLOW_DISC; in ef4_ethtool_get_class_rule()
810 rule->ring_cookie = spec.dmaq_id; in ef4_ethtool_get_class_rule()
1043 if (rule->ring_cookie >= efx->n_rx_channels && in ef4_ethtool_set_class_rule()
1044 rule->ring_cookie != RX_CLS_FLOW_DISC) in ef4_ethtool_set_class_rule()
1055 (rule->ring_cookie == RX_CLS_FLOW_DISC) ? in ef4_ethtool_set_class_rule()
1056 EF4_FILTER_RX_DMAQ_ID_DROP : rule->ring_cookie); in ef4_ethtool_set_class_rule()
/linux/drivers/net/ethernet/sfc/
A Dethtool_common.c666 rule->ring_cookie = RX_CLS_FLOW_DISC; in efx_ethtool_get_class_rule()
668 rule->ring_cookie = spec.dmaq_id; in efx_ethtool_get_class_rule()
939 if (rule->ring_cookie >= efx->n_rx_channels && in efx_ethtool_set_class_rule()
940 rule->ring_cookie != RX_CLS_FLOW_DISC) in efx_ethtool_set_class_rule()
955 (rule->ring_cookie == RX_CLS_FLOW_DISC) ? in efx_ethtool_set_class_rule()
956 EFX_FILTER_RX_DMAQ_ID_DROP : rule->ring_cookie); in efx_ethtool_set_class_rule()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Den_fs_ethtool.c440 mlx5e_qid_get_ch_and_group(params, fs->ring_cookie, &ix, &group); in flow_get_tirn()
470 if (fs->ring_cookie == RX_CLS_FLOW_DISC) { in add_ethtool_flow_rule()
664 if (fs->ring_cookie != RX_CLS_FLOW_DISC) in validate_flow()
666 fs->ring_cookie)) in validate_flow()
/linux/drivers/net/ethernet/intel/ice/
A Dice_ethtool_fdir.c206 fsp->ring_cookie = RX_CLS_FLOW_DISC; in ice_get_ethtool_fdir_entry()
208 fsp->ring_cookie = rule->q_index; in ice_get_ethtool_fdir_entry()
1488 if (fsp->ring_cookie == RX_CLS_FLOW_DISC) { in ice_set_fdir_input_set()
1491 u32 ring = ethtool_get_flow_spec_ring(fsp->ring_cookie); in ice_set_fdir_input_set()
1492 u8 vf = ethtool_get_flow_spec_ring_vf(fsp->ring_cookie); in ice_set_fdir_input_set()
/linux/drivers/net/ethernet/mellanox/mlx4/
A Den_ethtool.c1629 if (cmd->fs.ring_cookie == RX_CLS_FLOW_DISC) in mlx4_en_flow_replace()
1631 else if (cmd->fs.ring_cookie & EN_ETHTOOL_QP_ATTACH) { in mlx4_en_flow_replace()
1632 qpn = cmd->fs.ring_cookie & (EN_ETHTOOL_QP_ATTACH - 1); in mlx4_en_flow_replace()
1634 if (cmd->fs.ring_cookie >= priv->rx_ring_num) { in mlx4_en_flow_replace()
1636 cmd->fs.ring_cookie); in mlx4_en_flow_replace()
1639 qpn = priv->rss_map.qps[cmd->fs.ring_cookie].qpn; in mlx4_en_flow_replace()
1642 cmd->fs.ring_cookie); in mlx4_en_flow_replace()
/linux/drivers/net/ethernet/qlogic/qede/
A 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()
/linux/drivers/net/ethernet/broadcom/genet/
A Dbcmgenet_wol.c151 if (rule->fs.ring_cookie == RX_CLS_FLOW_WAKE) in bcmgenet_wol_power_down_cfg()
A 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()
1462 if (cmd->fs.ring_cookie > priv->hw_params->rx_queues && in bcmgenet_insert_flow()
1463 cmd->fs.ring_cookie != RX_CLS_FLOW_WAKE) { in bcmgenet_insert_flow()
1465 cmd->fs.ring_cookie); in bcmgenet_insert_flow()
/linux/drivers/net/ethernet/freescale/
A Dgianfar_ethtool.c1155 if (rule->ring_cookie == RX_CLS_FLOW_DISC) in gfar_convert_to_filer()
1158 tab->fe[tab->index - 1].ctrl |= (rule->ring_cookie << 10); in gfar_convert_to_filer()
1397 if ((cmd->fs.ring_cookie != RX_CLS_FLOW_DISC && in gfar_set_nfc()
1398 cmd->fs.ring_cookie >= priv->num_rx_queues) || in gfar_set_nfc()
/linux/net/ethtool/
A Dioctl.c849 offsetof(struct compat_ethtool_rxnfc, fs.ring_cookie) != in ethtool_rxnfc_copy_from_compat()
851 offsetof(struct ethtool_rxnfc, fs.ring_cookie)); in ethtool_rxnfc_copy_from_compat()
866 .ring_cookie = crxnfc.fs.ring_cookie, in ethtool_rxnfc_copy_from_compat()
905 .ring_cookie = rxnfc->fs.ring_cookie, in ethtool_rxnfc_copy_to_compat()
3315 switch (fs->ring_cookie) { in ethtool_rx_flow_rule_create()
3327 act->queue.vf = ethtool_get_flow_spec_ring_vf(fs->ring_cookie); in ethtool_rx_flow_rule_create()
3328 act->queue.index = ethtool_get_flow_spec_ring(fs->ring_cookie); in ethtool_rx_flow_rule_create()
/linux/drivers/net/ethernet/intel/iavf/
A Diavf_ethtool.c1177 fsp->ring_cookie = RX_CLS_FLOW_DISC; in iavf_get_ethtool_fdir_entry()
1179 fsp->ring_cookie = rule->q_index; in iavf_get_ethtool_fdir_entry()
1240 if (fsp->ring_cookie == RX_CLS_FLOW_DISC) { in iavf_add_fdir_fltr_info()
1243 q_index = fsp->ring_cookie; in iavf_add_fdir_fltr_info()
/linux/drivers/net/ethernet/intel/ixgbe/
A Dixgbe_ethtool.c2562 fsp->ring_cookie = RX_CLS_FLOW_DISC; in ixgbe_get_ethtool_fdir_entry()
2564 fsp->ring_cookie = rule->action; in ixgbe_get_ethtool_fdir_entry()
2781 if (fsp->ring_cookie == RX_CLS_FLOW_DISC) { in ixgbe_add_ethtool_fdir_entry()
2784 u32 ring = ethtool_get_flow_spec_ring(fsp->ring_cookie); in ixgbe_add_ethtool_fdir_entry()
2785 u8 vf = ethtool_get_flow_spec_ring_vf(fsp->ring_cookie); in ixgbe_add_ethtool_fdir_entry()
2853 if (fsp->ring_cookie == RX_CLS_FLOW_DISC) in ixgbe_add_ethtool_fdir_entry()
2856 input->action = fsp->ring_cookie; in ixgbe_add_ethtool_fdir_entry()
/linux/include/linux/
A Dethtool.h27 compat_u64 ring_cookie; member
/linux/drivers/net/ethernet/intel/igc/
A Digc_ethtool.c961 fsp->ring_cookie = rule->action; in igc_ethtool_get_nfc_rule()
1201 rule->action = fsp->ring_cookie; in igc_ethtool_init_nfc_rule()
1312 if (fsp->ring_cookie >= adapter->num_rx_queues) { in igc_ethtool_add_nfc_rule()
/linux/drivers/net/ethernet/cisco/enic/
A Denic_ethtool.c455 fsp->ring_cookie = n->rq_id; in enic_grxclsrule()
/linux/drivers/net/ethernet/intel/i40e/
A Di40e_ethtool.c3360 fsp->ring_cookie = RX_CLS_FLOW_DISC; in i40e_get_ethtool_fdir_entry()
3362 fsp->ring_cookie = rule->q_index; in i40e_get_ethtool_fdir_entry()
3383 fsp->ring_cookie |= ring_vf; in i40e_get_ethtool_fdir_entry()
4718 if (fsp->ring_cookie == RX_CLS_FLOW_DISC) { in i40e_add_fdir_ethtool()
4721 u32 ring = ethtool_get_flow_spec_ring(fsp->ring_cookie); in i40e_add_fdir_ethtool()
4722 u8 vf = ethtool_get_flow_spec_ring_vf(fsp->ring_cookie); in i40e_add_fdir_ethtool()
/linux/drivers/net/ethernet/intel/igb/
A Digb_ethtool.c2452 fsp->ring_cookie = rule->action; in igb_get_ethtool_nfc_entry()
2910 if ((fsp->ring_cookie == RX_CLS_FLOW_DISC) || in igb_add_ethtool_nfc_entry()
2911 (fsp->ring_cookie >= adapter->num_rx_queues)) { in igb_add_ethtool_nfc_entry()
2957 input->action = fsp->ring_cookie; in igb_add_ethtool_nfc_entry()
/linux/drivers/net/ethernet/chelsio/cxgb4/
A Dcxgb4_ethtool.c1695 fs->ring_cookie = RX_CLS_FLOW_DISC; in cxgb4_fill_filter_rule()
1697 fs->ring_cookie = dfs->iq; in cxgb4_fill_filter_rule()
/linux/drivers/net/ethernet/cadence/
A Dmacb_main.c3346 t2_scr = GEM_BFINS(QUEUE, (fs->ring_cookie) & 0xFF, t2_scr); in gem_prog_cmp_regs()
3374 fs->flow_type, (int)fs->ring_cookie, fs->location, in gem_add_flow_filter()
3427 fs->flow_type, (int)fs->ring_cookie, fs->location, in gem_del_flow_filter()
3517 || (cmd->fs.ring_cookie >= bp->num_queues)) { in gem_set_rxnfc()

Completed in 2302 milliseconds

12