Home
last modified time | relevance | path

Searched refs:rule_cnt (Results 1 – 22 of 22) sorted by relevance

/Linux-v4.19/net/
Dsocket.c2813 u32 rule_cnt = 0, actual_rule_cnt; in ethtool_ioctl() local
2834 if (get_user(rule_cnt, &compat_rxnfc->rule_cnt)) in ethtool_ioctl()
2836 if (rule_cnt > KMALLOC_MAX_SIZE / sizeof(u32)) in ethtool_ioctl()
2838 buf_size += rule_cnt * sizeof(u32); in ethtool_ioctl()
2881 if (put_user(rule_cnt, &rxnfc->rule_cnt)) in ethtool_ioctl()
2883 } else if (copy_in_user(&rxnfc->rule_cnt, in ethtool_ioctl()
2884 &compat_rxnfc->rule_cnt, in ethtool_ioctl()
2885 sizeof(rxnfc->rule_cnt))) in ethtool_ioctl()
2901 copy_in_user(&compat_rxnfc->rule_cnt, &rxnfc->rule_cnt, in ethtool_ioctl()
2902 sizeof(rxnfc->rule_cnt))) in ethtool_ioctl()
[all …]
/Linux-v4.19/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c428 if (cnt == cmd->rule_cnt) in enic_grxclsrlall()
434 cmd->rule_cnt = cnt; in enic_grxclsrlall()
532 cmd->rule_cnt = enic->rfs_h.max - enic->rfs_h.free; in enic_get_rxnfc()
/Linux-v4.19/include/linux/
Dethtool.h37 u32 rule_cnt; member
/Linux-v4.19/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sp.c873 struct eth_classify_header *hdr, int rule_cnt) in bnx2x_vlan_mac_set_rdata_hdr_e2() argument
877 hdr->rule_cnt = (u8)rule_cnt; in bnx2x_vlan_mac_set_rdata_hdr_e2()
889 int rule_cnt = rule_idx + 1, cmd = elem->cmd_data.vlan_mac.cmd; in bnx2x_set_one_mac_e2() local
942 rule_cnt++; in bnx2x_set_one_mac_e2()
963 rule_cnt); in bnx2x_set_one_mac_e2()
1073 int rule_cnt = rule_idx + 1; in bnx2x_set_one_vlan_e2() local
1096 rule_cnt++; in bnx2x_set_one_vlan_e2()
1112 rule_cnt); in bnx2x_set_one_vlan_e2()
1123 int rule_cnt = rule_idx + 1; in bnx2x_set_one_vlan_mac_e2() local
1151 rule_cnt++; in bnx2x_set_one_vlan_mac_e2()
[all …]
Dbnx2x_hsi.h3828 u8 rule_cnt; member
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c775 while ((!err || err == -ENOENT) && idx < info->rule_cnt) { in mlx5e_ethtool_get_all_flows()
829 info->rule_cnt = priv->fs.ethtool.tot_num_rules; in mlx5e_get_rxnfc()
/Linux-v4.19/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c1438 if (i == cmd->rule_cnt) in gfar_get_cls_all()
1445 cmd->rule_cnt = i; in gfar_get_cls_all()
1496 cmd->rule_cnt = priv->rx_list.count; in gfar_get_nfc()
/Linux-v4.19/drivers/net/ethernet/sfc/falcon/
Dethtool.c987 info->rule_cnt = in ef4_ethtool_get_rxnfc()
1002 rule_locs, info->rule_cnt); in ef4_ethtool_get_rxnfc()
1005 info->rule_cnt = rc; in ef4_ethtool_get_rxnfc()
/Linux-v4.19/drivers/net/ethernet/sfc/
Dethtool.c1039 info->rule_cnt = in efx_ethtool_get_rxnfc()
1058 rule_locs, info->rule_cnt); in efx_ethtool_get_rxnfc()
1061 info->rule_cnt = rc; in efx_ethtool_get_rxnfc()
/Linux-v4.19/drivers/net/dsa/
Dbcm_sf2_cfp.c1191 nfc->rule_cnt = rules_cnt; in bcm_sf2_cfp_rule_get_all()
1208 nfc->rule_cnt = bitmap_weight(priv->cfp.unique, in bcm_sf2_get_rxnfc()
/Linux-v4.19/net/core/
Dethtool.c1022 if (info.rule_cnt > 0) { in ethtool_get_rxnfc()
1023 if (info.rule_cnt <= KMALLOC_MAX_SIZE / sizeof(u32)) in ethtool_get_rxnfc()
1024 rule_buf = kcalloc(info.rule_cnt, sizeof(u32), in ethtool_get_rxnfc()
1042 info.rule_cnt * sizeof(u32))) in ethtool_get_rxnfc()
/Linux-v4.19/include/uapi/linux/
Dethtool.h981 __u32 rule_cnt; member
/Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c616 if (j == cmd->rule_cnt) in bnxt_grxclsrlall()
621 if (j == cmd->rule_cnt) in bnxt_grxclsrlall()
624 cmd->rule_cnt = j; in bnxt_grxclsrlall()
860 cmd->rule_cnt = bp->ntp_fltr_count; in bnxt_get_rxnfc()
/Linux-v4.19/drivers/net/ethernet/qlogic/qede/
Dqede_filter.c1384 if (cnt == info->rule_cnt) { in qede_get_cls_rule_all()
1393 info->rule_cnt = cnt; in qede_get_cls_rule_all()
Dqede_ethtool.c1154 info->rule_cnt = qede_get_arfs_filter_count(edev); in qede_get_rxnfc()
/Linux-v4.19/drivers/net/ethernet/intel/igb/
Digb_ethtool.c2510 if (cnt == cmd->rule_cnt) in igb_get_ethtool_nfc_all()
2516 cmd->rule_cnt = cnt; in igb_get_ethtool_nfc_all()
2575 cmd->rule_cnt = adapter->nfc_filter_count; in igb_get_rxnfc()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1742 cmd->rule_cnt = mlx4_en_get_num_flows(priv); in mlx4_en_get_rxnfc()
1748 while ((!err || err == -ENOENT) && priority < cmd->rule_cnt) { in mlx4_en_get_rxnfc()
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c2489 if (cnt == cmd->rule_cnt) in ixgbe_get_ethtool_fdir_all()
2495 cmd->rule_cnt = cnt; in ixgbe_get_ethtool_fdir_all()
2554 cmd->rule_cnt = adapter->fdir_filter_count; in ixgbe_get_rxnfc()
/Linux-v4.19/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c2830 if (cnt == cmd->rule_cnt) in i40e_get_ethtool_fdir_all()
2837 cmd->rule_cnt = cnt; in i40e_get_ethtool_fdir_all()
2983 cmd->rule_cnt = pf->fdir_pf_active_filters; in i40e_get_rxnfc()
/Linux-v4.19/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c1610 cmd->rule_cnt = cnt; in mtk_hwlro_get_fdir_all()
2316 cmd->rule_cnt = mac->hwlro_ip_cnt; in mtk_get_rxnfc()
/Linux-v4.19/drivers/net/ethernet/cadence/
Dmacb_main.c3035 if (cnt == cmd->rule_cnt) in gem_get_all_flow_entries()
3041 cmd->rule_cnt = cnt; in gem_get_all_flow_entries()
3057 cmd->rule_cnt = bp->rx_fs_list.count; in gem_get_rxnfc()
/Linux-v4.19/drivers/net/ethernet/sun/
Dniu.c7252 if (cnt == nfc->rule_cnt) { in niu_get_ethtool_tcam_all()
7261 nfc->rule_cnt = cnt; in niu_get_ethtool_tcam_all()
7280 cmd->rule_cnt = tcam_get_valid_entry_cnt(np); in niu_get_nfc()