From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 5CB1423A for ; Mon, 7 May 2018 07:08:46 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 May 2018 22:08:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,372,1520924400"; d="scan'208";a="39779041" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga006.jf.intel.com with ESMTP; 06 May 2018 22:08:44 -0700 Received: from fmsmsx117.amr.corp.intel.com (10.18.116.17) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 6 May 2018 22:08:44 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx117.amr.corp.intel.com (10.18.116.17) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 6 May 2018 22:08:43 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.40]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.6]) with mapi id 14.03.0319.002; Mon, 7 May 2018 13:08:42 +0800 From: "Xing, Beilei" To: "Zhang, Qi Z" , "Yigit, Ferruh" CC: "dev@dpdk.org" Thread-Topic: [PATCH] net/i40e: fix missing mbuf fast free offload Thread-Index: AQHT5aJmdWzDcDmxc0CPsTKaVDQK6KQjs9cQ Date: Mon, 7 May 2018 05:08:42 +0000 Message-ID: <94479800C636CB44BD422CB454846E0132159F20@SHSMSX101.ccr.corp.intel.com> References: <20180507012626.95313-1-qi.z.zhang@intel.com> In-Reply-To: <20180507012626.95313-1-qi.z.zhang@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: fix missing mbuf fast free offload 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: Mon, 07 May 2018 05:08:46 -0000 > -----Original Message----- > From: Zhang, Qi Z > Sent: Monday, May 7, 2018 9:26 AM > To: Yigit, Ferruh > Cc: Xing, Beilei ; dev@dpdk.org; Zhang, Qi Z > > Subject: [PATCH] net/i40e: fix missing mbuf fast free offload >=20 > Expose the missing mbuf fast free capability since i40 does support it. >=20 > Fixes: 7497d3e2f777 ("net/i40e: convert to new Tx offloads API") >=20 > Signed-off-by: Qi Zhang > --- > drivers/net/i40e/i40e_ethdev.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethde= v.c > index 92ee6c5ae..e866c3081 100644 > --- a/drivers/net/i40e/i40e_ethdev.c > +++ b/drivers/net/i40e/i40e_ethdev.c > @@ -3301,7 +3301,7 @@ i40e_dev_info_get(struct rte_eth_dev *dev, struct > rte_eth_dev_info *dev_info) > DEV_RX_OFFLOAD_VLAN_FILTER | > DEV_RX_OFFLOAD_JUMBO_FRAME; >=20 > - dev_info->tx_queue_offload_capa =3D 0; > + dev_info->tx_queue_offload_capa =3D > DEV_TX_OFFLOAD_MBUF_FAST_FREE; > dev_info->tx_offload_capa =3D > DEV_TX_OFFLOAD_VLAN_INSERT | > DEV_TX_OFFLOAD_QINQ_INSERT | > @@ -3314,7 +3314,9 @@ i40e_dev_info_get(struct rte_eth_dev *dev, struct > rte_eth_dev_info *dev_info) > DEV_TX_OFFLOAD_VXLAN_TNL_TSO | > DEV_TX_OFFLOAD_GRE_TNL_TSO | > DEV_TX_OFFLOAD_IPIP_TNL_TSO | > - DEV_TX_OFFLOAD_GENEVE_TNL_TSO; > + DEV_TX_OFFLOAD_GENEVE_TNL_TSO | > + dev_info->tx_queue_offload_capa; > + > dev_info->dev_capa =3D > RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP | > RTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP; > -- > 2.13.6 Acked-by: Beilei Xing