Searched refs:rxnfc (Results 1 – 10 of 10) sorted by relevance
/Linux-v5.4/drivers/net/ethernet/freescale/enetc/ |
D | enetc_ethtool.c | 276 static int enetc_get_rsshash(struct ethtool_rxnfc *rxnfc) in enetc_get_rsshash() argument 292 if (rxnfc->flow_type >= ARRAY_SIZE(rsshash)) in enetc_get_rsshash() 295 rxnfc->data = rsshash[rxnfc->flow_type]; in enetc_get_rsshash() 383 static int enetc_get_rxnfc(struct net_device *ndev, struct ethtool_rxnfc *rxnfc, in enetc_get_rxnfc() argument 389 switch (rxnfc->cmd) { in enetc_get_rxnfc() 391 rxnfc->data = priv->num_rx_rings; in enetc_get_rxnfc() 395 return enetc_get_rsshash(rxnfc); in enetc_get_rxnfc() 398 rxnfc->data = priv->si->num_fs_entries; in enetc_get_rxnfc() 400 rxnfc->rule_cnt = 0; in enetc_get_rxnfc() 403 rxnfc->rule_cnt++; in enetc_get_rxnfc() [all …]
|
/Linux-v5.4/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-ethtool.c | 634 struct ethtool_rxnfc *rxnfc, u32 *rule_locs) in dpaa2_eth_get_rxnfc() argument 640 switch (rxnfc->cmd) { in dpaa2_eth_get_rxnfc() 646 rxnfc->data = priv->rx_hash_fields; in dpaa2_eth_get_rxnfc() 649 rxnfc->data = dpaa2_eth_queue_count(priv); in dpaa2_eth_get_rxnfc() 652 rxnfc->rule_cnt = 0; in dpaa2_eth_get_rxnfc() 653 rxnfc->rule_cnt = num_rules(priv); in dpaa2_eth_get_rxnfc() 654 rxnfc->data = max_rules; in dpaa2_eth_get_rxnfc() 657 if (rxnfc->fs.location >= max_rules) in dpaa2_eth_get_rxnfc() 659 rxnfc->fs.location = array_index_nospec(rxnfc->fs.location, in dpaa2_eth_get_rxnfc() 661 if (!priv->cls_rules[rxnfc->fs.location].in_use) in dpaa2_eth_get_rxnfc() [all …]
|
/Linux-v5.4/drivers/net/ethernet/microchip/ |
D | lan743x_ethtool.c | 541 struct ethtool_rxnfc *rxnfc, in lan743x_ethtool_get_rxnfc() argument 544 switch (rxnfc->cmd) { in lan743x_ethtool_get_rxnfc() 546 rxnfc->data = 0; in lan743x_ethtool_get_rxnfc() 547 switch (rxnfc->flow_type) { in lan743x_ethtool_get_rxnfc() 550 rxnfc->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; in lan743x_ethtool_get_rxnfc() 553 rxnfc->data |= RXH_IP_SRC | RXH_IP_DST; in lan743x_ethtool_get_rxnfc() 558 rxnfc->data = LAN743X_USED_RX_CHANNELS; in lan743x_ethtool_get_rxnfc()
|
/Linux-v5.4/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_cls.c | 1331 struct ethtool_rxnfc *rxnfc) in mvpp2_ethtool_cls_rule_get() argument 1335 if (rxnfc->fs.location >= MVPP2_N_RFS_ENTRIES_PER_FLOW) in mvpp2_ethtool_cls_rule_get() 1338 efs = port->rfs_rules[rxnfc->fs.location]; in mvpp2_ethtool_cls_rule_get() 1342 memcpy(rxnfc, &efs->rxnfc, sizeof(efs->rxnfc)); in mvpp2_ethtool_cls_rule_get() 1406 memcpy(&efs->rxnfc, info, sizeof(*info)); in mvpp2_ethtool_cls_rule_ins() 1548 struct ethtool_rxnfc *rxnfc; in mvpp22_port_rss_ctx_delete() local 1561 rxnfc = &port->rfs_rules[i]->rxnfc; in mvpp22_port_rss_ctx_delete() 1562 if (!(rxnfc->fs.flow_type & FLOW_RSS) || in mvpp22_port_rss_ctx_delete() 1563 rxnfc->rss_context != port_ctx) in mvpp22_port_rss_ctx_delete() 1566 ret = mvpp2_ethtool_cls_rule_del(port, rxnfc); in mvpp22_port_rss_ctx_delete() [all …]
|
D | mvpp2_cls.h | 306 struct ethtool_rxnfc *rxnfc);
|
D | mvpp2.h | 881 struct ethtool_rxnfc rxnfc; member
|
/Linux-v5.4/net/ |
D | socket.c | 3015 struct ethtool_rxnfc __user *rxnfc = NULL; in ethtool_ioctl() local 3053 rxnfc = compat_alloc_user_space(buf_size); in ethtool_ioctl() 3060 ifr.ifr_data = convert_in ? rxnfc : (void __user *)compat_rxnfc; in ethtool_ioctl() 3069 sizeof(rxnfc->fs.m_ext)); in ethtool_ioctl() 3076 if (copy_in_user(rxnfc, compat_rxnfc, in ethtool_ioctl() 3077 (void __user *)(&rxnfc->fs.m_ext + 1) - in ethtool_ioctl() 3078 (void __user *)rxnfc) || in ethtool_ioctl() 3079 copy_in_user(&rxnfc->fs.ring_cookie, in ethtool_ioctl() 3081 (void __user *)(&rxnfc->fs.location + 1) - in ethtool_ioctl() 3082 (void __user *)&rxnfc->fs.ring_cookie)) in ethtool_ioctl() [all …]
|
/Linux-v5.4/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-ethtool.c | 519 struct ethtool_rxnfc *rxnfc, u32 *rule_locs) in xgbe_get_rxnfc() argument 523 switch (rxnfc->cmd) { in xgbe_get_rxnfc() 525 rxnfc->data = pdata->rx_ring_count; in xgbe_get_rxnfc()
|
/Linux-v5.4/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_ethtool.c | 775 struct ethtool_rxnfc *rxnfc, u32 *rule_locs) in stmmac_get_rxnfc() argument 779 switch (rxnfc->cmd) { in stmmac_get_rxnfc() 781 rxnfc->data = priv->plat->rx_queues_to_use; in stmmac_get_rxnfc()
|
/Linux-v5.4/drivers/net/dsa/mv88e6xxx/ |
D | chip.c | 1658 struct ethtool_rxnfc *rxnfc, u32 *rule_locs) in mv88e6xxx_get_rxnfc() argument 1660 struct ethtool_rx_flow_spec *fs = &rxnfc->fs; in mv88e6xxx_get_rxnfc() 1668 switch (rxnfc->cmd) { in mv88e6xxx_get_rxnfc() 1670 rxnfc->data = 0; in mv88e6xxx_get_rxnfc() 1671 rxnfc->data |= RX_CLS_LOC_SPECIAL; in mv88e6xxx_get_rxnfc() 1672 rxnfc->rule_cnt = 0; in mv88e6xxx_get_rxnfc() 1675 rxnfc->rule_cnt++; in mv88e6xxx_get_rxnfc() 1687 rxnfc->data = 0; in mv88e6xxx_get_rxnfc() 1688 rxnfc->rule_cnt = 0; in mv88e6xxx_get_rxnfc() 1691 rule_locs[rxnfc->rule_cnt++] = id; in mv88e6xxx_get_rxnfc() [all …]
|