From: Heinrich Kuhn Date: Fri, 10 Jul 2020 14:28:46 +0000 (+0200) Subject: net/nfp: fix RSS hash configuration reporting X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=198e745083b960d167bd769e2f81818c835f68b8;p=dpdk.git net/nfp: fix RSS hash configuration reporting Prior to this fix the NFP PMD implementation of the .rss_hash_conf_get callback did not propagate the current hardware state of rss_hf back up to the caller. Users of the hash_conf_get callback would receive an incorrect representation of what the RSS configuration currently is in hardware. Fixes: 934e4c60fbff ("nfp: add RSS") Cc: stable@dpdk.org Signed-off-by: Heinrich Kuhn Signed-off-by: Simon Horman --- diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c index 474719b79c..99946279db 100644 --- a/drivers/net/nfp/nfp_net.c +++ b/drivers/net/nfp/nfp_net.c @@ -2621,6 +2621,9 @@ nfp_net_rss_hash_conf_get(struct rte_eth_dev *dev, if (cfg_rss_ctrl & NFP_NET_CFG_RSS_IPV6) rss_hf |= ETH_RSS_NONFRAG_IPV4_UDP | ETH_RSS_NONFRAG_IPV6_UDP; + /* Propagate current RSS hash functions to caller */ + rss_conf->rss_hf = rss_hf; + /* Reading the key size */ rss_conf->rss_key_len = nn_cfg_readl(hw, NFP_NET_CFG_RSS_KEY_SZ);