net/fm10k: fix descriptor VLAN field filling in Tx
authorLu Qiuwen <luqiuwen@iie.ac.cn>
Thu, 5 Dec 2019 13:30:08 +0000 (21:30 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:45:23 +0000 (19:45 +0100)
commit6aab203435040461f585fe9423e3dbdc0729c9fc
tree3118147c5d400d67ba34bc8e6d56c69631d21b7e
parenta09f61159ad0f4449a61c6325eb5bda4be1bb5cd
net/fm10k: fix descriptor VLAN field filling in Tx

The VLAN field in the descriptor is not filled when ol_flags has
no VLAN flag. When the caller sends some packets with VLAN tags,
but other packets do not have VLAN tags, the behavior of the program
cannot be determined.

Fixes: 4b61d3bfa941 ("fm10k: add receive and tranmit")
Cc: stable@dpdk.org
Signed-off-by: Lu Qiuwen <luqiuwen@iie.ac.cn>
Acked-by: Xiao Wang <xiao.w.wang@intel.com>
drivers/net/fm10k/fm10k_rxtx.c