Searched refs:rxnfc (Results 1 – 10 of 10) sorted by relevance
| /linux/drivers/net/ethernet/freescale/enetc/ |
| A D | enetc_ethtool.c | 324 rxnfc->data = rsshash[rxnfc->flow_type]; in enetc_get_rsshash() 418 switch (rxnfc->cmd) { in enetc_get_rxnfc() 420 rxnfc->data = priv->num_rx_rings; in enetc_get_rxnfc() 424 return enetc_get_rsshash(rxnfc); in enetc_get_rxnfc() 429 rxnfc->rule_cnt = 0; in enetc_get_rxnfc() 432 rxnfc->rule_cnt++; in enetc_get_rxnfc() 439 rxnfc->fs = priv->cls_rules[rxnfc->fs.location].fs; in enetc_get_rxnfc() 449 if (j == rxnfc->rule_cnt) in enetc_get_rxnfc() 454 rxnfc->rule_cnt = j; in enetc_get_rxnfc() 468 switch (rxnfc->cmd) { in enetc_set_rxnfc() [all …]
|
| /linux/drivers/net/ethernet/freescale/dpaa2/ |
| A D | dpaa2-ethtool.c | 694 switch (rxnfc->cmd) { in dpaa2_eth_get_rxnfc() 706 rxnfc->rule_cnt = 0; in dpaa2_eth_get_rxnfc() 708 rxnfc->data = max_rules; in dpaa2_eth_get_rxnfc() 713 rxnfc->fs.location = array_index_nospec(rxnfc->fs.location, in dpaa2_eth_get_rxnfc() 717 rxnfc->fs = priv->cls_rules[rxnfc->fs.location].fs; in dpaa2_eth_get_rxnfc() 723 if (j == rxnfc->rule_cnt) in dpaa2_eth_get_rxnfc() 727 rxnfc->rule_cnt = j; in dpaa2_eth_get_rxnfc() 728 rxnfc->data = max_rules; in dpaa2_eth_get_rxnfc() 742 switch (rxnfc->cmd) { in dpaa2_eth_set_rxnfc() 744 if ((rxnfc->data & DPAA2_RXH_SUPPORTED) != rxnfc->data) in dpaa2_eth_set_rxnfc() [all …]
|
| /linux/drivers/net/ethernet/marvell/mvpp2/ |
| A D | mvpp2_cls.c | 1337 struct ethtool_rxnfc *rxnfc) in mvpp2_ethtool_cls_rule_get() argument 1341 if (rxnfc->fs.location >= MVPP2_N_RFS_ENTRIES_PER_FLOW) in mvpp2_ethtool_cls_rule_get() 1344 efs = port->rfs_rules[rxnfc->fs.location]; in mvpp2_ethtool_cls_rule_get() 1348 memcpy(rxnfc, &efs->rxnfc, sizeof(efs->rxnfc)); in mvpp2_ethtool_cls_rule_get() 1412 memcpy(&efs->rxnfc, info, sizeof(*info)); in mvpp2_ethtool_cls_rule_ins() 1557 struct ethtool_rxnfc *rxnfc; in mvpp22_port_rss_ctx_delete() local 1570 rxnfc = &port->rfs_rules[i]->rxnfc; in mvpp22_port_rss_ctx_delete() 1571 if (!(rxnfc->fs.flow_type & FLOW_RSS) || in mvpp22_port_rss_ctx_delete() 1572 rxnfc->rss_context != port_ctx) in mvpp22_port_rss_ctx_delete() 1575 ret = mvpp2_ethtool_cls_rule_del(port, rxnfc); in mvpp22_port_rss_ctx_delete() [all …]
|
| A D | mvpp2_cls.h | 306 struct ethtool_rxnfc *rxnfc);
|
| A D | mvpp2.h | 1177 struct ethtool_rxnfc rxnfc; member
|
| /linux/drivers/net/ethernet/microchip/ |
| A 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/net/ethtool/ |
| A D | ioctl.c | 847 sizeof(rxnfc->fs.m_ext)); in ethtool_rxnfc_copy_from_compat() 856 *rxnfc = (struct ethtool_rxnfc) { in ethtool_rxnfc_copy_from_compat() 896 .cmd = rxnfc->cmd, in ethtool_rxnfc_copy_to_compat() 897 .flow_type = rxnfc->flow_type, in ethtool_rxnfc_copy_to_compat() 898 .data = rxnfc->data, in ethtool_rxnfc_copy_to_compat() 901 .h_u = rxnfc->fs.h_u, in ethtool_rxnfc_copy_to_compat() 902 .h_ext = rxnfc->fs.h_ext, in ethtool_rxnfc_copy_to_compat() 903 .m_u = rxnfc->fs.m_u, in ethtool_rxnfc_copy_to_compat() 904 .m_ext = rxnfc->fs.m_ext, in ethtool_rxnfc_copy_to_compat() 906 .location = rxnfc->fs.location, in ethtool_rxnfc_copy_to_compat() [all …]
|
| /linux/drivers/net/ethernet/amd/xgbe/ |
| A D | xgbe-ethtool.c | 496 struct ethtool_rxnfc *rxnfc, u32 *rule_locs) in xgbe_get_rxnfc() argument 500 switch (rxnfc->cmd) { in xgbe_get_rxnfc() 502 rxnfc->data = pdata->rx_ring_count; in xgbe_get_rxnfc()
|
| /linux/drivers/net/ethernet/stmicro/stmmac/ |
| A D | stmmac_ethtool.c | 977 struct ethtool_rxnfc *rxnfc, u32 *rule_locs) in stmmac_get_rxnfc() argument 981 switch (rxnfc->cmd) { in stmmac_get_rxnfc() 983 rxnfc->data = priv->plat->rx_queues_to_use; in stmmac_get_rxnfc()
|
| /linux/drivers/net/dsa/mv88e6xxx/ |
| A D | chip.c | 1971 struct ethtool_rx_flow_spec *fs = &rxnfc->fs; in mv88e6xxx_get_rxnfc() 1979 switch (rxnfc->cmd) { in mv88e6xxx_get_rxnfc() 1981 rxnfc->data = 0; in mv88e6xxx_get_rxnfc() 1982 rxnfc->data |= RX_CLS_LOC_SPECIAL; in mv88e6xxx_get_rxnfc() 1983 rxnfc->rule_cnt = 0; in mv88e6xxx_get_rxnfc() 1986 rxnfc->rule_cnt++; in mv88e6xxx_get_rxnfc() 1998 rxnfc->data = 0; in mv88e6xxx_get_rxnfc() 1999 rxnfc->rule_cnt = 0; in mv88e6xxx_get_rxnfc() 2002 rule_locs[rxnfc->rule_cnt++] = id; in mv88e6xxx_get_rxnfc() 2016 struct ethtool_rxnfc *rxnfc) in mv88e6xxx_set_rxnfc() argument [all …]
|
Completed in 47 milliseconds