From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v5 11/23] net/atlantic: transmit side structures and implementation Date: Thu, 11 Oct 2018 13:58:27 +0100 Message-ID: References: <25a9bb2cec783ebb220983bb5f22bf5aa3218472.1539249721.git.igor.russkikh@aquantia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: Pavel Belous To: Igor Russkikh , "dev@dpdk.org" Return-path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id F03701B4F1 for ; Thu, 11 Oct 2018 14:58:38 +0200 (CEST) In-Reply-To: <25a9bb2cec783ebb220983bb5f22bf5aa3218472.1539249721.git.igor.russkikh@aquantia.com> Content-Language: en-US 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 10/11/2018 11:35 AM, Igor Russkikh wrote: > From: Pavel Belous > > Add implementation for TX datapath. > > Signed-off-by: Igor Russkikh > Signed-off-by: Pavel Belous <...> > +atl_tso_setup(struct rte_mbuf *tx_pkt, union hw_atl_txc_s *txc) > +{ > + uint32_t tx_cmd = 0; > + uint64_t ol_flags = tx_pkt->ol_flags; > + > + PMD_INIT_FUNC_TRACE(); > + > + if (ol_flags & PKT_TX_TCP_SEG) { > + PMD_DRV_LOG(DEBUG, "xmit TSO pkt"); > + > + tx_cmd |= tx_desc_cmd_lso | tx_desc_cmd_l4cs; > + > + txc->cmd = 0x4; > + > + if (ol_flags & PKT_TX_IPV6) > + txc->cmd |= 0x2; > + > + txc->l2_len = tx_pkt->l2_len; > + txc->l3_len = tx_pkt->l3_len; > + txc->l4_len = tx_pkt->l4_len; > + > + txc->mss_len = tx_pkt->tso_segsz; > + } > + > + if (ol_flags & PKT_TX_VLAN_PKT) { PKT_TX_VLAN_PKT is deprecated, please replace it with PKT_TX_VLAN.