Skip to content

Commit

Permalink
net/failsafe: fix reported hash key size in device info
Browse files Browse the repository at this point in the history
[ upstream commit f9dd753 ]

Hash key size is missing from reported device info.
This fills the hash key size in device info.

Fixes: 4586be3 ("net/failsafe: fix reported device info")

Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
  • Loading branch information
raslandarawsheh authored and kevintraynor committed Feb 14, 2020
1 parent cd25180 commit 53d2625
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/failsafe/failsafe_ops.c
Expand Up @@ -827,6 +827,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);
}

/**
Expand Down Expand Up @@ -875,6 +877,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
Expand Down

0 comments on commit 53d2625

Please sign in to comment.