net/bnx2x: reserve enough headroom for mbuf prepend
authorYangchao Zhou <zhouyates@gmail.com>
Tue, 6 Feb 2018 11:20:33 +0000 (19:20 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 27 Apr 2018 16:34:41 +0000 (17:34 +0100)
commit58c18bc11443043d33dda361fe1e718b15d504c1
tree077802979b881d5ba94042fd511b8c7de1220951
parent4c53d4eaf11551c69201b192a7da153d1d88a9a5
net/bnx2x: reserve enough headroom for mbuf prepend

When allocating a new mbuf for Rx, the value of m->data_off should 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.

Signed-off-by: Yangchao Zhou <zhouyates@gmail.com>
Acked-by: Harish Patil <harish.patil@cavium.com>
drivers/net/bnx2x/bnx2x_rxtx.c