net/fm10k: fix descriptor filling in vector Tx
authorXiao Wang <xiao.w.wang@intel.com>
Wed, 3 Jul 2019 02:53:32 +0000 (10:53 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 8 Jul 2019 19:26:52 +0000 (21:26 +0200)
commite62d90f2a21b5196aa7606a933923c068a500bee
tree3415c9bb7864a061c19e65fb7097f184fa2da91d
parent5a6d883878dbb5b00ad775fc0c7f5d48b9fc75d8
net/fm10k: fix descriptor filling in vector Tx

The shift left operation "pkt->vlan_tci << 16" gets vlan_tci extended
to signed type and may cause invalid descriptor. Also the same issue for
the "data_len" field. This patch fixes it by casting them to uint64_t.

Fixes: 21f13c541eb0 ("fm10k: add vector Tx")
Cc: stable@dpdk.org
Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/fm10k/fm10k_rxtx_vec.c