/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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() 906 queue_num = ring_cookie % SF2_NUM_EGRESS_QUEUES; in bcm_sf2_cfp_rule_insert()
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | ethtool.h | 318 __u64 ring_cookie; member 324 static inline __u64 ethtool_get_flow_spec_ring(__u64 ring_cookie) in ethtool_get_flow_spec_ring() argument 326 return ETHTOOL_RX_FLOW_SPEC_RING & ring_cookie; in ethtool_get_flow_spec_ring() 328 static inline __u64 ethtool_get_flow_spec_ring_vf(__u64 ring_cookie) in ethtool_get_flow_spec_ring_vf() argument 330 return (ETHTOOL_RX_FLOW_SPEC_RING_VF & ring_cookie) >> in ethtool_get_flow_spec_ring_vf()
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | ethtool.h | 998 __u64 ring_cookie; member 1016 static inline __u64 ethtool_get_flow_spec_ring(__u64 ring_cookie) in ethtool_get_flow_spec_ring() argument 1018 return ETHTOOL_RX_FLOW_SPEC_RING & ring_cookie; in ethtool_get_flow_spec_ring() 1021 static inline __u64 ethtool_get_flow_spec_ring_vf(__u64 ring_cookie) in ethtool_get_flow_spec_ring_vf() argument 1023 return (ETHTOOL_RX_FLOW_SPEC_RING_VF & ring_cookie) >> in ethtool_get_flow_spec_ring_vf()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-ethtool.c | 553 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/enetc/ |
D | enetc_ethtool.c | 387 if (fs->ring_cookie != RX_CLS_FLOW_DISC) { in enetc_set_cls_entry() 389 rfse.result = fs->ring_cookie; in enetc_set_cls_entry() 456 if (rxnfc->fs.ring_cookie >= priv->num_rx_rings && in enetc_set_rxnfc() 457 rxnfc->fs.ring_cookie != RX_CLS_FLOW_DISC) in enetc_set_rxnfc()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
D | ethtool_common.c | 666 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/ |
D | ethtool.c | 804 rule->ring_cookie = RX_CLS_FLOW_DISC; in ef4_ethtool_get_class_rule() 806 rule->ring_cookie = spec.dmaq_id; in ef4_ethtool_get_class_rule() 1039 if (rule->ring_cookie >= efx->n_rx_channels && in ef4_ethtool_set_class_rule() 1040 rule->ring_cookie != RX_CLS_FLOW_DISC) in ef4_ethtool_set_class_rule() 1051 (rule->ring_cookie == RX_CLS_FLOW_DISC) ? in ef4_ethtool_set_class_rule() 1052 EF4_FILTER_RX_DMAQ_ID_DROP : rule->ring_cookie); in ef4_ethtool_set_class_rule()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs_ethtool.c | 419 if (fs->ring_cookie == RX_CLS_FLOW_DISC) { in add_ethtool_flow_rule() 427 mlx5e_qid_get_ch_and_group(params, fs->ring_cookie, &ix, &group); in add_ethtool_flow_rule() 616 if (fs->ring_cookie != RX_CLS_FLOW_DISC) in validate_flow() 618 fs->ring_cookie)) in validate_flow()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/genet/ |
D | bcmgenet_wol.c | 159 if (rule->fs.ring_cookie == RX_CLS_FLOW_WAKE) in bcmgenet_wol_power_down_cfg()
|
D | bcmgenet.c | 688 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() 1416 if (cmd->fs.ring_cookie > priv->hw_params->rx_queues && in bcmgenet_insert_flow() 1417 cmd->fs.ring_cookie != RX_CLS_FLOW_WAKE) { in bcmgenet_insert_flow() 1419 cmd->fs.ring_cookie); in bcmgenet_insert_flow()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/ |
D | ice_ethtool_fdir.c | 206 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
D | en_ethtool.c | 1622 if (cmd->fs.ring_cookie == RX_CLS_FLOW_DISC) in mlx4_en_flow_replace() 1624 else if (cmd->fs.ring_cookie & EN_ETHTOOL_QP_ATTACH) { in mlx4_en_flow_replace() 1625 qpn = cmd->fs.ring_cookie & (EN_ETHTOOL_QP_ATTACH - 1); in mlx4_en_flow_replace() 1627 if (cmd->fs.ring_cookie >= priv->rx_ring_num) { in mlx4_en_flow_replace() 1629 cmd->fs.ring_cookie); in mlx4_en_flow_replace() 1632 qpn = priv->rss_map.qps[cmd->fs.ring_cookie].qpn; in mlx4_en_flow_replace() 1635 cmd->fs.ring_cookie); in mlx4_en_flow_replace()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qede/ |
D | qede_filter.c | 1374 fsp->ring_cookie = fltr->rxq_id; in qede_get_cls_rule_entry() 1377 fsp->ring_cookie |= ((u64)fltr->vfid) << in qede_get_cls_rule_entry() 1382 fsp->ring_cookie = RX_CLS_FLOW_DISC; in qede_get_cls_rule_entry() 1620 if (fs->ring_cookie == RX_CLS_FLOW_DISC) { in qede_flow_set_destination() 1625 n->vfid = ethtool_get_flow_spec_ring_vf(fs->ring_cookie); in qede_flow_set_destination() 1626 n->rxq_id = ethtool_get_flow_spec_ring(fs->ring_cookie); in qede_flow_set_destination()
|
/kernel/linux/linux-5.10/net/ethtool/ |
D | ioctl.c | 830 offsetof(struct compat_ethtool_rxnfc, fs.ring_cookie) != in ethtool_rxnfc_copy_from_compat() 832 offsetof(struct ethtool_rxnfc, fs.ring_cookie)); in ethtool_rxnfc_copy_from_compat() 847 .ring_cookie = crxnfc.fs.ring_cookie, in ethtool_rxnfc_copy_from_compat() 886 .ring_cookie = rxnfc->fs.ring_cookie, in ethtool_rxnfc_copy_to_compat() 3203 switch (fs->ring_cookie) { in ethtool_rx_flow_rule_create() 3215 act->queue.vf = ethtool_get_flow_spec_ring_vf(fs->ring_cookie); in ethtool_rx_flow_rule_create() 3216 act->queue.index = ethtool_get_flow_spec_ring(fs->ring_cookie); in ethtool_rx_flow_rule_create()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/ |
D | gianfar_ethtool.c | 1151 if (rule->ring_cookie == RX_CLS_FLOW_DISC) in gfar_convert_to_filer() 1154 tab->fe[tab->index - 1].ctrl |= (rule->ring_cookie << 10); in gfar_convert_to_filer() 1393 if ((cmd->fs.ring_cookie != RX_CLS_FLOW_DISC && in gfar_set_nfc() 1394 cmd->fs.ring_cookie >= priv->num_rx_queues) || in gfar_set_nfc()
|
/kernel/linux/linux-5.10/include/linux/ |
D | ethtool.h | 26 compat_u64 ring_cookie; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 2573 fsp->ring_cookie = RX_CLS_FLOW_DISC; in ixgbe_get_ethtool_fdir_entry() 2575 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/ |
D | igc_ethtool.c | 952 fsp->ring_cookie = rule->action; in igc_ethtool_get_nfc_rule() 1186 rule->action = fsp->ring_cookie; in igc_ethtool_init_nfc_rule() 1284 if (fsp->ring_cookie >= adapter->num_rx_queues) { in igc_ethtool_add_nfc_rule()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cisco/enic/ |
D | enic_ethtool.c | 451 fsp->ring_cookie = n->rq_id; in enic_grxclsrule()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 3328 fsp->ring_cookie = RX_CLS_FLOW_DISC; in i40e_get_ethtool_fdir_entry() 3330 fsp->ring_cookie = rule->q_index; in i40e_get_ethtool_fdir_entry() 3343 fsp->ring_cookie |= ring_vf; in i40e_get_ethtool_fdir_entry() 4556 if (fsp->ring_cookie == RX_CLS_FLOW_DISC) { in i40e_add_fdir_ethtool() 4559 u32 ring = ethtool_get_flow_spec_ring(fsp->ring_cookie); in i40e_add_fdir_ethtool() 4560 u8 vf = ethtool_get_flow_spec_ring_vf(fsp->ring_cookie); in i40e_add_fdir_ethtool()
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | ethtool.h | 373 __u64 ring_cookie; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igb/ |
D | igb_ethtool.c | 2463 fsp->ring_cookie = rule->action; in igb_get_ethtool_nfc_entry() 2921 if ((fsp->ring_cookie == RX_CLS_FLOW_DISC) || in igb_add_ethtool_nfc_entry() 2922 (fsp->ring_cookie >= adapter->num_rx_queues)) { in igb_add_ethtool_nfc_entry() 2968 input->action = fsp->ring_cookie; in igb_add_ethtool_nfc_entry()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_ethtool.c | 1691 fs->ring_cookie = RX_CLS_FLOW_DISC; in cxgb4_fill_filter_rule() 1693 fs->ring_cookie = dfs->iq; in cxgb4_fill_filter_rule()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cadence/ |
D | macb_main.c | 3211 t2_scr = GEM_BFINS(QUEUE, (fs->ring_cookie) & 0xFF, t2_scr); in gem_prog_cmp_regs() 3239 fs->flow_type, (int)fs->ring_cookie, fs->location, in gem_add_flow_filter() 3292 fs->flow_type, (int)fs->ring_cookie, fs->location, in gem_del_flow_filter() 3382 || (cmd->fs.ring_cookie >= bp->num_queues)) { in gem_set_rxnfc()
|