]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/bnxt/bnxt_ethdev.c
net/bnxt: set the hash key size
[dpdk.git] / drivers / net / bnxt / bnxt_ethdev.c
index 05e601b66ed118de2cff400146dda4519fcc6cbb..5b17eef53133aebe7d64294768ac1a4d1525ea0f 100644 (file)
@@ -378,6 +378,7 @@ static void bnxt_dev_info_get_op(struct rte_eth_dev *eth_dev,
        dev_info->max_rx_queues = max_rx_rings;
        dev_info->max_tx_queues = max_rx_rings;
        dev_info->reta_size = bp->max_rsscos_ctx;
+       dev_info->hash_key_size = 40;
        max_vnics = bp->max_vnics;
 
        /* Fast path specifics */
@@ -837,6 +838,10 @@ static int bnxt_rss_hash_update_op(struct rte_eth_dev *eth_dev,
                if (rss_conf->rss_hf & BNXT_ETH_RSS_SUPPORT)
                        return -EINVAL;
        }
+
+       bp->flags |= BNXT_FLAG_UPDATE_HASH;
+       memcpy(&bp->rss_conf, rss_conf, sizeof(*rss_conf));
+
        if (rss_conf->rss_hf & ETH_RSS_IPV4)
                hash_type |= HWRM_VNIC_RSS_CFG_INPUT_HASH_TYPE_IPV4;
        if (rss_conf->rss_hf & ETH_RSS_NONFRAG_IPV4_TCP)