net/iavf: fix endless loop
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 25 Jul 2019 04:38:29 +0000 (12:38 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Jul 2019 11:24:32 +0000 (13:24 +0200)
commit43b29221c1f13189f41d5200027a22f11149dfee
tree7f1ebd50ba4a5346e56c524d50b013612a2f5323
parentfbbbf553f268b94d6dbe491a31d1f0c8d227465f
net/iavf: fix endless loop

Change loop index from uint16_t to uint32_t since max
index 65535 could be exceeded when ring size is 2k+.

Fixes: 69dd4c3d0898 ("net/avf: enable queue and device")
Cc: stable@dpdk.org
Reported-by: Lei Yao <lei.a.yao@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/iavf/iavf_rxtx.c