From: Wei Zhao Date: Mon, 7 May 2018 05:34:00 +0000 (+0800) Subject: net/i40e: fix flow RSS key array error X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=088aed4b892e5e401af7fc5607c1eeaff563ebd1;p=dpdk.git net/i40e: fix flow RSS key array error This is a bug introduced into RSS key array span. Fixes: ac8d22de2394 ("ethdev: flatten RSS configuration in flow API") Signed-off-by: Wei Zhao Acked-by: Qi Zhang --- diff --git a/drivers/net/i40e/i40e_ethdev.h b/drivers/net/i40e/i40e_ethdev.h index 2cccc4f008..4dd50eb7b2 100644 --- a/drivers/net/i40e/i40e_ethdev.h +++ b/drivers/net/i40e/i40e_ethdev.h @@ -886,7 +886,7 @@ struct i40e_rte_flow_rss_conf { struct rte_flow_action_rss conf; /**< RSS parameters. */ uint16_t queue_region_conf; /**< Queue region config flag */ uint8_t key[(I40E_VFQF_HKEY_MAX_INDEX > I40E_PFQF_HKEY_MAX_INDEX ? - I40E_VFQF_HKEY_MAX_INDEX : I40E_PFQF_HKEY_MAX_INDEX) + 1 * + I40E_VFQF_HKEY_MAX_INDEX : I40E_PFQF_HKEY_MAX_INDEX + 1) * sizeof(uint32_t)]; /* Hash key. */ uint16_t queue[I40E_MAX_Q_PER_TC]; /**< Queues indices to use. */ };