net/vhost: do not clear offload flags in Rx

The ol_flags of mbufs returned by rte_vhost_dequeue_burst()
contain necessary offload information. It can't be zeroed.

Fixes: f63d356ee9 ("net/vhost: insert/strip VLAN header in software")
Cc: stable@dpdk.org

Reported-by: Lei Yao <lei.a.yao@intel.com>
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
This commit is contained in:
Tiwei Bie 2018-05-10 15:04:14 +08:00 committed by Ferruh Yigit
parent 3c79609fda
commit 0b94bc568f

View File

@ -400,7 +400,6 @@ eth_vhost_rx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs)
for (i = 0; likely(i < nb_rx); i++) { for (i = 0; likely(i < nb_rx); i++) {
bufs[i]->port = r->port; bufs[i]->port = r->port;
bufs[i]->ol_flags = 0;
bufs[i]->vlan_tci = 0; bufs[i]->vlan_tci = 0;
if (r->internal->vlan_strip) if (r->internal->vlan_strip)