net/bnxt: fix headroom initialization
authorOlivier Matz <olivier.matz@6wind.com>
Wed, 3 Jan 2018 10:32:25 +0000 (11:32 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit35906acbf34daa32469fa63d759846057f36e6fb
tree88f11d8b726785361f7f0312a61428b28e5238c9
parent42b883535804d69ca8b21b39087fc1d14a1ee3f3
net/bnxt: fix headroom initialization

When allocating a new mbuf for Rx, the value of m->data_off should not
be reset to its default value (RTE_PKTMBUF_HEADROOM), instead of reusing
the previous undefined value, which could cause the packet to have a too
small or too high headroom.

Fixes: 2eb53b134aae ("net/bnxt: add initial Rx code")
Cc: stable@dpdk.org
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_rxr.c