From: Chen Jing D(Mark) Date: Fri, 10 Jul 2015 08:19:20 +0000 (+0800) Subject: fm10k: fix RETA table initialization X-Git-Tag: spdx-start~8786 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0a5311e7eff552cd4745535770c938cad5723759;p=dpdk.git fm10k: fix RETA table initialization fm10k has 128 RETA entries in 32 registers, but it only initialized first 32 when doing multiple rx queue configurations. This fix will initialize all 128 entries instead. Signed-off-by: Chen Jing D(Mark) Acked-by: Michael Qiu --- diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index 2a412ab623..902ccaebc8 100644 --- a/drivers/net/fm10k/fm10k_ethdev.c +++ b/drivers/net/fm10k/fm10k_ethdev.c @@ -329,7 +329,7 @@ fm10k_dev_mq_rx_configure(struct rte_eth_dev *dev) * little-endian order. */ reta = 0; - for (i = 0, j = 0; i < FM10K_RETA_SIZE; i++, j++) { + for (i = 0, j = 0; i < FM10K_MAX_RSS_INDICES; i++, j++) { if (j == dev->data->nb_rx_queues) j = 0; reta = (reta << CHAR_BIT) | j;