From patchwork Thu May 10 07:04:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiwei Bie X-Patchwork-Id: 39715 X-Patchwork-Delegate: maxime.coquelin@redhat.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CF8441B97D; Thu, 10 May 2018 09:04:27 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 380011B97C; Thu, 10 May 2018 09:04:26 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 May 2018 00:04:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,384,1520924400"; d="scan'208";a="48109661" Received: from debian.sh.intel.com ([10.67.104.164]) by FMSMGA003.fm.intel.com with ESMTP; 10 May 2018 00:04:22 -0700 From: Tiwei Bie To: maxime.coquelin@redhat.com Cc: lei.a.yao@intel.com, mtetsuyah@gmail.com, 3chas3@gmail.com, dev@dpdk.org, Jan Blunck , stable@dpdk.org Date: Thu, 10 May 2018 15:04:14 +0800 Message-Id: <20180510070414.8517-1-tiwei.bie@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH] net/vhost: do not zero ol_flags in eth_vhost_rx() X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list 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 Reviewed-by: Maxime Coquelin --- 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)