Home
last modified time | relevance | path

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

/net/
Dsocket.c3098 u32 rule_cnt = 0, actual_rule_cnt; in ethtool_ioctl() local
3119 if (get_user(rule_cnt, &compat_rxnfc->rule_cnt)) in ethtool_ioctl()
3121 if (rule_cnt > KMALLOC_MAX_SIZE / sizeof(u32)) in ethtool_ioctl()
3123 buf_size += rule_cnt * sizeof(u32); in ethtool_ioctl()
3166 if (put_user(rule_cnt, &rxnfc->rule_cnt)) in ethtool_ioctl()
3168 } else if (copy_in_user(&rxnfc->rule_cnt, in ethtool_ioctl()
3169 &compat_rxnfc->rule_cnt, in ethtool_ioctl()
3170 sizeof(rxnfc->rule_cnt))) in ethtool_ioctl()
3186 copy_in_user(&compat_rxnfc->rule_cnt, &rxnfc->rule_cnt, in ethtool_ioctl()
3187 sizeof(rxnfc->rule_cnt))) in ethtool_ioctl()
[all …]
/net/core/
Dethtool.c944 if (info.rule_cnt > 0) { in ethtool_get_rxnfc()
945 if (info.rule_cnt <= KMALLOC_MAX_SIZE / sizeof(u32)) in ethtool_get_rxnfc()
946 rule_buf = kcalloc(info.rule_cnt, sizeof(u32), in ethtool_get_rxnfc()
964 info.rule_cnt * sizeof(u32))) in ethtool_get_rxnfc()