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

/linux-master/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-ethtool.c720 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 Denetc_ethtool.c483 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 Dmvpp2_cls.c1343 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 Dmvpp2_cls.h306 struct ethtool_rxnfc *rxnfc);
H A Dmvpp2.h1177 struct ethtool_rxnfc rxnfc; member in struct:mvpp2_ethtool_fs
/linux-master/net/ethtool/
H A Dioctl.c828 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 Dlan743x_ethtool.c903 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 Dxgbe-ethtool.c501 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 Dstmmac_ethtool.c1107 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 Dchip.c2374 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...]

Completed in 260 milliseconds