net/octeontx2: fix indirect mbuf handling during Tx
authorSunil Kumar Kori <skori@marvell.com>
Thu, 25 Jul 2019 08:20:59 +0000 (13:50 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 29 Jul 2019 10:23:22 +0000 (12:23 +0200)
commita61a361ac13f79c2c2bd2eb002311c21139cb5ee
tree7222735ad10adc6050780d5ef521ac7ede302fcd
parent9151787924c20a03b3e57a8fdcd6aa3f912a3af8
net/octeontx2: fix indirect mbuf handling during Tx

Multi segmented packet may be spliced with indirect mbufs also.
Currently driver causes buffer leak for indirect mbufs as they
were not being freed to packet pool.

Patch fixes handling of indirect mbufs for following use cases
- packet contains all indirect mbufs only.
- packet contains mixed mbufs i.e. direct and indirect both.

Fixes: cbd5710db48d ("net/octeontx2: add Tx multi segment version")

Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
Acked-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
drivers/net/octeontx2/otx2_tx.c
drivers/net/octeontx2/otx2_tx.h