net/bnxt: fix TSO
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Wed, 15 May 2019 18:08:12 +0000 (11:08 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 27 May 2019 16:09:07 +0000 (18:09 +0200)
commitc750eae57fe8908163e6debb64e1106b9b554710
treee3198940b2a0949bd5c840e8c5a6a7a39026835e
parent9e444764487748d28adb9b57e75452ea8c3c9945
net/bnxt: fix TSO

We wrongly update lflags in the Tx descriptor; avoid it.
Also, instead of calculating the last producer index to see if mbuf
segments are chained, check if the pointer is NULL to iterate through
the segment list.

Fixes: 6eb3cc2294fd ("net/bnxt: add initial Tx code")
Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
drivers/net/bnxt/bnxt_txr.c