/Linux-v4.19/net/ |
D | socket.c | 2813 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/ |
D | enic_ethtool.c | 428 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/ |
D | ethtool.h | 37 u32 rule_cnt; member
|
/Linux-v4.19/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sp.c | 873 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 …]
|
D | bnx2x_hsi.h | 3828 u8 rule_cnt; member
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs_ethtool.c | 775 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/ |
D | gianfar_ethtool.c | 1438 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/ |
D | ethtool.c | 987 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/ |
D | ethtool.c | 1039 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/ |
D | bcm_sf2_cfp.c | 1191 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/ |
D | ethtool.c | 1022 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/ |
D | ethtool.h | 981 __u32 rule_cnt; member
|
/Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 616 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/ |
D | qede_filter.c | 1384 if (cnt == info->rule_cnt) { in qede_get_cls_rule_all() 1393 info->rule_cnt = cnt; in qede_get_cls_rule_all()
|
D | qede_ethtool.c | 1154 info->rule_cnt = qede_get_arfs_filter_count(edev); in qede_get_rxnfc()
|
/Linux-v4.19/drivers/net/ethernet/intel/igb/ |
D | igb_ethtool.c | 2510 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/ |
D | en_ethtool.c | 1742 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/ |
D | ixgbe_ethtool.c | 2489 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/ |
D | i40e_ethtool.c | 2830 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/ |
D | mtk_eth_soc.c | 1610 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/ |
D | macb_main.c | 3035 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/ |
D | niu.c | 7252 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()
|