ixgbe: fix RETA query and update on X550
authorXiao Wang <xiao.w.wang@intel.com>
Fri, 18 Mar 2016 02:27:35 +0000 (10:27 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 25 Mar 2016 18:01:37 +0000 (19:01 +0100)
commit2c4ee442c489260786a27cdc61653c950e0eaef4
tree2d4dec524a9d8b507a355f241ddffad47d296cf3
parent50765c820e98a4434efbc0a58df4b9d78afb7a5f
ixgbe: fix RETA query and update on X550

For x550 device, the reta table has 512 entries, but in function
ixgbe_dev_rss_reta_query and ixgbe_dev_rss_reta_update we use an
"uint8_t i" to traverse the entries, this will lead the function
to an endless loop.

This patch changes the data type from uint8_t to uint16_t to fix
the issue.

Fixes: 4bee94a6c22f ("ixgbe: support 512 RSS entries on x550")

Signed-off-by: Wang Xiao W <xiao.w.wang@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c