* [dpdk-stable] [PATCH] net/failsafe: fix reported hash key size in device info
[not found] <1580823780-2367-1-git-send-email-rasland@mellanox.com>
@ 2020-02-04 13:43 ` Raslan Darawsheh
2020-02-04 15:09 ` Thomas Monjalon
0 siblings, 1 reply; 4+ messages in thread
From: Raslan Darawsheh @ 2020-02-04 13:43 UTC (permalink / raw)
To: thomas; +Cc: stable
Hash key size is missing from reported device info.
This fills the hash key size in device info.
Fixes: 4586be37 ("net/failsafe: fix reported device info")
Cc: stable@dpdk.org
Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
---
drivers/net/failsafe/failsafe_ops.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/failsafe/failsafe_ops.c b/drivers/net/failsafe/failsafe_ops.c
index a87e49b..50f2aca 100644
--- a/drivers/net/failsafe/failsafe_ops.c
+++ b/drivers/net/failsafe/failsafe_ops.c
@@ -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
--
2.7.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-stable] [PATCH] net/failsafe: fix reported hash key size in device info
2020-02-04 13:43 ` [dpdk-stable] [PATCH] net/failsafe: fix reported hash key size in device info Raslan Darawsheh
@ 2020-02-04 15:09 ` Thomas Monjalon
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2020-02-04 15:09 UTC (permalink / raw)
To: Raslan Darawsheh; +Cc: stable
04/02/2020 14:43, Raslan Darawsheh:
> Hash key size is missing from reported device info.
> This fills the hash key size in device info.
>
> Fixes: 4586be37 ("net/failsafe: fix reported device info")
> Cc: stable@dpdk.org
>
> Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
Looks good, you can send.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-stable] [PATCH] net/failsafe: fix reported hash key size in device info
2020-02-04 15:10 Raslan Darawsheh
@ 2020-02-05 9:44 ` Ferruh Yigit
0 siblings, 0 replies; 4+ messages in thread
From: Ferruh Yigit @ 2020-02-05 9:44 UTC (permalink / raw)
To: Raslan Darawsheh, grive; +Cc: thomas, dev, stable
On 2/4/2020 3:10 PM, Raslan Darawsheh wrote:
> Hash key size is missing from reported device info.
> This fills the hash key size in device info.
>
> Fixes: 4586be37 ("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>
Applied to dpdk-next-net/master, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [dpdk-stable] [PATCH] net/failsafe: fix reported hash key size in device info
@ 2020-02-04 15:10 Raslan Darawsheh
2020-02-05 9:44 ` Ferruh Yigit
0 siblings, 1 reply; 4+ messages in thread
From: Raslan Darawsheh @ 2020-02-04 15:10 UTC (permalink / raw)
To: grive; +Cc: thomas, dev, stable
Hash key size is missing from reported device info.
This fills the hash key size in device info.
Fixes: 4586be37 ("net/failsafe: fix reported device info")
Cc: stable@dpdk.org
Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
---
drivers/net/failsafe/failsafe_ops.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/failsafe/failsafe_ops.c b/drivers/net/failsafe/failsafe_ops.c
index a87e49b..50f2aca 100644
--- a/drivers/net/failsafe/failsafe_ops.c
+++ b/drivers/net/failsafe/failsafe_ops.c
@@ -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
--
2.7.4
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-02-05 9:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1580823780-2367-1-git-send-email-rasland@mellanox.com>
2020-02-04 13:43 ` [dpdk-stable] [PATCH] net/failsafe: fix reported hash key size in device info Raslan Darawsheh
2020-02-04 15:09 ` Thomas Monjalon
2020-02-04 15:10 Raslan Darawsheh
2020-02-05 9:44 ` Ferruh Yigit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).