DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] IPsec offload
@ 2017-11-05  8:32 Avi Cohen (A)
  2017-11-06  1:02 ` Thomas Monjalon
  0 siblings, 1 reply; 26+ messages in thread
From: Avi Cohen (A) @ 2017-11-05  8:32 UTC (permalink / raw)
  To: users

Does the DPDK  support HW IPsec offload ? can DPDK configure the NIC/Network adapter to ipsec a specific flow ?
Thank You
Avi

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-05  8:32 [dpdk-users] IPsec offload Avi Cohen (A)
@ 2017-11-06  1:02 ` Thomas Monjalon
  2017-11-06 10:25   ` Avi Cohen (A)
  0 siblings, 1 reply; 26+ messages in thread
From: Thomas Monjalon @ 2017-11-06  1:02 UTC (permalink / raw)
  To: Avi Cohen (A); +Cc: users

Hi,

05/11/2017 09:32, Avi Cohen (A):
> Does the DPDK  support HW IPsec offload ?
> can DPDK configure the NIC/Network adapter to ipsec a specific flow ?

Yes, an experimental IPsec offload support is added in DPDK 17.11.
It is called rte_security:
	http://dpdk.org/doc/guides/prog_guide/rte_security.html

The hardware support will probably be improved in DPDK 18.02.

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-06  1:02 ` Thomas Monjalon
@ 2017-11-06 10:25   ` Avi Cohen (A)
  2017-11-06 11:13     ` Thomas Monjalon
  0 siblings, 1 reply; 26+ messages in thread
From: Avi Cohen (A) @ 2017-11-06 10:25 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: users

Thank you Thomas
Is this was tested on a specific HW e.g.  Mellanox Innova  / other ?
Regards
Avi

> -----Original Message-----
> From: Thomas Monjalon [mailto:thomas@monjalon.net]
> Sent: Monday, 06 November, 2017 3:03 AM
> To: Avi Cohen (A)
> Cc: users@dpdk.org
> Subject: Re: [dpdk-users] IPsec offload
> 
> Hi,
> 
> 05/11/2017 09:32, Avi Cohen (A):
> > Does the DPDK  support HW IPsec offload ?
> > can DPDK configure the NIC/Network adapter to ipsec a specific flow ?
> 
> Yes, an experimental IPsec offload support is added in DPDK 17.11.
> It is called rte_security:
> 	http://dpdk.org/doc/guides/prog_guide/rte_security.html
> 
> The hardware support will probably be improved in DPDK 18.02.

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-06 10:25   ` Avi Cohen (A)
@ 2017-11-06 11:13     ` Thomas Monjalon
  2017-11-06 15:53       ` Avi Cohen (A)
  2017-11-08 11:50       ` Avi Cohen (A)
  0 siblings, 2 replies; 26+ messages in thread
From: Thomas Monjalon @ 2017-11-06 11:13 UTC (permalink / raw)
  To: Avi Cohen (A); +Cc: users, olgas

06/11/2017 11:25, Avi Cohen (A):
> Thank you Thomas
> Is this was tested on a specific HW e.g.  Mellanox Innova  / other ?

Mellanox hardware will probably be supported in 18.02.
There are some experimental support for NXP DPAA2 and Intel ixgbe in DPDK 17.11.


> > -----Original Message-----
> > From: Thomas Monjalon [mailto:thomas@monjalon.net]
> > 
> > Hi,
> > 
> > 05/11/2017 09:32, Avi Cohen (A):
> > > Does the DPDK  support HW IPsec offload ?
> > > can DPDK configure the NIC/Network adapter to ipsec a specific flow ?
> > 
> > Yes, an experimental IPsec offload support is added in DPDK 17.11.
> > It is called rte_security:
> > 	http://dpdk.org/doc/guides/prog_guide/rte_security.html
> > 
> > The hardware support will probably be improved in DPDK 18.02.

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-06 11:13     ` Thomas Monjalon
@ 2017-11-06 15:53       ` Avi Cohen (A)
  2017-11-06 16:37         ` De Lara Guarch, Pablo
  2017-11-08 11:50       ` Avi Cohen (A)
  1 sibling, 1 reply; 26+ messages in thread
From: Avi Cohen (A) @ 2017-11-06 15:53 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: users, olgas

Thank you Thomas
When I run the ipsec-secgw sample app. The program is exiting  with error 'Mandatory option "-f" not present' 
What is this option ? config file ? 
Regards
Avi

> -----Original Message-----
> From: Thomas Monjalon [mailto:thomas@monjalon.net]
> Sent: Monday, 06 November, 2017 1:13 PM
> To: Avi Cohen (A)
> Cc: users@dpdk.org; olgas@mellanox.com
> Subject: Re: [dpdk-users] IPsec offload
> 
> 06/11/2017 11:25, Avi Cohen (A):
> > Thank you Thomas
> > Is this was tested on a specific HW e.g.  Mellanox Innova  / other ?
> 
> Mellanox hardware will probably be supported in 18.02.
> There are some experimental support for NXP DPAA2 and Intel ixgbe in DPDK
> 17.11.
> 
> 
> > > -----Original Message-----
> > > From: Thomas Monjalon [mailto:thomas@monjalon.net]
> > >
> > > Hi,
> > >
> > > 05/11/2017 09:32, Avi Cohen (A):
> > > > Does the DPDK  support HW IPsec offload ?
> > > > can DPDK configure the NIC/Network adapter to ipsec a specific flow ?
> > >
> > > Yes, an experimental IPsec offload support is added in DPDK 17.11.
> > > It is called rte_security:
> > > 	http://dpdk.org/doc/guides/prog_guide/rte_security.html
> > >
> > > The hardware support will probably be improved in DPDK 18.02.
> 
> 

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-06 15:53       ` Avi Cohen (A)
@ 2017-11-06 16:37         ` De Lara Guarch, Pablo
  2017-11-06 16:42           ` Avi Cohen (A)
  0 siblings, 1 reply; 26+ messages in thread
From: De Lara Guarch, Pablo @ 2017-11-06 16:37 UTC (permalink / raw)
  To: Avi Cohen (A), Thomas Monjalon; +Cc: users, olgas

Hi Avi,


> -----Original Message-----
> From: users [mailto:users-bounces@dpdk.org] On Behalf Of Avi Cohen (A)
> Sent: Monday, November 6, 2017 3:53 PM
> To: Thomas Monjalon <thomas@monjalon.net>
> Cc: users@dpdk.org; olgas@mellanox.com
> Subject: Re: [dpdk-users] IPsec offload
> 
> Thank you Thomas
> When I run the ipsec-secgw sample app. The program is exiting  with error
> 'Mandatory option "-f" not present'
> What is this option ? config file ?

Yes, that's a configuration file, like the one that you can find in ep0.cfg or ep1.cfg.

Pablo

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-06 16:37         ` De Lara Guarch, Pablo
@ 2017-11-06 16:42           ` Avi Cohen (A)
  2017-11-06 16:47             ` De Lara Guarch, Pablo
  0 siblings, 1 reply; 26+ messages in thread
From: Avi Cohen (A) @ 2017-11-06 16:42 UTC (permalink / raw)
  To: De Lara Guarch, Pablo, Thomas Monjalon; +Cc: users, olgas

Thank you Pablo
Can you supply an example command line to run the ipsec-secgw ?
Regards
Avi

> -----Original Message-----
> From: De Lara Guarch, Pablo [mailto:pablo.de.lara.guarch@intel.com]
> Sent: Monday, 06 November, 2017 6:37 PM
> To: Avi Cohen (A); Thomas Monjalon
> Cc: users@dpdk.org; olgas@mellanox.com
> Subject: RE: [dpdk-users] IPsec offload
> 
> Hi Avi,
> 
> 
> > -----Original Message-----
> > From: users [mailto:users-bounces@dpdk.org] On Behalf Of Avi Cohen (A)
> > Sent: Monday, November 6, 2017 3:53 PM
> > To: Thomas Monjalon <thomas@monjalon.net>
> > Cc: users@dpdk.org; olgas@mellanox.com
> > Subject: Re: [dpdk-users] IPsec offload
> >
> > Thank you Thomas
> > When I run the ipsec-secgw sample app. The program is exiting  with
> > error 'Mandatory option "-f" not present'
> > What is this option ? config file ?
> 
> Yes, that's a configuration file, like the one that you can find in ep0.cfg or
> ep1.cfg.
> 
> Pablo

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-06 16:42           ` Avi Cohen (A)
@ 2017-11-06 16:47             ` De Lara Guarch, Pablo
  2017-11-06 17:16               ` Avi Cohen (A)
  2017-11-07  8:54               ` Avi Cohen (A)
  0 siblings, 2 replies; 26+ messages in thread
From: De Lara Guarch, Pablo @ 2017-11-06 16:47 UTC (permalink / raw)
  To: Avi Cohen (A), Thomas Monjalon; +Cc: users, olgas



> -----Original Message-----
> From: Avi Cohen (A) [mailto:avi.cohen@huawei.com]
> Sent: Monday, November 6, 2017 4:42 PM
> To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Thomas
> Monjalon <thomas@monjalon.net>
> Cc: users@dpdk.org; olgas@mellanox.com
> Subject: RE: [dpdk-users] IPsec offload
> 
> Thank you Pablo
> Can you supply an example command line to run the ipsec-secgw ?

./examples/ipsec-secgw/build/ipsec-secgw -l 10,11 -n 4 --vdev="crypto_aesni_gcm0" /
-- -p 0x1 -P --config="(0,0,10)" -f ep-sample.cfg

Where ep-sample.cfg contains:

sp ipv4 out esp protect 0010 pri 1 dst 001.0.0.0/24 sport 0:65535 dport 0:65535
sa out 0010 aead_algo aes-128-gcm aead_key de:ad:be:ef:de:ad:be:ef:de:ad:be:
ef:de:ad:be:ef:de:ad:be:ef mode ipv4-tunnel src 20.0.0.0 dst 21.0.0.0
rt ipv4 dst 21.0.0.0/8 port 0


> Regards
> Avi
> 
> > -----Original Message-----
> > From: De Lara Guarch, Pablo [mailto:pablo.de.lara.guarch@intel.com]
> > Sent: Monday, 06 November, 2017 6:37 PM
> > To: Avi Cohen (A); Thomas Monjalon
> > Cc: users@dpdk.org; olgas@mellanox.com
> > Subject: RE: [dpdk-users] IPsec offload
> >
> > Hi Avi,
> >
> >
> > > -----Original Message-----
> > > From: users [mailto:users-bounces@dpdk.org] On Behalf Of Avi Cohen
> > > (A)
> > > Sent: Monday, November 6, 2017 3:53 PM
> > > To: Thomas Monjalon <thomas@monjalon.net>
> > > Cc: users@dpdk.org; olgas@mellanox.com
> > > Subject: Re: [dpdk-users] IPsec offload
> > >
> > > Thank you Thomas
> > > When I run the ipsec-secgw sample app. The program is exiting  with
> > > error 'Mandatory option "-f" not present'
> > > What is this option ? config file ?
> >
> > Yes, that's a configuration file, like the one that you can find in
> > ep0.cfg or ep1.cfg.
> >
> > Pablo

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-06 16:47             ` De Lara Guarch, Pablo
@ 2017-11-06 17:16               ` Avi Cohen (A)
  2017-11-07  9:42                 ` De Lara Guarch, Pablo
  2017-11-07  8:54               ` Avi Cohen (A)
  1 sibling, 1 reply; 26+ messages in thread
From: Avi Cohen (A) @ 2017-11-06 17:16 UTC (permalink / raw)
  To: De Lara Guarch, Pablo, Thomas Monjalon; +Cc: users, olgas

Pablo
This cmd-line is for a crypto-device - correct ? 
What is the cmd-line for Ethernet device ?  (I already bound this Ethernet device to dpdk)
Regards
Avi

> -----Original Message-----
> From: De Lara Guarch, Pablo [mailto:pablo.de.lara.guarch@intel.com]
> Sent: Monday, 06 November, 2017 6:48 PM
> To: Avi Cohen (A); Thomas Monjalon
> Cc: users@dpdk.org; olgas@mellanox.com
> Subject: RE: [dpdk-users] IPsec offload
> 
> 
> 
> > -----Original Message-----
> > From: Avi Cohen (A) [mailto:avi.cohen@huawei.com]
> > Sent: Monday, November 6, 2017 4:42 PM
> > To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Thomas
> > Monjalon <thomas@monjalon.net>
> > Cc: users@dpdk.org; olgas@mellanox.com
> > Subject: RE: [dpdk-users] IPsec offload
> >
> > Thank you Pablo
> > Can you supply an example command line to run the ipsec-secgw ?
> 
> ./examples/ipsec-secgw/build/ipsec-secgw -l 10,11 -n 4 --
> vdev="crypto_aesni_gcm0" /
> -- -p 0x1 -P --config="(0,0,10)" -f ep-sample.cfg
> 
> Where ep-sample.cfg contains:
> 
> sp ipv4 out esp protect 0010 pri 1 dst 001.0.0.0/24 sport 0:65535 dport 0:65535
> sa out 0010 aead_algo aes-128-gcm aead_key de:ad:be:ef:de:ad:be:ef:de:ad:be:
> ef:de:ad:be:ef:de:ad:be:ef mode ipv4-tunnel src 20.0.0.0 dst 21.0.0.0 rt ipv4 dst
> 21.0.0.0/8 port 0
> 
> 
> > Regards
> > Avi
> >
> > > -----Original Message-----
> > > From: De Lara Guarch, Pablo [mailto:pablo.de.lara.guarch@intel.com]
> > > Sent: Monday, 06 November, 2017 6:37 PM
> > > To: Avi Cohen (A); Thomas Monjalon
> > > Cc: users@dpdk.org; olgas@mellanox.com
> > > Subject: RE: [dpdk-users] IPsec offload
> > >
> > > Hi Avi,
> > >
> > >
> > > > -----Original Message-----
> > > > From: users [mailto:users-bounces@dpdk.org] On Behalf Of Avi Cohen
> > > > (A)
> > > > Sent: Monday, November 6, 2017 3:53 PM
> > > > To: Thomas Monjalon <thomas@monjalon.net>
> > > > Cc: users@dpdk.org; olgas@mellanox.com
> > > > Subject: Re: [dpdk-users] IPsec offload
> > > >
> > > > Thank you Thomas
> > > > When I run the ipsec-secgw sample app. The program is exiting
> > > > with error 'Mandatory option "-f" not present'
> > > > What is this option ? config file ?
> > >
> > > Yes, that's a configuration file, like the one that you can find in
> > > ep0.cfg or ep1.cfg.
> > >
> > > Pablo

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-06 16:47             ` De Lara Guarch, Pablo
  2017-11-06 17:16               ` Avi Cohen (A)
@ 2017-11-07  8:54               ` Avi Cohen (A)
  2017-11-07 11:24                 ` De Lara Guarch, Pablo
  1 sibling, 1 reply; 26+ messages in thread
From: Avi Cohen (A) @ 2017-11-07  8:54 UTC (permalink / raw)
  To: De Lara Guarch, Pablo, Thomas Monjalon; +Cc: users, olgas


> > Thank you Pablo
> > Can you supply an example command line to run the ipsec-secgw ?
> 
> ./examples/ipsec-secgw/build/ipsec-secgw -l 10,11 -n 4 --
> vdev="crypto_aesni_gcm0" /
> -- -p 0x1 -P --config="(0,0,10)" -f ep-sample.cfg
> 
> Where ep-sample.cfg contains:
> 
> sp ipv4 out esp protect 0010 pri 1 dst 001.0.0.0/24 sport 0:65535 dport 0:65535
> sa out 0010 aead_algo aes-128-gcm aead_key de:ad:be:ef:de:ad:be:ef:de:ad:be:
> ef:de:ad:be:ef:de:ad:be:ef mode ipv4-tunnel src 20.0.0.0 dst 21.0.0.0 rt ipv4 dst
> 21.0.0.0/8 port 0
> 
[Avi Cohen (A)] 

When running it almost all parameters from the config file starting from " sa out 0010"  are not recognized by the application 
Do I have to create any additional objects before running it ? I don't see it in the documentation .
I want to run IPsec offload over ethernet port
Best Regards
Avi

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-06 17:16               ` Avi Cohen (A)
@ 2017-11-07  9:42                 ` De Lara Guarch, Pablo
  2017-11-07  9:49                   ` Avi Cohen (A)
  0 siblings, 1 reply; 26+ messages in thread
From: De Lara Guarch, Pablo @ 2017-11-07  9:42 UTC (permalink / raw)
  To: Avi Cohen (A), Thomas Monjalon; +Cc: users, olgas

Hi Avi,

> -----Original Message-----
> From: Avi Cohen (A) [mailto:avi.cohen@huawei.com]
> Sent: Monday, November 6, 2017 5:16 PM
> To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Thomas
> Monjalon <thomas@monjalon.net>
> Cc: users@dpdk.org; olgas@mellanox.com
> Subject: RE: [dpdk-users] IPsec offload
> 
> Pablo
> This cmd-line is for a crypto-device - correct ?
> What is the cmd-line for Ethernet device ?  (I already bound this Ethernet
> device to dpdk) Regards Avi

That command line is initializing a software-based crypto device.
It assumes that you have one physical Ethernet device (it will use it due to the -p and --config options).

Pablo

> 
> > -----Original Message-----
> > From: De Lara Guarch, Pablo [mailto:pablo.de.lara.guarch@intel.com]
> > Sent: Monday, 06 November, 2017 6:48 PM
> > To: Avi Cohen (A); Thomas Monjalon
> > Cc: users@dpdk.org; olgas@mellanox.com
> > Subject: RE: [dpdk-users] IPsec offload
> >
> >
> >
> > > -----Original Message-----
> > > From: Avi Cohen (A) [mailto:avi.cohen@huawei.com]
> > > Sent: Monday, November 6, 2017 4:42 PM
> > > To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Thomas
> > > Monjalon <thomas@monjalon.net>
> > > Cc: users@dpdk.org; olgas@mellanox.com
> > > Subject: RE: [dpdk-users] IPsec offload
> > >
> > > Thank you Pablo
> > > Can you supply an example command line to run the ipsec-secgw ?
> >
> > ./examples/ipsec-secgw/build/ipsec-secgw -l 10,11 -n 4 --
> > vdev="crypto_aesni_gcm0" /
> > -- -p 0x1 -P --config="(0,0,10)" -f ep-sample.cfg
> >
> > Where ep-sample.cfg contains:
> >
> > sp ipv4 out esp protect 0010 pri 1 dst 001.0.0.0/24 sport 0:65535
> > dport 0:65535 sa out 0010 aead_algo aes-128-gcm aead_key
> de:ad:be:ef:de:ad:be:ef:de:ad:be:
> > ef:de:ad:be:ef:de:ad:be:ef mode ipv4-tunnel src 20.0.0.0 dst 21.0.0.0
> > rt ipv4 dst
> > 21.0.0.0/8 port 0
> >
> >
> > > Regards
> > > Avi
> > >
> > > > -----Original Message-----
> > > > From: De Lara Guarch, Pablo
> > > > [mailto:pablo.de.lara.guarch@intel.com]
> > > > Sent: Monday, 06 November, 2017 6:37 PM
> > > > To: Avi Cohen (A); Thomas Monjalon
> > > > Cc: users@dpdk.org; olgas@mellanox.com
> > > > Subject: RE: [dpdk-users] IPsec offload
> > > >
> > > > Hi Avi,
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: users [mailto:users-bounces@dpdk.org] On Behalf Of Avi
> > > > > Cohen
> > > > > (A)
> > > > > Sent: Monday, November 6, 2017 3:53 PM
> > > > > To: Thomas Monjalon <thomas@monjalon.net>
> > > > > Cc: users@dpdk.org; olgas@mellanox.com
> > > > > Subject: Re: [dpdk-users] IPsec offload
> > > > >
> > > > > Thank you Thomas
> > > > > When I run the ipsec-secgw sample app. The program is exiting
> > > > > with error 'Mandatory option "-f" not present'
> > > > > What is this option ? config file ?
> > > >
> > > > Yes, that's a configuration file, like the one that you can find
> > > > in ep0.cfg or ep1.cfg.
> > > >
> > > > Pablo

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-07  9:42                 ` De Lara Guarch, Pablo
@ 2017-11-07  9:49                   ` Avi Cohen (A)
  2017-11-07  9:51                     ` De Lara Guarch, Pablo
  0 siblings, 1 reply; 26+ messages in thread
From: Avi Cohen (A) @ 2017-11-07  9:49 UTC (permalink / raw)
  To: De Lara Guarch, Pablo, Thomas Monjalon; +Cc: users, olgas

Hi Pablo
When running - I get "Unable to parse device 'crypto_aesni_gcm0' (then the app. Exit) 
Regards,
Avi

> -----Original Message-----
> From: De Lara Guarch, Pablo [mailto:pablo.de.lara.guarch@intel.com]
> Sent: Tuesday, 07 November, 2017 11:43 AM
> To: Avi Cohen (A); Thomas Monjalon
> Cc: users@dpdk.org; olgas@mellanox.com
> Subject: RE: [dpdk-users] IPsec offload
> 
> Hi Avi,
> 
> > -----Original Message-----
> > From: Avi Cohen (A) [mailto:avi.cohen@huawei.com]
> > Sent: Monday, November 6, 2017 5:16 PM
> > To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Thomas
> > Monjalon <thomas@monjalon.net>
> > Cc: users@dpdk.org; olgas@mellanox.com
> > Subject: RE: [dpdk-users] IPsec offload
> >
> > Pablo
> > This cmd-line is for a crypto-device - correct ?
> > What is the cmd-line for Ethernet device ?  (I already bound this
> > Ethernet device to dpdk) Regards Avi
> 
> That command line is initializing a software-based crypto device.
> It assumes that you have one physical Ethernet device (it will use it due to the -
> p and --config options).
> 
> Pablo
> 
> >
> > > -----Original Message-----
> > > From: De Lara Guarch, Pablo [mailto:pablo.de.lara.guarch@intel.com]
> > > Sent: Monday, 06 November, 2017 6:48 PM
> > > To: Avi Cohen (A); Thomas Monjalon
> > > Cc: users@dpdk.org; olgas@mellanox.com
> > > Subject: RE: [dpdk-users] IPsec offload
> > >
> > >
> > >
> > > > -----Original Message-----
> > > > From: Avi Cohen (A) [mailto:avi.cohen@huawei.com]
> > > > Sent: Monday, November 6, 2017 4:42 PM
> > > > To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Thomas
> > > > Monjalon <thomas@monjalon.net>
> > > > Cc: users@dpdk.org; olgas@mellanox.com
> > > > Subject: RE: [dpdk-users] IPsec offload
> > > >
> > > > Thank you Pablo
> > > > Can you supply an example command line to run the ipsec-secgw ?
> > >
> > > ./examples/ipsec-secgw/build/ipsec-secgw -l 10,11 -n 4 --
> > > vdev="crypto_aesni_gcm0" /
> > > -- -p 0x1 -P --config="(0,0,10)" -f ep-sample.cfg
> > >
> > > Where ep-sample.cfg contains:
> > >
> > > sp ipv4 out esp protect 0010 pri 1 dst 001.0.0.0/24 sport 0:65535
> > > dport 0:65535 sa out 0010 aead_algo aes-128-gcm aead_key
> > de:ad:be:ef:de:ad:be:ef:de:ad:be:
> > > ef:de:ad:be:ef:de:ad:be:ef mode ipv4-tunnel src 20.0.0.0 dst
> > > 21.0.0.0 rt ipv4 dst
> > > 21.0.0.0/8 port 0
> > >
> > >
> > > > Regards
> > > > Avi
> > > >
> > > > > -----Original Message-----
> > > > > From: De Lara Guarch, Pablo
> > > > > [mailto:pablo.de.lara.guarch@intel.com]
> > > > > Sent: Monday, 06 November, 2017 6:37 PM
> > > > > To: Avi Cohen (A); Thomas Monjalon
> > > > > Cc: users@dpdk.org; olgas@mellanox.com
> > > > > Subject: RE: [dpdk-users] IPsec offload
> > > > >
> > > > > Hi Avi,
> > > > >
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: users [mailto:users-bounces@dpdk.org] On Behalf Of Avi
> > > > > > Cohen
> > > > > > (A)
> > > > > > Sent: Monday, November 6, 2017 3:53 PM
> > > > > > To: Thomas Monjalon <thomas@monjalon.net>
> > > > > > Cc: users@dpdk.org; olgas@mellanox.com
> > > > > > Subject: Re: [dpdk-users] IPsec offload
> > > > > >
> > > > > > Thank you Thomas
> > > > > > When I run the ipsec-secgw sample app. The program is exiting
> > > > > > with error 'Mandatory option "-f" not present'
> > > > > > What is this option ? config file ?
> > > > >
> > > > > Yes, that's a configuration file, like the one that you can find
> > > > > in ep0.cfg or ep1.cfg.
> > > > >
> > > > > Pablo

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-07  9:49                   ` Avi Cohen (A)
@ 2017-11-07  9:51                     ` De Lara Guarch, Pablo
  0 siblings, 0 replies; 26+ messages in thread
From: De Lara Guarch, Pablo @ 2017-11-07  9:51 UTC (permalink / raw)
  To: Avi Cohen (A), Thomas Monjalon; +Cc: users, olgas

Hi Avi,

> -----Original Message-----
> From: Avi Cohen (A) [mailto:avi.cohen@huawei.com]
> Sent: Tuesday, November 7, 2017 9:49 AM
> To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Thomas
> Monjalon <thomas@monjalon.net>
> Cc: users@dpdk.org; olgas@mellanox.com
> Subject: RE: [dpdk-users] IPsec offload
> 
> Hi Pablo
> When running - I get "Unable to parse device 'crypto_aesni_gcm0' (then the
> app. Exit) Regards, Avi

That's probably because you haven't enabled the AESNI_GCM PMD.
Take a look at the documentation:

http://dpdk.org/doc/guides/cryptodevs/aesni_gcm.html

Pablo

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-07  8:54               ` Avi Cohen (A)
@ 2017-11-07 11:24                 ` De Lara Guarch, Pablo
  2017-11-07 13:36                   ` Avi Cohen (A)
  0 siblings, 1 reply; 26+ messages in thread
From: De Lara Guarch, Pablo @ 2017-11-07 11:24 UTC (permalink / raw)
  To: Avi Cohen (A), Thomas Monjalon; +Cc: users, olgas

Hi Avi,

> -----Original Message-----
> From: Avi Cohen (A) [mailto:avi.cohen@huawei.com]
> Sent: Tuesday, November 7, 2017 8:55 AM
> To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Thomas
> Monjalon <thomas@monjalon.net>
> Cc: users@dpdk.org; olgas@mellanox.com
> Subject: RE: [dpdk-users] IPsec offload
> 
> 
> > > Thank you Pablo
> > > Can you supply an example command line to run the ipsec-secgw ?
> >
> > ./examples/ipsec-secgw/build/ipsec-secgw -l 10,11 -n 4 --
> > vdev="crypto_aesni_gcm0" /
> > -- -p 0x1 -P --config="(0,0,10)" -f ep-sample.cfg
> >
> > Where ep-sample.cfg contains:
> >
> > sp ipv4 out esp protect 0010 pri 1 dst 001.0.0.0/24 sport 0:65535
> > dport 0:65535 sa out 0010 aead_algo aes-128-gcm aead_key
> de:ad:be:ef:de:ad:be:ef:de:ad:be:
> > ef:de:ad:be:ef:de:ad:be:ef mode ipv4-tunnel src 20.0.0.0 dst 21.0.0.0
> > rt ipv4 dst
> > 21.0.0.0/8 port 0
> >
> [Avi Cohen (A)]
> 
> When running it almost all parameters from the config file starting from "
> sa out 0010"  are not recognized by the application Do I have to create any
> additional objects before running it ? I don't see it in the documentation .
> I want to run IPsec offload over ethernet port Best Regards Avi

You need to make sure that you have a crypto device (SW or HW) that support
the algorithms set in the sa lines.
For instance, the "SA line" above is using AES-GCM, so you could use the AESNI GCM PMD,
with the command line above (using --vdev).

Regards,
Pablo

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-07 11:24                 ` De Lara Guarch, Pablo
@ 2017-11-07 13:36                   ` Avi Cohen (A)
  2017-11-07 14:48                     ` De Lara Guarch, Pablo
  0 siblings, 1 reply; 26+ messages in thread
From: Avi Cohen (A) @ 2017-11-07 13:36 UTC (permalink / raw)
  To: De Lara Guarch, Pablo, Thomas Monjalon; +Cc: users, olgas

Thank you Pablo
1. Now I have multiple build errors 'undeclared here' when building dpdk for example aes_gcm_enc_128_sse . I'm trying to find where these are declared
2. Regarding the crypto-device - I have Intel x540-AT2 Nic
Regards
Avi

> -----Original Message-----
> From: De Lara Guarch, Pablo [mailto:pablo.de.lara.guarch@intel.com]
> Sent: Tuesday, 07 November, 2017 1:24 PM
> To: Avi Cohen (A); Thomas Monjalon
> Cc: users@dpdk.org; olgas@mellanox.com
> Subject: RE: [dpdk-users] IPsec offload
> 
> Hi Avi,
> 
> > -----Original Message-----
> > From: Avi Cohen (A) [mailto:avi.cohen@huawei.com]
> > Sent: Tuesday, November 7, 2017 8:55 AM
> > To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Thomas
> > Monjalon <thomas@monjalon.net>
> > Cc: users@dpdk.org; olgas@mellanox.com
> > Subject: RE: [dpdk-users] IPsec offload
> >
> >
> > > > Thank you Pablo
> > > > Can you supply an example command line to run the ipsec-secgw ?
> > >
> > > ./examples/ipsec-secgw/build/ipsec-secgw -l 10,11 -n 4 --
> > > vdev="crypto_aesni_gcm0" /
> > > -- -p 0x1 -P --config="(0,0,10)" -f ep-sample.cfg
> > >
> > > Where ep-sample.cfg contains:
> > >
> > > sp ipv4 out esp protect 0010 pri 1 dst 001.0.0.0/24 sport 0:65535
> > > dport 0:65535 sa out 0010 aead_algo aes-128-gcm aead_key
> > de:ad:be:ef:de:ad:be:ef:de:ad:be:
> > > ef:de:ad:be:ef:de:ad:be:ef mode ipv4-tunnel src 20.0.0.0 dst
> > > 21.0.0.0 rt ipv4 dst
> > > 21.0.0.0/8 port 0
> > >
> > [Avi Cohen (A)]
> >
> > When running it almost all parameters from the config file starting from "
> > sa out 0010"  are not recognized by the application Do I have to
> > create any additional objects before running it ? I don't see it in the
> documentation .
> > I want to run IPsec offload over ethernet port Best Regards Avi
> 
> You need to make sure that you have a crypto device (SW or HW) that support
> the algorithms set in the sa lines.
> For instance, the "SA line" above is using AES-GCM, so you could use the AESNI
> GCM PMD, with the command line above (using --vdev).
> 
> Regards,
> Pablo

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-07 13:36                   ` Avi Cohen (A)
@ 2017-11-07 14:48                     ` De Lara Guarch, Pablo
  2017-11-08  8:05                       ` Avi Cohen (A)
                                         ` (2 more replies)
  0 siblings, 3 replies; 26+ messages in thread
From: De Lara Guarch, Pablo @ 2017-11-07 14:48 UTC (permalink / raw)
  To: Avi Cohen (A), Thomas Monjalon; +Cc: users, olgas

Hi Avi,

> -----Original Message-----
> From: Avi Cohen (A) [mailto:avi.cohen@huawei.com]
> Sent: Tuesday, November 7, 2017 1:36 PM
> To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Thomas
> Monjalon <thomas@monjalon.net>
> Cc: users@dpdk.org; olgas@mellanox.com
> Subject: RE: [dpdk-users] IPsec offload
> 
> Thank you Pablo
> 1. Now I have multiple build errors 'undeclared here' when building dpdk
> for example aes_gcm_enc_128_sse . I'm trying to find where these are
> declared 2. Regarding the crypto-device - I have Intel x540-AT2 Nic Regards
> Avi

1 - Double check you are using the latest IPSec library (0.47) and that
you are linking against it (just follow the documentation).
2 - That's a network device, not a crypto device.

Pablo

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-07 14:48                     ` De Lara Guarch, Pablo
@ 2017-11-08  8:05                       ` Avi Cohen (A)
  2017-11-08  9:20                       ` Avi Cohen (A)
  2017-11-08 10:22                       ` Avi Cohen (A)
  2 siblings, 0 replies; 26+ messages in thread
From: Avi Cohen (A) @ 2017-11-08  8:05 UTC (permalink / raw)
  To: De Lara Guarch, Pablo, Thomas Monjalon; +Cc: users, olgas

Hi Pablo
> > Thank you Pablo
> > 1. Now I have multiple build errors 'undeclared here' when building
> > dpdk for example aes_gcm_enc_128_sse . I'm trying to find where these
> > are declared 2. Regarding the crypto-device - I have Intel x540-AT2
> > Nic Regards Avi
> 
> 1 - Double check you are using the latest IPSec library (0.47) and that you are
> linking against it (just follow the documentation).
> 2 - That's a network device, not a crypto device.
[Avi Cohen (A)] 
I meant that my Ethernet device x540 is capable to do IPsec encryption in HW.    
What did you mean "a crypto device (SW or HW)" ?
Regards
Avi
> 
> Pablo

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-07 14:48                     ` De Lara Guarch, Pablo
  2017-11-08  8:05                       ` Avi Cohen (A)
@ 2017-11-08  9:20                       ` Avi Cohen (A)
  2017-11-08 10:22                       ` Avi Cohen (A)
  2 siblings, 0 replies; 26+ messages in thread
From: Avi Cohen (A) @ 2017-11-08  9:20 UTC (permalink / raw)
  To: De Lara Guarch, Pablo, Thomas Monjalon; +Cc: users, olgas

Hi Pablo,

 > 1 - Double check you are using the latest IPSec library (0.47) and
 > that you are linking against it (just follow the documentation).
 > 2 - That's a network device, not a crypto device.
 [Avi Cohen (A)]
1.  I meant that my Ethernet device x540 is capable to do IPsec encryption in HW.
     What did you mean "a crypto device (SW or HW)" ?

2. I  also I enable the IESNI_GCM_PMD according the http://dpdk.org/doc/guides/cryptodevs/aesni_gcm.html ,   but still receive this error in init  (: unrecognized input "sa")


./ipsec-secgw -l 20,21 -n 4  --vdev "crypto_aesni_gcm" -- -p 0xf -P -u 0x3 --config="(0,0,20),(1,0,20),(2,0,21),(3,0,21)" -f ep-sample.cfg

EAL: Detected 24 lcore(s)
EAL: 16 hugepages of size 1073741824 reserved, but no mounted hugetlbfs found for that size
EAL: Probing VFIO support...
EAL: PCI device 0000:01:00.0 on NUMA socket 0
EAL:   probe driver: 8086:1528 net_ixgbe
EAL: PCI device 0000:01:00.1 on NUMA socket 0
EAL:   probe driver: 8086:1528 net_ixgbe
EAL: PCI device 0000:04:00.0 on NUMA socket 0
EAL:   probe driver: 8086:1528 net_ixgbe
EAL: PCI device 0000:04:00.1 on NUMA socket 0
EAL:   probe driver: 8086:1528 net_ixgbe
EAL: PCI device 0000:08:00.0 on NUMA socket 0
EAL:   probe driver: 8086:1521 net_e1000_igb
EAL: PCI device 0000:08:00.1 on NUMA socket 0
EAL:   probe driver: 8086:1521 net_e1000_igb
CRYPTODEV: [crypto_aesni_gcm] - Creating cryptodev crypto_aesni_gcm

CRYPTODEV: [crypto_aesni_gcm] - Initialisation parameters - name: crypto_aesni_gcm,socket id: 0, max queue pairs: 8, max sessions: 2048
Promiscuous mode selected
PANIC in parse_cfg_file():
ep-sample.cfg:1: error: unrecognized input "sa"
6: [./ipsec-secgw(_start+0x29) [0x44a0f9]]
5: [/lib64/libc.so.6(__libc_start_main+0xf1) [0x7fe3cd492731]]
4: [./ipsec-secgw(main+0xdd) [0x445d2d]]
3: [./ipsec-secgw(parse_cfg_file+0x3d0) [0x44b180]]
2: [./ipsec-secgw(__rte_panic+0xb8) [0x440d83]]
1: [./ipsec-secgw(rte_dump_stack+0x16) [0x4b5876]]
 
Regards
 Avi

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-07 14:48                     ` De Lara Guarch, Pablo
  2017-11-08  8:05                       ` Avi Cohen (A)
  2017-11-08  9:20                       ` Avi Cohen (A)
@ 2017-11-08 10:22                       ` Avi Cohen (A)
  2017-11-08 11:17                         ` De Lara Guarch, Pablo
  2 siblings, 1 reply; 26+ messages in thread
From: Avi Cohen (A) @ 2017-11-08 10:22 UTC (permalink / raw)
  To: De Lara Guarch, Pablo, Thomas Monjalon; +Cc: users, olgas

Pablo
I fixed all issues,  now the app. Is running 
Just  to clarify one issue:
I meant that my Ethernet device x540 is capable to do IPsec encryption in HW.
What did you mean "a crypto device (SW or HW)" ?
Regards,
Avi

> -----Original Message-----
> From: Avi Cohen (A)
> Sent: Wednesday, 08 November, 2017 11:21 AM
> To: 'De Lara Guarch, Pablo'; 'Thomas Monjalon'
> Cc: 'users@dpdk.org'; 'olgas@mellanox.com'
> Subject: RE: [dpdk-users] IPsec offload
> 
> Hi Pablo,
> 
>  > 1 - Double check you are using the latest IPSec library (0.47) and  > that you
> are linking against it (just follow the documentation).
>  > 2 - That's a network device, not a crypto device.
>  [Avi Cohen (A)]
> 1.  I meant that my Ethernet device x540 is capable to do IPsec encryption in
> HW.
>      What did you mean "a crypto device (SW or HW)" ?
> 
> 2. I  also I enable the IESNI_GCM_PMD according the
> http://dpdk.org/doc/guides/cryptodevs/aesni_gcm.html ,   but still receive this
> error in init  (: unrecognized input "sa")
> 
> 
> ./ipsec-secgw -l 20,21 -n 4  --vdev "crypto_aesni_gcm" -- -p 0xf -P -u 0x3 --
> config="(0,0,20),(1,0,20),(2,0,21),(3,0,21)" -f ep-sample.cfg
> 
> EAL: Detected 24 lcore(s)
> EAL: 16 hugepages of size 1073741824 reserved, but no mounted hugetlbfs
> found for that size
> EAL: Probing VFIO support...
> EAL: PCI device 0000:01:00.0 on NUMA socket 0
> EAL:   probe driver: 8086:1528 net_ixgbe
> EAL: PCI device 0000:01:00.1 on NUMA socket 0
> EAL:   probe driver: 8086:1528 net_ixgbe
> EAL: PCI device 0000:04:00.0 on NUMA socket 0
> EAL:   probe driver: 8086:1528 net_ixgbe
> EAL: PCI device 0000:04:00.1 on NUMA socket 0
> EAL:   probe driver: 8086:1528 net_ixgbe
> EAL: PCI device 0000:08:00.0 on NUMA socket 0
> EAL:   probe driver: 8086:1521 net_e1000_igb
> EAL: PCI device 0000:08:00.1 on NUMA socket 0
> EAL:   probe driver: 8086:1521 net_e1000_igb
> CRYPTODEV: [crypto_aesni_gcm] - Creating cryptodev crypto_aesni_gcm
> 
> CRYPTODEV: [crypto_aesni_gcm] - Initialisation parameters - name:
> crypto_aesni_gcm,socket id: 0, max queue pairs: 8, max sessions: 2048
> Promiscuous mode selected PANIC in parse_cfg_file():
> ep-sample.cfg:1: error: unrecognized input "sa"
> 6: [./ipsec-secgw(_start+0x29) [0x44a0f9]]
> 5: [/lib64/libc.so.6(__libc_start_main+0xf1) [0x7fe3cd492731]]
> 4: [./ipsec-secgw(main+0xdd) [0x445d2d]]
> 3: [./ipsec-secgw(parse_cfg_file+0x3d0) [0x44b180]]
> 2: [./ipsec-secgw(__rte_panic+0xb8) [0x440d83]]
> 1: [./ipsec-secgw(rte_dump_stack+0x16) [0x4b5876]]
> 
> Regards
>  Avi
> 

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-08 10:22                       ` Avi Cohen (A)
@ 2017-11-08 11:17                         ` De Lara Guarch, Pablo
  2017-11-08 11:39                           ` Avi Cohen (A)
  0 siblings, 1 reply; 26+ messages in thread
From: De Lara Guarch, Pablo @ 2017-11-08 11:17 UTC (permalink / raw)
  To: Avi Cohen (A), Thomas Monjalon; +Cc: users, olgas

Hi Avi,

> -----Original Message-----
> From: Avi Cohen (A) [mailto:avi.cohen@huawei.com]
> Sent: Wednesday, November 8, 2017 10:22 AM
> To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Thomas
> Monjalon <thomas@monjalon.net>
> Cc: users@dpdk.org; olgas@mellanox.com
> Subject: RE: [dpdk-users] IPsec offload
> 
> Pablo
> I fixed all issues,  now the app. Is running Just  to clarify one issue:
> I meant that my Ethernet device x540 is capable to do IPsec encryption in
> HW.
> What did you mean "a crypto device (SW or HW)" ?

You are talking about inline crypto there then, which I am not very familiarized.
With crypto device, I mean a lookaside crypto device, such as QAT PMD (example of HW device)
or AESNI MB PMD (examples of SW device).

Regards,
Pablo

> Regards,
> Avi
> 
> > -----Original Message-----
> > From: Avi Cohen (A)
> > Sent: Wednesday, 08 November, 2017 11:21 AM
> > To: 'De Lara Guarch, Pablo'; 'Thomas Monjalon'
> > Cc: 'users@dpdk.org'; 'olgas@mellanox.com'
> > Subject: RE: [dpdk-users] IPsec offload
> >
> > Hi Pablo,
> >
> >  > 1 - Double check you are using the latest IPSec library (0.47) and
> > > that you are linking against it (just follow the documentation).
> >  > 2 - That's a network device, not a crypto device.
> >  [Avi Cohen (A)]
> > 1.  I meant that my Ethernet device x540 is capable to do IPsec
> > encryption in HW.
> >      What did you mean "a crypto device (SW or HW)" ?
> >
> > 2. I  also I enable the IESNI_GCM_PMD according the
> > http://dpdk.org/doc/guides/cryptodevs/aesni_gcm.html ,   but still
> receive this
> > error in init  (: unrecognized input "sa")
> >
> >
> > ./ipsec-secgw -l 20,21 -n 4  --vdev "crypto_aesni_gcm" -- -p 0xf -P -u
> > 0x3 -- config="(0,0,20),(1,0,20),(2,0,21),(3,0,21)" -f ep-sample.cfg
> >
> > EAL: Detected 24 lcore(s)
> > EAL: 16 hugepages of size 1073741824 reserved, but no mounted
> > hugetlbfs found for that size
> > EAL: Probing VFIO support...
> > EAL: PCI device 0000:01:00.0 on NUMA socket 0
> > EAL:   probe driver: 8086:1528 net_ixgbe
> > EAL: PCI device 0000:01:00.1 on NUMA socket 0
> > EAL:   probe driver: 8086:1528 net_ixgbe
> > EAL: PCI device 0000:04:00.0 on NUMA socket 0
> > EAL:   probe driver: 8086:1528 net_ixgbe
> > EAL: PCI device 0000:04:00.1 on NUMA socket 0
> > EAL:   probe driver: 8086:1528 net_ixgbe
> > EAL: PCI device 0000:08:00.0 on NUMA socket 0
> > EAL:   probe driver: 8086:1521 net_e1000_igb
> > EAL: PCI device 0000:08:00.1 on NUMA socket 0
> > EAL:   probe driver: 8086:1521 net_e1000_igb
> > CRYPTODEV: [crypto_aesni_gcm] - Creating cryptodev crypto_aesni_gcm
> >
> > CRYPTODEV: [crypto_aesni_gcm] - Initialisation parameters - name:
> > crypto_aesni_gcm,socket id: 0, max queue pairs: 8, max sessions: 2048
> > Promiscuous mode selected PANIC in parse_cfg_file():
> > ep-sample.cfg:1: error: unrecognized input "sa"
> > 6: [./ipsec-secgw(_start+0x29) [0x44a0f9]]
> > 5: [/lib64/libc.so.6(__libc_start_main+0xf1) [0x7fe3cd492731]]
> > 4: [./ipsec-secgw(main+0xdd) [0x445d2d]]
> > 3: [./ipsec-secgw(parse_cfg_file+0x3d0) [0x44b180]]
> > 2: [./ipsec-secgw(__rte_panic+0xb8) [0x440d83]]
> > 1: [./ipsec-secgw(rte_dump_stack+0x16) [0x4b5876]]
> >
> > Regards
> >  Avi
> >

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-08 11:17                         ` De Lara Guarch, Pablo
@ 2017-11-08 11:39                           ` Avi Cohen (A)
  2017-11-08 11:53                             ` De Lara Guarch, Pablo
  0 siblings, 1 reply; 26+ messages in thread
From: Avi Cohen (A) @ 2017-11-08 11:39 UTC (permalink / raw)
  To: De Lara Guarch, Pablo, Thomas Monjalon; +Cc: users, olgas

Hi Pablo
So according the crypto device matrices  here http://dpdk.org/doc/guides/cryptodevs/overview.html
For encryption HW acceleration I need to use one of these:  DPAA2 ,DPAA  or QUT  - is that correct ?
Regards
Avi
> -----Original Message-----
> From: De Lara Guarch, Pablo [mailto:pablo.de.lara.guarch@intel.com]
> Sent: Wednesday, 08 November, 2017 1:17 PM
> To: Avi Cohen (A); Thomas Monjalon
> Cc: users@dpdk.org; olgas@mellanox.com
> Subject: RE: [dpdk-users] IPsec offload
> 
> Hi Avi,
> 
> > -----Original Message-----
> > From: Avi Cohen (A) [mailto:avi.cohen@huawei.com]
> > Sent: Wednesday, November 8, 2017 10:22 AM
> > To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Thomas
> > Monjalon <thomas@monjalon.net>
> > Cc: users@dpdk.org; olgas@mellanox.com
> > Subject: RE: [dpdk-users] IPsec offload
> >
> > Pablo
> > I fixed all issues,  now the app. Is running Just  to clarify one issue:
> > I meant that my Ethernet device x540 is capable to do IPsec encryption
> > in HW.
> > What did you mean "a crypto device (SW or HW)" ?
> 
> You are talking about inline crypto there then, which I am not very familiarized.
> With crypto device, I mean a lookaside crypto device, such as QAT PMD
> (example of HW device) or AESNI MB PMD (examples of SW device).
> 
> Regards,
> Pablo
> 

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-06 11:13     ` Thomas Monjalon
  2017-11-06 15:53       ` Avi Cohen (A)
@ 2017-11-08 11:50       ` Avi Cohen (A)
  2017-11-08 12:20         ` De Lara Guarch, Pablo
  1 sibling, 1 reply; 26+ messages in thread
From: Avi Cohen (A) @ 2017-11-08 11:50 UTC (permalink / raw)
  To: Thomas Monjalon, De Lara Guarch, Pablo; +Cc: users, olgas

Hi Thomas

 
> 06/11/2017 11:25, Avi Cohen (A):
> > Thank you Thomas
> > Is this was tested on a specific HW e.g.  Mellanox Innova  / other ?
> 
> Mellanox hardware will probably be supported in 18.02.
> There are some experimental support for NXP DPAA2 and Intel ixgbe in DPDK
> 17.11.
[Avi Cohen (A)] 
The Intel x540-AT2 is using the ixgbe driver 
According to http://dpdk.org/doc/guides/cryptodevs/qat.html  
The QAT crypto driver which spports encryption in HW  supports the following Intel devices:
- Intel QuickAssist Technology DH895xCC
- Intel QuickAssist Technology C62x
- Intel QuickAssist Technology C3xxx
- Intel QuickAssist Technology D15xx

Do you know if the x540-AT2 NIC is also supported ?
Regards,
Avi

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-08 11:39                           ` Avi Cohen (A)
@ 2017-11-08 11:53                             ` De Lara Guarch, Pablo
  0 siblings, 0 replies; 26+ messages in thread
From: De Lara Guarch, Pablo @ 2017-11-08 11:53 UTC (permalink / raw)
  To: Avi Cohen (A), Thomas Monjalon; +Cc: users, olgas



> -----Original Message-----
> From: Avi Cohen (A) [mailto:avi.cohen@huawei.com]
> Sent: Wednesday, November 8, 2017 11:40 AM
> To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Thomas
> Monjalon <thomas@monjalon.net>
> Cc: users@dpdk.org; olgas@mellanox.com
> Subject: RE: [dpdk-users] IPsec offload
> 
> Hi Pablo
> So according the crypto device matrices  here
> http://dpdk.org/doc/guides/cryptodevs/overview.html
> For encryption HW acceleration I need to use one of these:  DPAA2 ,DPAA
> or QUT  - is that correct ?

Yes, those are the HW accelerators currently supported.


> Regards
> Avi
> > -----Original Message-----
> > From: De Lara Guarch, Pablo [mailto:pablo.de.lara.guarch@intel.com]
> > Sent: Wednesday, 08 November, 2017 1:17 PM
> > To: Avi Cohen (A); Thomas Monjalon
> > Cc: users@dpdk.org; olgas@mellanox.com
> > Subject: RE: [dpdk-users] IPsec offload
> >
> > Hi Avi,
> >
> > > -----Original Message-----
> > > From: Avi Cohen (A) [mailto:avi.cohen@huawei.com]
> > > Sent: Wednesday, November 8, 2017 10:22 AM
> > > To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Thomas
> > > Monjalon <thomas@monjalon.net>
> > > Cc: users@dpdk.org; olgas@mellanox.com
> > > Subject: RE: [dpdk-users] IPsec offload
> > >
> > > Pablo
> > > I fixed all issues,  now the app. Is running Just  to clarify one issue:
> > > I meant that my Ethernet device x540 is capable to do IPsec
> > > encryption in HW.
> > > What did you mean "a crypto device (SW or HW)" ?
> >
> > You are talking about inline crypto there then, which I am not very
> familiarized.
> > With crypto device, I mean a lookaside crypto device, such as QAT PMD
> > (example of HW device) or AESNI MB PMD (examples of SW device).
> >
> > Regards,
> > Pablo
> >

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-08 11:50       ` Avi Cohen (A)
@ 2017-11-08 12:20         ` De Lara Guarch, Pablo
  2017-11-08 12:39           ` Avi Cohen (A)
  0 siblings, 1 reply; 26+ messages in thread
From: De Lara Guarch, Pablo @ 2017-11-08 12:20 UTC (permalink / raw)
  To: Avi Cohen (A), Thomas Monjalon; +Cc: users, olgas

Hi Avid,

> -----Original Message-----
> From: Avi Cohen (A) [mailto:avi.cohen@huawei.com]
> Sent: Wednesday, November 8, 2017 11:50 AM
> To: Thomas Monjalon <thomas@monjalon.net>; De Lara Guarch, Pablo
> <pablo.de.lara.guarch@intel.com>
> Cc: users@dpdk.org; olgas@mellanox.com
> Subject: RE: [dpdk-users] IPsec offload
> 
> Hi Thomas
> 
> 
> > 06/11/2017 11:25, Avi Cohen (A):
> > > Thank you Thomas
> > > Is this was tested on a specific HW e.g.  Mellanox Innova  / other ?
> >
> > Mellanox hardware will probably be supported in 18.02.
> > There are some experimental support for NXP DPAA2 and Intel ixgbe in
> > DPDK 17.11.
> [Avi Cohen (A)]
> The Intel x540-AT2 is using the ixgbe driver According to
> http://dpdk.org/doc/guides/cryptodevs/qat.html
> The QAT crypto driver which spports encryption in HW  supports the
> following Intel devices:
> - Intel QuickAssist Technology DH895xCC
> - Intel QuickAssist Technology C62x
> - Intel QuickAssist Technology C3xxx
> - Intel QuickAssist Technology D15xx
> 
> Do you know if the x540-AT2 NIC is also supported ?

Even though Thomas is the DPDK main tree maintainer and that has a vast knowledge of it :),
Don't expect him to know about what an Intel NIC supports.

You are looking at two different things here. QAT driver works on the QAT devices mentioned above.
But you are looking for inline crypto capability in NIC devices, there is no reference in our documentation yet.
We will add that shortly.

Thanks,
Pablo

> Regards,
> Avi
> 

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-08 12:20         ` De Lara Guarch, Pablo
@ 2017-11-08 12:39           ` Avi Cohen (A)
  2017-11-08 13:26             ` De Lara Guarch, Pablo
  0 siblings, 1 reply; 26+ messages in thread
From: Avi Cohen (A) @ 2017-11-08 12:39 UTC (permalink / raw)
  To: De Lara Guarch, Pablo, Thomas Monjalon; +Cc: users, olgas

> 
> Even though Thomas is the DPDK main tree maintainer and that has a vast
> knowledge of it :), Don't expect him to know about what an Intel NIC supports.
> 
> You are looking at two different things here. QAT driver works on the QAT
> devices mentioned above.
> But you are looking for inline crypto capability in NIC devices, there is no
> reference in our documentation yet.
> We will add that shortly.
> 
[Avi Cohen (A)] 
Thank you Pablo
How can I be notified when updated ?
Regards,
Avi 

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [dpdk-users] IPsec offload
  2017-11-08 12:39           ` Avi Cohen (A)
@ 2017-11-08 13:26             ` De Lara Guarch, Pablo
  0 siblings, 0 replies; 26+ messages in thread
From: De Lara Guarch, Pablo @ 2017-11-08 13:26 UTC (permalink / raw)
  To: Avi Cohen (A), Thomas Monjalon; +Cc: users, olgas



> -----Original Message-----
> From: Avi Cohen (A) [mailto:avi.cohen@huawei.com]
> Sent: Wednesday, November 8, 2017 12:40 PM
> To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Thomas
> Monjalon <thomas@monjalon.net>
> Cc: users@dpdk.org; olgas@mellanox.com
> Subject: RE: [dpdk-users] IPsec offload
> 
> >
> > Even though Thomas is the DPDK main tree maintainer and that has a
> > vast knowledge of it :), Don't expect him to know about what an Intel NIC
> supports.
> >
> > You are looking at two different things here. QAT driver works on the
> > QAT devices mentioned above.
> > But you are looking for inline crypto capability in NIC devices, there
> > is no reference in our documentation yet.
> > We will add that shortly.
> >
> [Avi Cohen (A)]
> Thank you Pablo
> How can I be notified when updated ?

There will be a patch sent to the developers mailing list, which should make the 17.11 release.

Pablo

> Regards,
> Avi
> 

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2017-11-08 13:26 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-05  8:32 [dpdk-users] IPsec offload Avi Cohen (A)
2017-11-06  1:02 ` Thomas Monjalon
2017-11-06 10:25   ` Avi Cohen (A)
2017-11-06 11:13     ` Thomas Monjalon
2017-11-06 15:53       ` Avi Cohen (A)
2017-11-06 16:37         ` De Lara Guarch, Pablo
2017-11-06 16:42           ` Avi Cohen (A)
2017-11-06 16:47             ` De Lara Guarch, Pablo
2017-11-06 17:16               ` Avi Cohen (A)
2017-11-07  9:42                 ` De Lara Guarch, Pablo
2017-11-07  9:49                   ` Avi Cohen (A)
2017-11-07  9:51                     ` De Lara Guarch, Pablo
2017-11-07  8:54               ` Avi Cohen (A)
2017-11-07 11:24                 ` De Lara Guarch, Pablo
2017-11-07 13:36                   ` Avi Cohen (A)
2017-11-07 14:48                     ` De Lara Guarch, Pablo
2017-11-08  8:05                       ` Avi Cohen (A)
2017-11-08  9:20                       ` Avi Cohen (A)
2017-11-08 10:22                       ` Avi Cohen (A)
2017-11-08 11:17                         ` De Lara Guarch, Pablo
2017-11-08 11:39                           ` Avi Cohen (A)
2017-11-08 11:53                             ` De Lara Guarch, Pablo
2017-11-08 11:50       ` Avi Cohen (A)
2017-11-08 12:20         ` De Lara Guarch, Pablo
2017-11-08 12:39           ` Avi Cohen (A)
2017-11-08 13:26             ` De Lara Guarch, Pablo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).