On 10/11/2018 11:35 AM, Igor Russkikh wrote:
> From: Pavel Belous <pavel.bel...@aquantia.com>
> 
> Add implementation for TX datapath.
> 
> Signed-off-by: Igor Russkikh <igor.russk...@aquantia.com>
> Signed-off-by: Pavel Belous <pavel.bel...@aquantia.com>

<...>

> +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.

Reply via email to