From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tiwei Bie Subject: Re: [PATCH v2 2/5] net/virtio: use simple path for Tx even if Rx mergeable Date: Thu, 7 Jun 2018 13:18:03 +0800 Message-ID: <20180607051802.GD32696@debian> References: <20180606123128.7868-1-maxime.coquelin@redhat.com> <20180606123128.7868-3-maxime.coquelin@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: zhihong.wang@intel.com, dev@dpdk.org To: Maxime Coquelin Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id C692B1B1B4 for ; Thu, 7 Jun 2018 07:17:51 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20180606123128.7868-3-maxime.coquelin@redhat.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, Jun 06, 2018 at 02:31:25PM +0200, Maxime Coquelin wrote: > Having Rx mergeable buffers feature enabled should not be > a reason to not use Tx simple path. > > Signed-off-by: Maxime Coquelin > --- > drivers/net/virtio/virtio_ethdev.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c > index bdc4f09d5..73e6d6b6b 100644 > --- a/drivers/net/virtio/virtio_ethdev.c > +++ b/drivers/net/virtio/virtio_ethdev.c > @@ -1949,7 +1949,6 @@ virtio_dev_configure(struct rte_eth_dev *dev) > #endif > if (vtpci_with_feature(hw, VIRTIO_NET_F_MRG_RXBUF)) { > hw->use_simple_rx = 0; > - hw->use_simple_tx = 0; > } Maybe it's better to also remove { and }. Reviewed-by: Tiwei Bie > > if (rx_offloads & (DEV_RX_OFFLOAD_UDP_CKSUM | > -- > 2.14.3 >