net/nfp: fix field initialization in Tx descriptor
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Mon, 11 Jun 2018 09:50:37 +0000 (10:50 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 14 Jun 2018 17:27:50 +0000 (19:27 +0200)
commit01f65293ceb94921a35554fa7b17bc0ec1764c96
tree95ceed7bc3cae56188769fd512c3e4c4bfb1b830
parent86910379d335b4c6c9c69e2e715338e158b16e73
net/nfp: fix field initialization in Tx descriptor

TX descriptor eop_offset field is not initialized and it could
contain garbage. This patch fixes the potential problem setting
EOP as the only subfield. The other subfield, data offset, is
not used by now.

Fixes: b812daadad0d ("nfp: add Rx and Tx")
Cc: stable@dpdk.org
Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
drivers/net/nfp/nfp_net.c