From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from huawei.com (lhrrgout.huawei.com [194.213.3.17]) by dpdk.org (Postfix) with ESMTP id 2BF432BBE for ; Mon, 8 Jan 2018 12:47:13 +0100 (CET) Received: from LHREML714-CAH.china.huawei.com (unknown [172.18.7.108]) by Forcepoint Email with ESMTP id 578D4A4AB73F9; Mon, 8 Jan 2018 11:47:10 +0000 (GMT) Received: from FRAEML704-CAH.china.huawei.com (10.206.14.35) by LHREML714-CAH.china.huawei.com (10.201.108.37) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 8 Jan 2018 11:47:12 +0000 Received: from FRAEML521-MBX.china.huawei.com ([169.254.1.156]) by FRAEML704-CAH.china.huawei.com ([10.206.14.35]) with mapi id 14.03.0361.001; Mon, 8 Jan 2018 12:47:11 +0100 From: "Avi Cohen (A)" To: "Gowda, Sandesh" , "users@dpdk.org" Thread-Topic: IPSEC-SECGW sample application Thread-Index: AdOHy7KaBzLhC8jTTQWybyU8LedmBwAkRJQAAAZCeTA= Date: Mon, 8 Jan 2018 11:47:11 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.200.202.108] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CFilter-Loop: Reflected Subject: Re: [dpdk-users] IPSEC-SECGW sample application X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jan 2018 11:47:13 -0000 Hi Sandesh Thank you - I already understood that.=20 I see in the documentation that this app. Supports only **complete offload*= *. But Intel NICS x540 and 82599 which supports ipsec offload requires that= the SW will add/remove the ESP headers=20 How can I run this app with x540 nic ? Best Regards Avi > -----Original Message----- > From: Gowda, Sandesh [mailto:sandesh.gowda@intel.com] > Sent: Monday, 08 January, 2018 10:47 AM > To: Avi Cohen (A); users@dpdk.org > Subject: RE: IPSEC-SECGW sample application >=20 >=20 > Hi Avi, >=20 > The application classifies the ports as Protected and Unprotected. Thus,= traffic > received on an Unprotected or Protected port is consider Inbound or Outbo= und > respectively. > ( Refer : http://dpdk.org/doc/guides/sample_app_ug/ipsec_secgw.html ) >=20 > The Packets sent on a Unprotected network requires Encryption whereas > packets on Protected Network can be plain text. > This is the expected behavior. >=20 > Regards, > Sandesh >=20 >=20 >=20 >=20 > -----Original Message----- > From: users [mailto:users-bounces@dpdk.org] On Behalf Of Avi Cohen (A) > Sent: Sunday, January 07, 2018 9:12 PM > To: users@dpdk.org > Subject: [dpdk-users] IPSEC-SECGW sample application >=20 >=20 > Hello > I'm using the DPDK17.11 and running the sample app. Ipsec_secgw. > I have 2 ports port 0 is protected and port 1 is unprotected Traffic is r= eceived in > the unprotected and should be sent to the protected port for encryption= But > the traffic processing for the traffic received in the unprotected port i= s going > through the **process_pkts_inbound ** . > I expect that the traffic should be directed to the **process_pkts_outbo= und** > [where ESP headers are added etc.] Can someone help ? >=20 >=20 > This is the config file: >=20 > #SP rules > sp ipv4 in esp protect 5 src 1.1.1.2/32 dst 1.1.2.10/32 #SA rules sa in 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-tu= nnel > src 172.16.1.5 dst 172.16.2.5 \ type inline-protocol-offload port_id 0 #R= outing > rules rt ipv4 dst 172.16.2.5/32 port 0 rt ipv4 dst 1.1.2.0/24 port 0 rt i= pv4 dst > 1.1.1.0/24 port 0 >=20 >=20 > and this is the command line to run the applic: >=20 > ./ipsec-secgw -l 1 -n 2 -- -p 0x3 -P -u 0x2 --config=3D"(0,0,1),(1,0,1)" = -f ../ep1.cfg >=20 >=20 > Best Regards > Avi