From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id B3B281CE98 for ; Fri, 6 Apr 2018 11:15:37 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Apr 2018 02:15:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,414,1517904000"; d="scan'208";a="30580406" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga008.fm.intel.com with ESMTP; 06 Apr 2018 02:15:36 -0700 Received: from FMSMSX110.amr.corp.intel.com (10.18.116.10) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 6 Apr 2018 02:15:35 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx110.amr.corp.intel.com (10.18.116.10) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 6 Apr 2018 02:15:35 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.241]) by shsmsx102.ccr.corp.intel.com ([169.254.2.61]) with mapi id 14.03.0319.002; Fri, 6 Apr 2018 17:15:30 +0800 From: "Zhang, Helin" To: "Zhang, Qi Z" , "eduser25@gmail.com" CC: "dev@dpdk.org" Thread-Topic: [PATCH] net/i40e/vf: reset scatter_rx flag when configuration complies Thread-Index: AQHTx5psXDB8xyapk0S2ZYXJZOOtzqPtZ5uAgAYQccA= Date: Fri, 6 Apr 2018 08:46:04 +0000 Message-ID: References: <1522354407-90598-1-git-send-email-eduser25@gmail.com> <039ED4275CED7440929022BC67E706115317784D@SHSMSX103.ccr.corp.intel.com> In-Reply-To: <039ED4275CED7440929022BC67E706115317784D@SHSMSX103.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] net/i40e/vf: reset scatter_rx flag when configuration complies 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: , X-List-Received-Date: Fri, 06 Apr 2018 09:15:38 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Zhang, Qi Z > Sent: Monday, April 2, 2018 8:14 PM > To: eduser25@gmail.com > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] net/i40e/vf: reset scatter_rx flag when > configuration complies >=20 > Hi Serra: >=20 > > -----Original Message----- > > From: eduser25@gmail.com [mailto:eduser25@gmail.com] > > Sent: Friday, March 30, 2018 4:13 AM > > To: Zhang, Qi Z > > Cc: dev@dpdk.org; Eduard Serra > > Subject: [PATCH] net/i40e/vf: reset scatter_rx flag when configuration > > complies > > > > From: Eduard Serra > > > > Scatter RX (scattered_rx) flag is currently not being resetted when > > new configuration is suplied to reconfigure a port, rendering the rx > > callback logic to >=20 > s/suplied/supplied >=20 > > always fall through the scatter branch. > > > > Signed-off-by: Eduard Serra > > --- > > drivers/net/i40e/i40e_ethdev_vf.c | 2 ++ > > drivers/net/i40e/i40e_rxtx.c | 2 ++ > > 2 files changed, 4 insertions(+) > > > > diff --git a/drivers/net/i40e/i40e_ethdev_vf.c > > b/drivers/net/i40e/i40e_ethdev_vf.c > > index 750d849..a072154 100644 > > --- a/drivers/net/i40e/i40e_ethdev_vf.c > > +++ b/drivers/net/i40e/i40e_ethdev_vf.c > > @@ -1750,6 +1750,8 @@ i40evf_rxq_init(struct rte_eth_dev *dev, struct > > i40e_rx_queue *rxq) > > if (dev_data->dev_conf.rxmode.enable_scatter || > > (rxq->max_pkt_len + 2 * I40E_VLAN_TAG_SIZE) > buf_size) { > > dev_data->scattered_rx =3D 1; > > + } else { > > + dev_data->scattered_rx =3D 0; >=20 > Scattered_rx should not be reset if any queue already required You should > reset it before the queue loop Does it mean a NACK? /Helin >=20 > > } > > > > return 0; > > diff --git a/drivers/net/i40e/i40e_rxtx.c > > b/drivers/net/i40e/i40e_rxtx.c index > > 1217e5a..8698747 100644 > > --- a/drivers/net/i40e/i40e_rxtx.c > > +++ b/drivers/net/i40e/i40e_rxtx.c > > @@ -2561,6 +2561,8 @@ i40e_rx_queue_init(struct i40e_rx_queue *rxq) > > /* Check if scattered RX needs to be used. */ > > if ((rxq->max_pkt_len + 2 * I40E_VLAN_TAG_SIZE) > buf_size) { > > dev_data->scattered_rx =3D 1; > > + } else { > > + dev_data->scattered_rx =3D 0; >=20 > Same as above. >=20 > Regards > Qi >=20 > > } > > > > /* Init the RX tail regieter. */ > > -- > > 2.7.4