From: Tiwei Bie Date: Thu, 10 May 2018 07:04:14 +0000 (+0800) Subject: net/vhost: do not clear offload flags in Rx X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0b94bc568f1931a93883d6c79441e5a15f02ffec;p=dpdk.git 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: f63d356ee993 ("net/vhost: insert/strip VLAN header in software") Cc: stable@dpdk.org Reported-by: Lei Yao Signed-off-by: Tiwei Bie Reviewed-by: Maxime Coquelin --- diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c index 0d000c71c0..f473bbbb32 100644 --- a/drivers/net/vhost/rte_eth_vhost.c +++ b/drivers/net/vhost/rte_eth_vhost.c @@ -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++) { bufs[i]->port = r->port; - bufs[i]->ol_flags = 0; bufs[i]->vlan_tci = 0; if (r->internal->vlan_strip)