/linux-6.6.21/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_filters.c | 175 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-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_flows.c | 882 fsp->ring_cookie == RX_CLS_FLOW_DISC) in otx2_prepare_flow_request() 945 u64 ring_cookie = fsp->ring_cookie; in otx2_is_flow_rule_dmacfilter() local 956 if (flow_type == ETHER_FLOW && ring_cookie != RX_CLS_FLOW_DISC && in otx2_is_flow_rule_dmacfilter() 957 !ethtool_get_flow_spec_ring_vf(ring_cookie)) { in otx2_is_flow_rule_dmacfilter() 968 u64 ring_cookie = flow->flow_spec.ring_cookie; in otx2_add_flow_msg() local 994 if (ring_cookie == RX_CLS_FLOW_DISC) { in otx2_add_flow_msg() 1006 req->index = ethtool_get_flow_spec_ring(ring_cookie); in otx2_add_flow_msg() 1008 vf = ethtool_get_flow_spec_ring_vf(ring_cookie); in otx2_add_flow_msg() 1100 ring = ethtool_get_flow_spec_ring(fsp->ring_cookie); in otx2_add_flow() 1116 vf_num = ethtool_get_flow_spec_ring_vf(fsp->ring_cookie); in otx2_add_flow() [all …]
|
/linux-6.6.21/drivers/net/ethernet/engleder/ |
D | tsnep_rxnfc.c | 112 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()
|
/linux-6.6.21/drivers/net/dsa/ |
D | bcm_sf2_cfp.c | 596 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-6.6.21/include/uapi/linux/ |
D | ethtool.h | 1130 __u64 ring_cookie; member 1148 static inline __u64 ethtool_get_flow_spec_ring(__u64 ring_cookie) in ethtool_get_flow_spec_ring() argument 1150 return ETHTOOL_RX_FLOW_SPEC_RING & ring_cookie; in ethtool_get_flow_spec_ring() 1153 static inline __u64 ethtool_get_flow_spec_ring_vf(__u64 ring_cookie) in ethtool_get_flow_spec_ring_vf() argument 1155 return (ETHTOOL_RX_FLOW_SPEC_RING_VF & ring_cookie) >> in ethtool_get_flow_spec_ring_vf()
|
/linux-6.6.21/net/ethtool/ |
D | common.c | 573 if (rule_info.fs.ring_cookie != RX_CLS_FLOW_DISC && in ethtool_get_max_rxnfc_channel() 574 rule_info.fs.ring_cookie != RX_CLS_FLOW_WAKE && in ethtool_get_max_rxnfc_channel() 576 !ethtool_get_flow_spec_ring_vf(rule_info.fs.ring_cookie)) in ethtool_get_max_rxnfc_channel() 578 max_t(u64, max_ring, rule_info.fs.ring_cookie); in ethtool_get_max_rxnfc_channel()
|
D | ioctl.c | 842 offsetof(struct compat_ethtool_rxnfc, fs.ring_cookie) != in ethtool_rxnfc_copy_from_compat() 844 offsetof(struct ethtool_rxnfc, fs.ring_cookie)); in ethtool_rxnfc_copy_from_compat() 859 .ring_cookie = crxnfc.fs.ring_cookie, in ethtool_rxnfc_copy_from_compat() 898 .ring_cookie = rxnfc->fs.ring_cookie, in ethtool_rxnfc_copy_to_compat() 3364 switch (fs->ring_cookie) { in ethtool_rx_flow_rule_create() 3376 act->queue.vf = ethtool_get_flow_spec_ring_vf(fs->ring_cookie); in ethtool_rx_flow_rule_create() 3377 act->queue.index = ethtool_get_flow_spec_ring(fs->ring_cookie); in ethtool_rx_flow_rule_create()
|
/linux-6.6.21/drivers/net/ethernet/sfc/siena/ |
D | ethtool_common.c | 667 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()
|
/linux-6.6.21/drivers/net/ethernet/sfc/ |
D | ethtool_common.c | 667 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() 940 if (rule->ring_cookie >= efx->n_rx_channels && in efx_ethtool_set_class_rule() 941 rule->ring_cookie != RX_CLS_FLOW_DISC) in efx_ethtool_set_class_rule() 956 (rule->ring_cookie == RX_CLS_FLOW_DISC) ? in efx_ethtool_set_class_rule() 957 EFX_FILTER_RX_DMAQ_ID_DROP : rule->ring_cookie); in efx_ethtool_set_class_rule()
|
/linux-6.6.21/drivers/net/ethernet/sfc/falcon/ |
D | ethtool.c | 814 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()
|
/linux-6.6.21/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-ethtool.c | 585 if (fs->ring_cookie != RX_CLS_FLOW_DISC && in dpaa2_eth_do_cls_rule() 586 fs->ring_cookie >= dpaa2_eth_queue_count(priv)) in dpaa2_eth_do_cls_rule() 639 if (fs->ring_cookie == RX_CLS_FLOW_DISC) in dpaa2_eth_do_cls_rule() 642 fs_act.flow_id = fs->ring_cookie; in dpaa2_eth_do_cls_rule()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs_ethtool.c | 450 *tirn = mlx5e_rx_res_get_tirn_direct(priv->rx_res, fs->ring_cookie); in flow_get_tirn() 476 if (fs->ring_cookie == RX_CLS_FLOW_DISC) { in add_ethtool_flow_rule() 672 if (fs->ring_cookie != RX_CLS_FLOW_DISC) in validate_flow() 673 if (fs->ring_cookie >= priv->channels.params.num_channels) in validate_flow()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/ |
D | en_ethtool.c | 1633 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()
|
/linux-6.6.21/drivers/net/ethernet/qlogic/qede/ |
D | qede_filter.c | 1365 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-6.6.21/drivers/net/ethernet/broadcom/genet/ |
D | bcmgenet_wol.c | 176 if (rule->fs.ring_cookie == RX_CLS_FLOW_WAKE) in bcmgenet_wol_power_down_cfg()
|
D | bcmgenet.c | 670 if (!fs->ring_cookie || fs->ring_cookie == RX_CLS_FLOW_WAKE) { in bcmgenet_hfb_create_rxnfc_filter() 679 fs->ring_cookie); in bcmgenet_hfb_create_rxnfc_filter() 1442 if (cmd->fs.ring_cookie > priv->hw_params->rx_queues && in bcmgenet_insert_flow() 1443 cmd->fs.ring_cookie != RX_CLS_FLOW_WAKE) { in bcmgenet_insert_flow() 1445 cmd->fs.ring_cookie); in bcmgenet_insert_flow()
|
/linux-6.6.21/drivers/net/ethernet/freescale/enetc/ |
D | enetc_ethtool.c | 582 if (fs->ring_cookie != RX_CLS_FLOW_DISC) { in enetc_set_cls_entry() 584 rfse.result = fs->ring_cookie; in enetc_set_cls_entry() 651 if (rxnfc->fs.ring_cookie >= priv->num_rx_rings && in enetc_set_rxnfc() 652 rxnfc->fs.ring_cookie != RX_CLS_FLOW_DISC) in enetc_set_rxnfc()
|
/linux-6.6.21/drivers/net/ethernet/freescale/ |
D | gianfar_ethtool.c | 1161 if (rule->ring_cookie == RX_CLS_FLOW_DISC) in gfar_convert_to_filer() 1164 tab->fe[tab->index - 1].ctrl |= (rule->ring_cookie << 10); in gfar_convert_to_filer() 1403 if ((cmd->fs.ring_cookie != RX_CLS_FLOW_DISC && in gfar_set_nfc() 1404 cmd->fs.ring_cookie >= priv->num_rx_queues) || in gfar_set_nfc()
|
/linux-6.6.21/drivers/net/ethernet/intel/ice/ |
D | ice_ethtool_fdir.c | 207 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()
|
/linux-6.6.21/drivers/net/ethernet/intel/iavf/ |
D | iavf_ethtool.c | 1183 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()
|
/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 2595 fsp->ring_cookie = RX_CLS_FLOW_DISC; in ixgbe_get_ethtool_fdir_entry() 2597 fsp->ring_cookie = rule->action; in ixgbe_get_ethtool_fdir_entry() 2823 if (fsp->ring_cookie == RX_CLS_FLOW_DISC) { in ixgbe_add_ethtool_fdir_entry() 2826 u32 ring = ethtool_get_flow_spec_ring(fsp->ring_cookie); in ixgbe_add_ethtool_fdir_entry() 2827 u8 vf = ethtool_get_flow_spec_ring_vf(fsp->ring_cookie); in ixgbe_add_ethtool_fdir_entry() 2895 if (fsp->ring_cookie == RX_CLS_FLOW_DISC) in ixgbe_add_ethtool_fdir_entry() 2898 input->action = fsp->ring_cookie; in ixgbe_add_ethtool_fdir_entry()
|
/linux-6.6.21/include/linux/ |
D | ethtool.h | 28 compat_u64 ring_cookie; member
|
/linux-6.6.21/drivers/net/ethernet/broadcom/asp2/ |
D | bcmasp_ethtool.c | 231 if (cmd->fs.ring_cookie == RX_CLS_FLOW_WAKE) in bcmasp_flow_insert()
|
D | bcmasp.c | 596 cur->ring_cookie != fs->ring_cookie) in bcmasp_netfilt_check_dup()
|
/linux-6.6.21/drivers/net/ethernet/cisco/enic/ |
D | enic_ethtool.c | 444 fsp->ring_cookie = n->rq_id; in enic_grxclsrule()
|