net/bnxt: fix resetting mbuf data offset
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Mon, 26 Oct 2020 03:56:14 +0000 (20:56 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:03 +0000 (23:35 +0100)
commit3cefa72935fde04824fdfbee9c435c08278ab3c2
treeb73c91c31a33c438e8fb784a32d0338867689720
parent45c6e1c66a4b5d7374e864502dc2fdb1ee71ceae
net/bnxt: fix resetting mbuf data offset

Reset mbuf->data_off before handing the Rx packet to the application.
We were not doing this in the TPA path. It can cause applications
using this field for post processing to work incorrectly.

Fixes: 0958d8b6435d ("net/bnxt: support LRO")
Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Lance Richardson <lance.richardson@broadcom.com>
drivers/net/bnxt/bnxt_rxr.c