From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tiwei Bie Subject: [PATCH] net/vhost: do not zero ol_flags in eth_vhost_rx() Date: Thu, 10 May 2018 15:04:14 +0800 Message-ID: <20180510070414.8517-1-tiwei.bie@intel.com> Cc: lei.a.yao@intel.com, mtetsuyah@gmail.com, 3chas3@gmail.com, dev@dpdk.org, Jan Blunck , stable@dpdk.org To: maxime.coquelin@redhat.com Return-path: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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: Jan Blunck Cc: stable@dpdk.org Reported-by: Lei Yao Signed-off-by: Tiwei Bie --- drivers/net/vhost/rte_eth_vhost.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c index ff5424a92..47fd23eb3 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) -- 2.11.0