Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/staging/fsl-dpaa2/ethernet/
Ddpaa2-ethtool.c228 struct ethtool_rxnfc *rxnfc, u32 *rule_locs) in dpaa2_eth_get_rxnfc() argument
232 switch (rxnfc->cmd) { in dpaa2_eth_get_rxnfc()
238 rxnfc->data = priv->rx_hash_fields; in dpaa2_eth_get_rxnfc()
241 rxnfc->data = dpaa2_eth_queue_count(priv); in dpaa2_eth_get_rxnfc()
/Linux-v4.19/drivers/net/ethernet/microchip/
Dlan743x_ethtool.c420 struct ethtool_rxnfc *rxnfc, in lan743x_ethtool_get_rxnfc() argument
423 switch (rxnfc->cmd) { in lan743x_ethtool_get_rxnfc()
425 rxnfc->data = 0; in lan743x_ethtool_get_rxnfc()
426 switch (rxnfc->flow_type) { in lan743x_ethtool_get_rxnfc()
429 rxnfc->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; in lan743x_ethtool_get_rxnfc()
432 rxnfc->data |= RXH_IP_SRC | RXH_IP_DST; in lan743x_ethtool_get_rxnfc()
437 rxnfc->data = LAN743X_USED_RX_CHANNELS; in lan743x_ethtool_get_rxnfc()
/Linux-v4.19/net/
Dsocket.c2811 struct ethtool_rxnfc __user *rxnfc = NULL; in ethtool_ioctl() local
2849 rxnfc = compat_alloc_user_space(buf_size); in ethtool_ioctl()
2856 ifr.ifr_data = convert_in ? rxnfc : (void __user *)compat_rxnfc; in ethtool_ioctl()
2865 sizeof(rxnfc->fs.m_ext)); in ethtool_ioctl()
2872 if (copy_in_user(rxnfc, compat_rxnfc, in ethtool_ioctl()
2873 (void __user *)(&rxnfc->fs.m_ext + 1) - in ethtool_ioctl()
2874 (void __user *)rxnfc) || in ethtool_ioctl()
2875 copy_in_user(&rxnfc->fs.ring_cookie, in ethtool_ioctl()
2877 (void __user *)(&rxnfc->fs.location + 1) - in ethtool_ioctl()
2878 (void __user *)&rxnfc->fs.ring_cookie)) in ethtool_ioctl()
[all …]
/Linux-v4.19/drivers/net/ethernet/amd/xgbe/
Dxgbe-ethtool.c519 struct ethtool_rxnfc *rxnfc, u32 *rule_locs) in xgbe_get_rxnfc() argument
523 switch (rxnfc->cmd) { in xgbe_get_rxnfc()
525 rxnfc->data = pdata->rx_ring_count; in xgbe_get_rxnfc()