net/failsafe: fix reported hash key size in device info
authorRaslan Darawsheh <rasland@mellanox.com>
Tue, 4 Feb 2020 15:10:51 +0000 (17:10 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 5 Feb 2020 09:21:22 +0000 (10:21 +0100)
Hash key size is missing from reported device info.
This fills the hash key size in device info.

Fixes: 4586be3743d4 ("net/failsafe: fix reported device info")
Cc: stable@dpdk.org
Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/failsafe/failsafe_ops.c

index a87e49b..50f2aca 100644 (file)
@@ -1068,6 +1068,8 @@ fs_dev_merge_info(struct rte_eth_dev_info *info,
        info->rx_queue_offload_capa &= sinfo->rx_queue_offload_capa;
        info->tx_queue_offload_capa &= sinfo->tx_queue_offload_capa;
        info->flow_type_rss_offloads &= sinfo->flow_type_rss_offloads;
+       info->hash_key_size = RTE_MIN(info->hash_key_size,
+                                     sinfo->hash_key_size);
 }
 
 /**
@@ -1117,6 +1119,7 @@ fs_dev_infos_get(struct rte_eth_dev *dev,
        infos->max_hash_mac_addrs = UINT32_MAX;
        infos->max_vfs = UINT16_MAX;
        infos->max_vmdq_pools = UINT16_MAX;
+       infos->hash_key_size = UINT8_MAX;
 
        /*
         * Set of capabilities that can be verified upon