net/bnxt: fix headroom initialization
authorOlivier Matz <olivier.matz@6wind.com>
Tue, 12 Dec 2017 08:50:39 +0000 (09:50 +0100)
committerOlivier Matz <olivier.matz@6wind.com>
Tue, 12 Dec 2017 08:50:39 +0000 (09:50 +0100)
commitd228afe14150355a529efbca19877a138a6c66a1
treedc3510f45a8e050db41855e64414337e45c85271
parentde4778115bb746f8869150bb57cb13b4c17aaf71
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: Zijie Pan <zijie.pan@6wind.com>
Signed-off-by: Didier Pallard <didier.pallard@6wind.com>
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
drivers/net/bnxt/bnxt_rxr.c