/linux-master/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-ethtool.c | 720 struct ethtool_rxnfc *rxnfc, u32 *rule_locs) 726 switch (rxnfc->cmd) { 732 rxnfc->data = priv->rx_hash_fields; 735 rxnfc->data = dpaa2_eth_queue_count(priv); 738 rxnfc->rule_cnt = 0; 739 rxnfc->rule_cnt = dpaa2_eth_num_cls_rules(priv); 740 rxnfc->data = max_rules; 743 if (rxnfc->fs.location >= max_rules) 745 rxnfc->fs.location = array_index_nospec(rxnfc 719 dpaa2_eth_get_rxnfc(struct net_device *net_dev, struct ethtool_rxnfc *rxnfc, u32 *rule_locs) argument 769 dpaa2_eth_set_rxnfc(struct net_device *net_dev, struct ethtool_rxnfc *rxnfc) argument [all...] |
/linux-master/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_ethtool.c | 483 static int enetc_get_rsshash(struct ethtool_rxnfc *rxnfc) argument 499 if (rxnfc->flow_type >= ARRAY_SIZE(rsshash)) 502 rxnfc->data = rsshash[rxnfc->flow_type]; 590 static int enetc_get_rxnfc(struct net_device *ndev, struct ethtool_rxnfc *rxnfc, argument 596 switch (rxnfc->cmd) { 598 rxnfc->data = priv->num_rx_rings; 602 return enetc_get_rsshash(rxnfc); 605 rxnfc->data = priv->si->num_fs_entries; 607 rxnfc 641 enetc_set_rxnfc(struct net_device *ndev, struct ethtool_rxnfc *rxnfc) argument [all...] |
/linux-master/drivers/net/ethernet/marvell/mvpp2/ |
H A D | mvpp2_cls.c | 1343 struct ethtool_rxnfc *rxnfc) 1347 if (rxnfc->fs.location >= MVPP2_N_RFS_ENTRIES_PER_FLOW) 1350 efs = port->rfs_rules[rxnfc->fs.location]; 1354 memcpy(rxnfc, &efs->rxnfc, sizeof(efs->rxnfc)); 1418 memcpy(&efs->rxnfc, info, sizeof(*info)); 1563 struct ethtool_rxnfc *rxnfc; local 1576 rxnfc = &port->rfs_rules[i]->rxnfc; 1342 mvpp2_ethtool_cls_rule_get(struct mvpp2_port *port, struct ethtool_rxnfc *rxnfc) argument [all...] |
H A D | mvpp2_cls.h | 306 struct ethtool_rxnfc *rxnfc);
|
H A D | mvpp2.h | 1177 struct ethtool_rxnfc rxnfc; member in struct:mvpp2_ethtool_fs
|
/linux-master/net/ethtool/ |
H A D | ioctl.c | 828 ethtool_rxnfc_copy_from_compat(struct ethtool_rxnfc *rxnfc, argument 844 sizeof(rxnfc->fs.m_ext)); 853 *rxnfc = (struct ethtool_rxnfc) { 872 static int ethtool_rxnfc_copy_from_user(struct ethtool_rxnfc *rxnfc, argument 877 return ethtool_rxnfc_copy_from_compat(rxnfc, useraddr, size); 879 if (copy_from_user(rxnfc, useraddr, size)) 886 const struct ethtool_rxnfc *rxnfc, 893 .cmd = rxnfc->cmd, 894 .flow_type = rxnfc->flow_type, 895 .data = rxnfc 885 ethtool_rxnfc_copy_to_compat(void __user *useraddr, const struct ethtool_rxnfc *rxnfc, size_t size, const u32 *rule_buf) argument 946 ethtool_rxnfc_copy_to_user(void __user *useraddr, const struct ethtool_rxnfc *rxnfc, size_t size, const u32 *rule_buf) argument [all...] |
/linux-master/drivers/net/ethernet/microchip/ |
H A D | lan743x_ethtool.c | 903 struct ethtool_rxnfc *rxnfc, 906 switch (rxnfc->cmd) { 908 rxnfc->data = 0; 909 switch (rxnfc->flow_type) { 912 rxnfc->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; 915 rxnfc->data |= RXH_IP_SRC | RXH_IP_DST; 920 rxnfc->data = LAN743X_USED_RX_CHANNELS; 902 lan743x_ethtool_get_rxnfc(struct net_device *netdev, struct ethtool_rxnfc *rxnfc, u32 *rule_locs) argument
|
/linux-master/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-ethtool.c | 501 struct ethtool_rxnfc *rxnfc, u32 *rule_locs) 505 switch (rxnfc->cmd) { 507 rxnfc->data = pdata->rx_ring_count; 500 xgbe_get_rxnfc(struct net_device *netdev, struct ethtool_rxnfc *rxnfc, u32 *rule_locs) argument
|
/linux-master/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_ethtool.c | 1107 struct ethtool_rxnfc *rxnfc, u32 *rule_locs) 1111 switch (rxnfc->cmd) { 1113 rxnfc->data = priv->plat->rx_queues_to_use; 1106 stmmac_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *rxnfc, u32 *rule_locs) argument
|
/linux-master/drivers/net/dsa/mv88e6xxx/ |
H A D | chip.c | 2374 struct ethtool_rxnfc *rxnfc, u32 *rule_locs) 2376 struct ethtool_rx_flow_spec *fs = &rxnfc->fs; 2384 switch (rxnfc->cmd) { 2386 rxnfc->data = 0; 2387 rxnfc->data |= RX_CLS_LOC_SPECIAL; 2388 rxnfc->rule_cnt = 0; 2391 rxnfc->rule_cnt++; 2403 rxnfc->data = 0; 2404 rxnfc->rule_cnt = 0; 2407 rule_locs[rxnfc 2373 mv88e6xxx_get_rxnfc(struct dsa_switch *ds, int port, struct ethtool_rxnfc *rxnfc, u32 *rule_locs) argument 2420 mv88e6xxx_set_rxnfc(struct dsa_switch *ds, int port, struct ethtool_rxnfc *rxnfc) argument [all...] |