Lines Matching full:rxfh

859 				     struct ethtool_rxfh_param *rxfh)  in gve_get_rss_config_cache()  argument
863 rxfh->hfunc = ETH_RSS_HASH_TOP; in gve_get_rss_config_cache()
865 if (rxfh->key) { in gve_get_rss_config_cache()
866 rxfh->key_size = priv->rss_key_size; in gve_get_rss_config_cache()
867 memcpy(rxfh->key, rss_config->hash_key, priv->rss_key_size); in gve_get_rss_config_cache()
870 if (rxfh->indir) { in gve_get_rss_config_cache()
871 rxfh->indir_size = priv->rss_lut_size; in gve_get_rss_config_cache()
872 memcpy(rxfh->indir, rss_config->hash_lut, in gve_get_rss_config_cache()
873 priv->rss_lut_size * sizeof(*rxfh->indir)); in gve_get_rss_config_cache()
877 static int gve_get_rxfh(struct net_device *netdev, struct ethtool_rxfh_param *rxfh) in gve_get_rxfh() argument
885 gve_get_rss_config_cache(priv, rxfh); in gve_get_rxfh()
889 return gve_adminq_query_rss_config(priv, rxfh); in gve_get_rxfh()
893 struct ethtool_rxfh_param *rxfh) in gve_set_rss_config_cache() argument
897 if (rxfh->key) in gve_set_rss_config_cache()
898 memcpy(rss_config->hash_key, rxfh->key, priv->rss_key_size); in gve_set_rss_config_cache()
900 if (rxfh->indir) in gve_set_rss_config_cache()
901 memcpy(rss_config->hash_lut, rxfh->indir, in gve_set_rss_config_cache()
902 priv->rss_lut_size * sizeof(*rxfh->indir)); in gve_set_rss_config_cache()
905 static int gve_set_rxfh(struct net_device *netdev, struct ethtool_rxfh_param *rxfh, in gve_set_rxfh() argument
914 err = gve_adminq_configure_rss(priv, rxfh); in gve_set_rxfh()
921 gve_set_rss_config_cache(priv, rxfh); in gve_set_rxfh()