From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2634AA0547; Fri, 25 Jun 2021 16:38:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 55A3540698; Fri, 25 Jun 2021 16:38:10 +0200 (CEST) Received: from mail-io1-f44.google.com (mail-io1-f44.google.com [209.85.166.44]) by mails.dpdk.org (Postfix) with ESMTP id B6AF24068A for ; Fri, 25 Jun 2021 16:38:09 +0200 (CEST) Received: by mail-io1-f44.google.com with SMTP id s19so12743764ioc.3 for ; Fri, 25 Jun 2021 07:38:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xZ3eru9W9qvzJjFR62uMisejvqlf3SP/KSXKbDFRUuE=; b=qpMEkC7JXxOnp5BDB0VRSD2VJXQeue4VfgSKiCBFpFEP9WfjIp69gv/Bby5BrYtEnr 00Rlm51j2lruUS6slxSV5hQlIYeqWk3Rpvkp+qidkqpzMui4Ptpu0fC+wm3UkFWciYlD CYrZ7qILqYKtKNUNNDIBg5CWl5NCQWziTxhnufHCIWgK4OeWFrEByQJHr1Rljp53bIoF vB7paMoJ28wUsyE6pToNVHrUq59y11Y26S3D3y3AuFf27GwsGQpFx3l9PfU4UbaDq0bo xtdRrfbUJB72WoblYUJZb0/VSO8fOQmFsvuLRM35pMtky3zFy3UzG1eUTGzMq8PW4el7 +f0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xZ3eru9W9qvzJjFR62uMisejvqlf3SP/KSXKbDFRUuE=; b=bYBb3mOdBLpkhu5RTq3IEDE6T2/XXvYfOQLa+Y4mv9MMHnIZ5k0qcbEdiFdYzNJAX8 S+ZmeSyaZ5NH8p6D1fPlp0tQQk9wJLwftmS4M2wLRadYweKxc9QAaXVGLf/IVLjEp/75 urszZh5r3DIiBqofjYv8aKxQ2aUt0DCpi74vLjf0zM95qEmv7cKdbLBxJ5EKSUTqwceL lO+Xld+aGDP7Wl1OcdmLoYzyiIqxqhW8P5TTo/2i4XP3KUXgArITwRCXZDYEt06pu5Q8 4eflyqrHYgGbkTvqpbnLyE1MHtbfl4cbsntK3OMu0ZR6UTWz1Cj03bEzTjjXMKJ0/e/s idXw== X-Gm-Message-State: AOAM533z04zqwvy4uqe0A7+RUOH9snrcbRybsQIrZYn2aDyMG9NW1o9R Nnwfa5jXK4WBX2PsmNVGv9Ev1sTczsHAjr3OXkM= X-Google-Smtp-Source: ABdhPJwjuXPG7pG+NX6mXhYILY/ZOMrKFwgS8x4KUMbqxvgotAozGw/P6xMwfW7cBSnKKlrCB0QCV1jkfZ01G02A1t8= X-Received: by 2002:a5d:8584:: with SMTP id f4mr8744691ioj.59.1624631889088; Fri, 25 Jun 2021 07:38:09 -0700 (PDT) MIME-Version: 1.0 References: <20210512101143.7937-1-ktejasree@marvell.com> In-Reply-To: <20210512101143.7937-1-ktejasree@marvell.com> From: Jerin Jacob Date: Fri, 25 Jun 2021 20:07:43 +0530 Message-ID: To: Tejasree Kondoj Cc: Jerin Jacob , Nithin Dabilpuram , Anoob Joseph , dpdk-dev Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] net/octeontx2: support Inline IPsec without MBUF_FAST_FREE offload X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list 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, May 12, 2021 at 2:46 PM Tejasree Kondoj wrote: > > Adding support for Inline IPsec without DEV_TX_OFFLOAD_MBUF_FAST_FREE. > > Signed-off-by: Tejasree Kondoj Reviewed-by: Jerin Jacob Updated the git comments and Applied to dpdk-next-net-mrvl/for-next-net. Thanks > --- > drivers/net/octeontx2/otx2_ethdev_sec_tx.h | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/octeontx2/otx2_ethdev_sec_tx.h b/drivers/net/octeontx2/otx2_ethdev_sec_tx.h > index c8eae3d628..623a2a841e 100644 > --- a/drivers/net/octeontx2/otx2_ethdev_sec_tx.h > +++ b/drivers/net/octeontx2/otx2_ethdev_sec_tx.h > @@ -59,8 +59,7 @@ otx2_sec_event_tx(uint64_t base, struct rte_event *ev, struct rte_mbuf *m, > sa = &sess->out_sa; > > RTE_ASSERT(sess->cpt_lmtline != NULL); > - RTE_ASSERT(!(offload_flags & (NIX_TX_OFFLOAD_MBUF_NOFF_F | > - NIX_TX_OFFLOAD_VLAN_QINQ_F))); > + RTE_ASSERT(!(offload_flags & NIX_TX_OFFLOAD_VLAN_QINQ_F)); > > dlen = rte_pktmbuf_pkt_len(m) + sizeof(*hdr) - RTE_ETHER_HDR_LEN; > rlen = otx2_ipsec_fp_out_rlen_get(sess, dlen - sizeof(*hdr)); > @@ -135,6 +134,8 @@ otx2_sec_event_tx(uint64_t base, struct rte_event *ev, struct rte_mbuf *m, > sd->nix_hdr.w0.sizem1 = 1; > sd->nix_hdr.w0.total = rte_pktmbuf_data_len(m); > sd->nix_hdr.w0.aura = npa_lf_aura_handle_to_aura(m->pool->pool_id); > + if (offload_flags & NIX_TX_OFFLOAD_MBUF_NOFF_F) > + sd->nix_hdr.w0.df = otx2_nix_prefree_seg(m); > > sd->nix_sg.u = 0; > sd->nix_sg.subdc = NIX_SUBDC_SG; > -- > 2.27.0 >