From: Wei Zhao Date: Wed, 21 Mar 2018 07:18:10 +0000 (+0800) Subject: net/igb: fix flow RSS queue index X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=bf3d3ecc34c79946aa9f98593bf1496a1e81709f;p=dpdk.git net/igb: fix flow RSS queue index Igb has a bug about queue index for rss rule flow configuration when set redirection table. Fixes: 424ae915baf0 ("net/e1000: move RSS to flow API") Cc: stable@dpdk.org Signed-off-by: Wei Zhao Tested-by: Yuan Peng Acked-by: Wenzhuo Lu --- diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c index 2f37167249..009f0ea798 100644 --- a/drivers/net/e1000/igb_rxtx.c +++ b/drivers/net/e1000/igb_rxtx.c @@ -2794,9 +2794,9 @@ igb_config_rss_filter(struct rte_eth_dev *dev, } reta; uint8_t q_idx; - q_idx = conf->queue[j]; if (j == conf->num) j = 0; + q_idx = conf->queue[j]; reta.bytes[i & 3] = (uint8_t)(q_idx << shift); if ((i & 3) == 3) E1000_WRITE_REG(hw, E1000_RETA(i >> 2), reta.dword);