Home
last modified time | relevance | path

Searched refs:rxnfc (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc_ethtool.c470 static int enetc_get_rsshash(struct ethtool_rxnfc *rxnfc) in enetc_get_rsshash() argument
486 if (rxnfc->flow_type >= ARRAY_SIZE(rsshash)) in enetc_get_rsshash()
489 rxnfc->data = rsshash[rxnfc->flow_type]; in enetc_get_rsshash()
577 static int enetc_get_rxnfc(struct net_device *ndev, struct ethtool_rxnfc *rxnfc, in enetc_get_rxnfc() argument
583 switch (rxnfc->cmd) { in enetc_get_rxnfc()
585 rxnfc->data = priv->num_rx_rings; in enetc_get_rxnfc()
589 return enetc_get_rsshash(rxnfc); in enetc_get_rxnfc()
592 rxnfc->data = priv->si->num_fs_entries; in enetc_get_rxnfc()
594 rxnfc->rule_cnt = 0; in enetc_get_rxnfc()
597 rxnfc->rule_cnt++; in enetc_get_rxnfc()
[all …]
/linux/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_cls.c1343 struct ethtool_rxnfc *rxnfc) in mvpp2_ethtool_cls_rule_get() argument
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()
1553 struct ethtool_rxnfc *rxnfc; in mvpp22_port_rss_ctx_delete() local
1566 rxnfc = &port->rfs_rules[i]->rxnfc; in mvpp22_port_rss_ctx_delete()
1567 if (!(rxnfc->fs.flow_type & FLOW_RSS) || in mvpp22_port_rss_ctx_delete()
1568 rxnfc->rss_context != port_ctx) in mvpp22_port_rss_ctx_delete()
1571 ret = mvpp2_ethtool_cls_rule_del(port, rxnfc); in mvpp22_port_rss_ctx_delete()
[all …]
H A Dmvpp2_cls.h306 struct ethtool_rxnfc *rxnfc);
/linux/net/ethtool/
H A Dioctl.c835 ethtool_rxnfc_copy_from_compat(struct ethtool_rxnfc *rxnfc, in ethtool_rxnfc_copy_from_compat() argument
851 sizeof(rxnfc->fs.m_ext)); in ethtool_rxnfc_copy_from_compat()
860 *rxnfc = (struct ethtool_rxnfc) { in ethtool_rxnfc_copy_from_compat()
879 static int ethtool_rxnfc_copy_from_user(struct ethtool_rxnfc *rxnfc, in ethtool_rxnfc_copy_from_user() argument
884 return ethtool_rxnfc_copy_from_compat(rxnfc, useraddr, size); in ethtool_rxnfc_copy_from_user()
886 if (copy_from_user(rxnfc, useraddr, size)) in ethtool_rxnfc_copy_from_user()
893 const struct ethtool_rxnfc *rxnfc, in ethtool_rxnfc_copy_to_compat() argument
900 .cmd = rxnfc->cmd, in ethtool_rxnfc_copy_to_compat()
901 .flow_type = rxnfc->flow_type, in ethtool_rxnfc_copy_to_compat()
902 .data = rxnfc->data, in ethtool_rxnfc_copy_to_compat()
[all …]
/linux/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-ethtool.c497 struct ethtool_rxnfc *rxnfc, u32 *rule_locs) in xgbe_get_rxnfc() argument
501 switch (rxnfc->cmd) { in xgbe_get_rxnfc()
503 rxnfc->data = pdata->rx_ring_count; in xgbe_get_rxnfc()
/linux/drivers/net/dsa/mv88e6xxx/
H A Dchip.c2426 struct ethtool_rxnfc *rxnfc, u32 *rule_locs) in mv88e6xxx_get_rxnfc() argument
2428 struct ethtool_rx_flow_spec *fs = &rxnfc->fs; in mv88e6xxx_get_rxnfc()
2436 switch (rxnfc->cmd) { in mv88e6xxx_get_rxnfc()
2438 rxnfc->data = 0; in mv88e6xxx_get_rxnfc()
2439 rxnfc->data |= RX_CLS_LOC_SPECIAL; in mv88e6xxx_get_rxnfc()
2440 rxnfc->rule_cnt = 0; in mv88e6xxx_get_rxnfc()
2443 rxnfc->rule_cnt++; in mv88e6xxx_get_rxnfc()
2455 rxnfc->data = 0; in mv88e6xxx_get_rxnfc()
2456 rxnfc->rule_cnt = 0; in mv88e6xxx_get_rxnfc()
2459 rule_locs[rxnfc->rule_cnt++] = id; in mv88e6xxx_get_rxnfc()
[all …]