Home
last modified time | relevance | path

Searched refs:rxnfc (Results 1 - 20 of 20) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/enetc/
H A Denetc_ethtool.c288 static int enetc_get_rsshash(struct ethtool_rxnfc *rxnfc) in enetc_get_rsshash() argument
304 if (rxnfc->flow_type >= ARRAY_SIZE(rsshash)) in enetc_get_rsshash()
307 rxnfc->data = rsshash[rxnfc->flow_type]; in enetc_get_rsshash()
395 static int enetc_get_rxnfc(struct net_device *ndev, struct ethtool_rxnfc *rxnfc, in enetc_get_rxnfc() argument
401 switch (rxnfc->cmd) { in enetc_get_rxnfc()
403 rxnfc->data = priv->num_rx_rings; in enetc_get_rxnfc()
407 return enetc_get_rsshash(rxnfc); in enetc_get_rxnfc()
410 rxnfc->data = priv->si->num_fs_entries; in enetc_get_rxnfc()
412 rxnfc in enetc_get_rxnfc()
446 enetc_set_rxnfc(struct net_device *ndev, struct ethtool_rxnfc *rxnfc) enetc_set_rxnfc() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-ethtool.c688 struct ethtool_rxnfc *rxnfc, u32 *rule_locs) in dpaa2_eth_get_rxnfc()
694 switch (rxnfc->cmd) { in dpaa2_eth_get_rxnfc()
700 rxnfc->data = priv->rx_hash_fields; in dpaa2_eth_get_rxnfc()
703 rxnfc->data = dpaa2_eth_queue_count(priv); in dpaa2_eth_get_rxnfc()
706 rxnfc->rule_cnt = 0; in dpaa2_eth_get_rxnfc()
707 rxnfc->rule_cnt = dpaa2_eth_num_cls_rules(priv); in dpaa2_eth_get_rxnfc()
708 rxnfc->data = max_rules; in dpaa2_eth_get_rxnfc()
711 if (rxnfc->fs.location >= max_rules) in dpaa2_eth_get_rxnfc()
713 rxnfc->fs.location = array_index_nospec(rxnfc in dpaa2_eth_get_rxnfc()
687 dpaa2_eth_get_rxnfc(struct net_device *net_dev, struct ethtool_rxnfc *rxnfc, u32 *rule_locs) dpaa2_eth_get_rxnfc() argument
737 dpaa2_eth_set_rxnfc(struct net_device *net_dev, struct ethtool_rxnfc *rxnfc) dpaa2_eth_set_rxnfc() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-ethtool.c720 struct ethtool_rxnfc *rxnfc, u32 *rule_locs) in dpaa2_eth_get_rxnfc()
726 switch (rxnfc->cmd) { in dpaa2_eth_get_rxnfc()
732 rxnfc->data = priv->rx_hash_fields; in dpaa2_eth_get_rxnfc()
735 rxnfc->data = dpaa2_eth_queue_count(priv); in dpaa2_eth_get_rxnfc()
738 rxnfc->rule_cnt = 0; in dpaa2_eth_get_rxnfc()
739 rxnfc->rule_cnt = dpaa2_eth_num_cls_rules(priv); in dpaa2_eth_get_rxnfc()
740 rxnfc->data = max_rules; in dpaa2_eth_get_rxnfc()
743 if (rxnfc->fs.location >= max_rules) in dpaa2_eth_get_rxnfc()
745 rxnfc->fs.location = array_index_nospec(rxnfc in dpaa2_eth_get_rxnfc()
719 dpaa2_eth_get_rxnfc(struct net_device *net_dev, struct ethtool_rxnfc *rxnfc, u32 *rule_locs) dpaa2_eth_get_rxnfc() argument
769 dpaa2_eth_set_rxnfc(struct net_device *net_dev, struct ethtool_rxnfc *rxnfc) dpaa2_eth_set_rxnfc() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/enetc/
H A Denetc_ethtool.c483 static int enetc_get_rsshash(struct ethtool_rxnfc *rxnfc) in enetc_get_rsshash() argument
499 if (rxnfc->flow_type >= ARRAY_SIZE(rsshash)) in enetc_get_rsshash()
502 rxnfc->data = rsshash[rxnfc->flow_type]; in enetc_get_rsshash()
590 static int enetc_get_rxnfc(struct net_device *ndev, struct ethtool_rxnfc *rxnfc, in enetc_get_rxnfc() argument
596 switch (rxnfc->cmd) { in enetc_get_rxnfc()
598 rxnfc->data = priv->num_rx_rings; in enetc_get_rxnfc()
602 return enetc_get_rsshash(rxnfc); in enetc_get_rxnfc()
605 rxnfc->data = priv->si->num_fs_entries; in enetc_get_rxnfc()
607 rxnfc in enetc_get_rxnfc()
641 enetc_set_rxnfc(struct net_device *ndev, struct ethtool_rxnfc *rxnfc) enetc_set_rxnfc() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/microchip/
H A Dlan743x_ethtool.c541 struct ethtool_rxnfc *rxnfc, in lan743x_ethtool_get_rxnfc()
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()
540 lan743x_ethtool_get_rxnfc(struct net_device *netdev, struct ethtool_rxnfc *rxnfc, u32 *rule_locs) lan743x_ethtool_get_rxnfc() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_cls.c1337 struct ethtool_rxnfc *rxnfc) in mvpp2_ethtool_cls_rule_get()
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()
1336 mvpp2_ethtool_cls_rule_get(struct mvpp2_port *port, struct ethtool_rxnfc *rxnfc) mvpp2_ethtool_cls_rule_get() argument
[all...]
H A Dmvpp2_cls.h306 struct ethtool_rxnfc *rxnfc);
H A Dmvpp2.h1082 struct ethtool_rxnfc rxnfc; member
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_cls.c1343 struct ethtool_rxnfc *rxnfc) in mvpp2_ethtool_cls_rule_get()
1347 if (rxnfc->fs.location >= MVPP2_N_RFS_ENTRIES_PER_FLOW) in mvpp2_ethtool_cls_rule_get()
1350 efs = port->rfs_rules[rxnfc->fs.location]; in mvpp2_ethtool_cls_rule_get()
1354 memcpy(rxnfc, &efs->rxnfc, sizeof(efs->rxnfc)); in mvpp2_ethtool_cls_rule_get()
1418 memcpy(&efs->rxnfc, info, sizeof(*info)); in mvpp2_ethtool_cls_rule_ins()
1563 struct ethtool_rxnfc *rxnfc; in mvpp22_port_rss_ctx_delete() local
1576 rxnfc = &port->rfs_rules[i]->rxnfc; in mvpp22_port_rss_ctx_delete()
1342 mvpp2_ethtool_cls_rule_get(struct mvpp2_port *port, struct ethtool_rxnfc *rxnfc) mvpp2_ethtool_cls_rule_get() argument
[all...]
H A Dmvpp2_cls.h306 struct ethtool_rxnfc *rxnfc);
H A Dmvpp2.h1177 struct ethtool_rxnfc rxnfc; member
/kernel/linux/linux-5.10/net/ethtool/
H A Dioctl.c815 ethtool_rxnfc_copy_from_compat(struct ethtool_rxnfc *rxnfc, in ethtool_rxnfc_copy_from_compat() argument
831 sizeof(rxnfc->fs.m_ext)); in ethtool_rxnfc_copy_from_compat()
840 *rxnfc = (struct ethtool_rxnfc) { in ethtool_rxnfc_copy_from_compat()
859 static int ethtool_rxnfc_copy_from_user(struct ethtool_rxnfc *rxnfc, in ethtool_rxnfc_copy_from_user() argument
864 return ethtool_rxnfc_copy_from_compat(rxnfc, useraddr, size); in ethtool_rxnfc_copy_from_user()
866 if (copy_from_user(rxnfc, useraddr, size)) in ethtool_rxnfc_copy_from_user()
873 const struct ethtool_rxnfc *rxnfc, in ethtool_rxnfc_copy_to_compat()
880 .cmd = rxnfc->cmd, in ethtool_rxnfc_copy_to_compat()
881 .flow_type = rxnfc->flow_type, in ethtool_rxnfc_copy_to_compat()
882 .data = rxnfc in ethtool_rxnfc_copy_to_compat()
872 ethtool_rxnfc_copy_to_compat(void __user *useraddr, const struct ethtool_rxnfc *rxnfc, size_t size, const u32 *rule_buf) ethtool_rxnfc_copy_to_compat() argument
901 ethtool_rxnfc_copy_to_user(void __user *useraddr, const struct ethtool_rxnfc *rxnfc, size_t size, const u32 *rule_buf) ethtool_rxnfc_copy_to_user() argument
[all...]
/kernel/linux/linux-6.6/net/ethtool/
H A Dioctl.c824 ethtool_rxnfc_copy_from_compat(struct ethtool_rxnfc *rxnfc, in ethtool_rxnfc_copy_from_compat() argument
840 sizeof(rxnfc->fs.m_ext)); in ethtool_rxnfc_copy_from_compat()
849 *rxnfc = (struct ethtool_rxnfc) { in ethtool_rxnfc_copy_from_compat()
868 static int ethtool_rxnfc_copy_from_user(struct ethtool_rxnfc *rxnfc, in ethtool_rxnfc_copy_from_user() argument
873 return ethtool_rxnfc_copy_from_compat(rxnfc, useraddr, size); in ethtool_rxnfc_copy_from_user()
875 if (copy_from_user(rxnfc, useraddr, size)) in ethtool_rxnfc_copy_from_user()
882 const struct ethtool_rxnfc *rxnfc, in ethtool_rxnfc_copy_to_compat()
889 .cmd = rxnfc->cmd, in ethtool_rxnfc_copy_to_compat()
890 .flow_type = rxnfc->flow_type, in ethtool_rxnfc_copy_to_compat()
891 .data = rxnfc in ethtool_rxnfc_copy_to_compat()
881 ethtool_rxnfc_copy_to_compat(void __user *useraddr, const struct ethtool_rxnfc *rxnfc, size_t size, const u32 *rule_buf) ethtool_rxnfc_copy_to_compat() argument
942 ethtool_rxnfc_copy_to_user(void __user *useraddr, const struct ethtool_rxnfc *rxnfc, size_t size, const u32 *rule_buf) ethtool_rxnfc_copy_to_user() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/
H A Dlan743x_ethtool.c903 struct ethtool_rxnfc *rxnfc, in lan743x_ethtool_get_rxnfc()
906 switch (rxnfc->cmd) { in lan743x_ethtool_get_rxnfc()
908 rxnfc->data = 0; in lan743x_ethtool_get_rxnfc()
909 switch (rxnfc->flow_type) { in lan743x_ethtool_get_rxnfc()
912 rxnfc->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; in lan743x_ethtool_get_rxnfc()
915 rxnfc->data |= RXH_IP_SRC | RXH_IP_DST; in lan743x_ethtool_get_rxnfc()
920 rxnfc->data = LAN743X_USED_RX_CHANNELS; in lan743x_ethtool_get_rxnfc()
902 lan743x_ethtool_get_rxnfc(struct net_device *netdev, struct ethtool_rxnfc *rxnfc, u32 *rule_locs) lan743x_ethtool_get_rxnfc() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-ethtool.c499 struct ethtool_rxnfc *rxnfc, u32 *rule_locs) in xgbe_get_rxnfc()
503 switch (rxnfc->cmd) { in xgbe_get_rxnfc()
505 rxnfc->data = pdata->rx_ring_count; in xgbe_get_rxnfc()
498 xgbe_get_rxnfc(struct net_device *netdev, struct ethtool_rxnfc *rxnfc, u32 *rule_locs) xgbe_get_rxnfc() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_ethtool.c819 struct ethtool_rxnfc *rxnfc, u32 *rule_locs) in stmmac_get_rxnfc()
823 switch (rxnfc->cmd) { in stmmac_get_rxnfc()
825 rxnfc->data = priv->plat->rx_queues_to_use; in stmmac_get_rxnfc()
818 stmmac_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *rxnfc, u32 *rule_locs) stmmac_get_rxnfc() argument
/kernel/linux/linux-6.6/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-ethtool.c501 struct ethtool_rxnfc *rxnfc, u32 *rule_locs) in xgbe_get_rxnfc()
505 switch (rxnfc->cmd) { in xgbe_get_rxnfc()
507 rxnfc->data = pdata->rx_ring_count; in xgbe_get_rxnfc()
500 xgbe_get_rxnfc(struct net_device *netdev, struct ethtool_rxnfc *rxnfc, u32 *rule_locs) xgbe_get_rxnfc() argument
/kernel/linux/linux-5.10/drivers/net/dsa/mv88e6xxx/
H A Dchip.c1827 struct ethtool_rxnfc *rxnfc, u32 *rule_locs) in mv88e6xxx_get_rxnfc()
1829 struct ethtool_rx_flow_spec *fs = &rxnfc->fs; in mv88e6xxx_get_rxnfc()
1837 switch (rxnfc->cmd) { in mv88e6xxx_get_rxnfc()
1839 rxnfc->data = 0; in mv88e6xxx_get_rxnfc()
1840 rxnfc->data |= RX_CLS_LOC_SPECIAL; in mv88e6xxx_get_rxnfc()
1841 rxnfc->rule_cnt = 0; in mv88e6xxx_get_rxnfc()
1844 rxnfc->rule_cnt++; in mv88e6xxx_get_rxnfc()
1856 rxnfc->data = 0; in mv88e6xxx_get_rxnfc()
1857 rxnfc->rule_cnt = 0; in mv88e6xxx_get_rxnfc()
1860 rule_locs[rxnfc in mv88e6xxx_get_rxnfc()
1826 mv88e6xxx_get_rxnfc(struct dsa_switch *ds, int port, struct ethtool_rxnfc *rxnfc, u32 *rule_locs) mv88e6xxx_get_rxnfc() argument
1873 mv88e6xxx_set_rxnfc(struct dsa_switch *ds, int port, struct ethtool_rxnfc *rxnfc) mv88e6xxx_set_rxnfc() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_ethtool.c1099 struct ethtool_rxnfc *rxnfc, u32 *rule_locs) in stmmac_get_rxnfc()
1103 switch (rxnfc->cmd) { in stmmac_get_rxnfc()
1105 rxnfc->data = priv->plat->rx_queues_to_use; in stmmac_get_rxnfc()
1098 stmmac_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *rxnfc, u32 *rule_locs) stmmac_get_rxnfc() argument
/kernel/linux/linux-6.6/drivers/net/dsa/mv88e6xxx/
H A Dchip.c2260 struct ethtool_rxnfc *rxnfc, u32 *rule_locs) in mv88e6xxx_get_rxnfc()
2262 struct ethtool_rx_flow_spec *fs = &rxnfc->fs; in mv88e6xxx_get_rxnfc()
2270 switch (rxnfc->cmd) { in mv88e6xxx_get_rxnfc()
2272 rxnfc->data = 0; in mv88e6xxx_get_rxnfc()
2273 rxnfc->data |= RX_CLS_LOC_SPECIAL; in mv88e6xxx_get_rxnfc()
2274 rxnfc->rule_cnt = 0; in mv88e6xxx_get_rxnfc()
2277 rxnfc->rule_cnt++; in mv88e6xxx_get_rxnfc()
2289 rxnfc->data = 0; in mv88e6xxx_get_rxnfc()
2290 rxnfc->rule_cnt = 0; in mv88e6xxx_get_rxnfc()
2293 rule_locs[rxnfc in mv88e6xxx_get_rxnfc()
2259 mv88e6xxx_get_rxnfc(struct dsa_switch *ds, int port, struct ethtool_rxnfc *rxnfc, u32 *rule_locs) mv88e6xxx_get_rxnfc() argument
2306 mv88e6xxx_set_rxnfc(struct dsa_switch *ds, int port, struct ethtool_rxnfc *rxnfc) mv88e6xxx_set_rxnfc() argument
[all...]

Completed in 38 milliseconds