From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 62664A04B1; Fri, 28 Aug 2020 20:06:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 029A62B9E; Fri, 28 Aug 2020 20:06:14 +0200 (CEST) Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) by dpdk.org (Postfix) with ESMTP id BE42DB62; Fri, 28 Aug 2020 20:06:12 +0200 (CEST) Received: by mail-ej1-f48.google.com with SMTP id a21so351114ejp.0; Fri, 28 Aug 2020 11:06:12 -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; bh=R+N1sFukJm2bJcR6labzRQPzoomhCkSUI6f5LhBb59w=; b=BSDGfwv61dTlwlF4gwhhBuWlhJnWz7s/cgT51cm7Ge5ek5mRWths8WY105eqgcKs4z /7M1EC/e0AiB9LnllZQYQmW1hXOAiZZn8dG4RRhl745zC7mfpPUCI8jKIF9gx/eCHIf4 ewrmYeJLqh795N5qHF8kTD2Ue5RvhybmMVhP4+0qvwreLwtJLrBU2SbKfXw6AGIoijpZ geFsNtKiV2uQkMXcQh07bHg+cAf1thbqLHK+0K1dy3dB83vwqlFMxr5vUoVo0X8aWfvD derPNbevX/4/R9jOiRNt/i9u6Iqof5hFG0jE5HpvnVnASzyysTzYGtNOODjElha5blOd 1qPA== 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; bh=R+N1sFukJm2bJcR6labzRQPzoomhCkSUI6f5LhBb59w=; b=NcZvtDdiFep0c0Ic3BQRy/bcEiCmD2VwDNB1kl2qTOOzcufkqUL0YXyG2l8zQjpqYy a88Nd+eJ9MsMyO+PROcIs1GFWWZYT7YxqW390mYrod+v+2KaCtjbDFHdNcyQZ4LKuVH/ 9bpoG6OK8Ws5BqBE8eC6BtmZHgMZ51e5veQIiIhtbxA/ZQtjRodR1hqRgq7Cq0HP75gi c3hmgxeODV4C0Pr9MohZkCdOvonJAVftRuL4zz6dd/PP3jJ1jKs/0yoFNUckTuanPot5 n4RkqGb14OOvBiLSJBhpZYeSJAQC65bO6U5EinosdknrmNonqs6ReI6kXmWV0IRwfUXO 9sbg== X-Gm-Message-State: AOAM5323WieIIXCI8ZJeWWf7p7tRo/kDBJvWniWbCoyvqjGrt6GwvVGW Dte66d4MbBjywIuNsA7WpThLO5MAvb3MGMwTW++xC4gr X-Google-Smtp-Source: ABdhPJydZKJkfjqFNcdgf1hprT+pDGQqMNdLA3N+zM/s8gmoa/cpKzXnecWGsE68tSsuu2nx4vVltpXRbJAmip/tZUA= X-Received: by 2002:a17:906:69c9:: with SMTP id g9mr3258401ejs.313.1598637972222; Fri, 28 Aug 2020 11:06:12 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: satyavalli rama Date: Fri, 28 Aug 2020 23:36:00 +0530 Message-ID: To: dev@dpdk.org, users-request@dpdk.org, dev-request@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Ipsec-secgw packet processing 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > Hi > Please give us some inputs to proceed. > We are using the following hardware details, > HOST: x722 (i40e) intel. > VM: e1000 (82540) intel. > > We have launched Virtual machine on host , and executing ipsec-secgw > application on VM. > > Please find below the CLI and configuration for TRANSPORT MODE. > > CLI: > > ./build/ipsec-secgw -l 0 -n 4 --socket-mem 1024,0 --vdev "crypto_null" -- > -p 0x3 -P -u 0x1 --config="(0,0,0),(1,0,0)" -f ep0.cfg > > #TRANSPORT: > > #SP IPv4 rules > sp ipv4 out esp protect 10 pri 1 dst 192.168.122.0/24 sport 0:65535 dport > 0:65535 > > #SA rules > sa out 10 cipher_algo aes-128-cbc cipher_key > a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:\ > a1:a1:a1:a1:a1 auth_algo sha1-hmac auth_key > a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:\ > a1:a1:a1:a1:a1:a1:a1:a1:a1 mode transport > > #Routing rules > rt ipv4 dst 192.168.122.0/24 port 1 > > > Please find below the CLI and configuration for TUNNEL MODE. > > CLI: > > ./build/ipsec-secgw -l 0 -n 4 --socket-mem 1024,0 --vdev "crypto_null" -- > -p 0x3 -P -u 0x1 --config="(0,0,0),(1,0,0)" -f ep0.cfg > > #TUNNEL End Point-0: > > #SP IPv4 rules > sp ipv4 out esp protect 5 pri 1 dst 192.168.122.0/24 sport 0:65535 dport > 0:65535 > > #SA rules > sa out 5 cipher_algo aes-128-cbc cipher_key > 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 \ > auth_algo sha1-hmac auth_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 \ > mode ipv4-tunnel src 192.168.122.96 dst 192.168.122.213 > > #Routing rules > rt ipv4 dst 192.168.122.0/24 port 1 > > On Tue, 18 Aug, 2020, 4:29 pm Anoob Joseph, wrote: > >> Hi Satya, >> >> Are you attempting to enable inline protocol (IPsec) functionality? If >> yes, which PMD (& h/w) are you using for the same? >> >> Thanks, >> Anoob >> >> > -----Original Message----- >> > From: dev On Behalf Of satyavalli rama >> > Sent: Tuesday, August 18, 2020 4:08 PM >> > To: dev@dpdk.org; users@dpdk.org >> > Subject: Re: [dpdk-dev] Ipsec-secgw packet processing >> > >> > We further debugged and we observed that while running ipsec-secgw >> > application in transport-mode dpdk-19.02/11, we found that inline packet >> > processing is not happening. >> > We observed that ol_flags is not setting from driver level. We are >> expecting >> > that , because of ol_flags not set , inline packet processing is not >> > happening.Any idea What could be the reason for this, I think ol_flags >> will be >> > configured from driver level Or else do we need to provide any external >> > configuration for setting ol_flags. >> > And also we are not observing encrypt/decrypt packets on pdump before >> > sending packets out from tx-port(rte_eth_tx_burst()). >> > Please help us on this...to proceed further. >> > >> > Thanks & Regards >> > Satya >> > >> > >> > >> > On Mon, 17 Aug, 2020, 4:11 pm satyavalli rama, < >> satyavalli.rama@gmail.com> >> > wrote: >> > >> > > >> > > Hello, >> > > >> > > While we are running ipsec-secgw application in transport-mode on >> > > dpdk-19.02, we found that inline packet processing is not happening. >> > > >> > > And also we are not observing any encrypt/decrypt packets on pdump >> > > before sending packets out from tx-port(rte_eth_tx_burst()). >> > > >> > > Please help us on how to proceed further. >> > > >> > > Thanks, >> > > Jagadeesh >> > > >> > > >> >