net/bnxt: fix double increment of idx during Tx ring alloc
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Mon, 8 Jan 2018 20:24:26 +0000 (12:24 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit1005d96445e9df72d9a907e0c82843528efed939
tree433525f0a3b6ae04ca40b821e15ac169e0c4b151
parent729ff70320ebe1a8750e0a330cd5eded27fb8a34
net/bnxt: fix double increment of idx during Tx ring alloc

We are incrementing idx twice while allocating Tx rings.
Since this is passed to the firmware, it may cause unexpected behavior.

Fixes: daef48efe5e5 ("net/bnxt: support set MTU")
Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ring.c