linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mlx5 HW crypto offload support
@ 2021-02-15 17:47 James Spader
  2021-02-16 21:56 ` Saeed Mahameed
  0 siblings, 1 reply; 3+ messages in thread
From: James Spader @ 2021-02-15 17:47 UTC (permalink / raw)
  To: LKML; +Cc: saeedm

Hi All,

Does HW crypto offload support for mlx5 work under virtualized environment?
For e.g with PF (Physical Function) driver and VF(Virtual Function) driver.

If yes, then how does the information that is required to create
security association get passed to the PF driver?

For example in rx full offload the FDB table needs to match the spi.
As the spi is created by the VF driver, how does its value get
communicated to PF driver...

Thanks
Best Regards
James S

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

* Re: mlx5 HW crypto offload support
  2021-02-15 17:47 mlx5 HW crypto offload support James Spader
@ 2021-02-16 21:56 ` Saeed Mahameed
  2021-02-17  2:51   ` James Spader
  0 siblings, 1 reply; 3+ messages in thread
From: Saeed Mahameed @ 2021-02-16 21:56 UTC (permalink / raw)
  To: jamesspader.linux, linux-kernel; +Cc: Saeed Mahameed, Raed Salem, Huy Nguyen

On Mon, 2021-02-15 at 23:17 +0530, James Spader wrote:
> Hi All,
> 
> Does HW crypto offload support for mlx5 work under virtualized
> environment?
> For e.g with PF (Physical Function) driver and VF(Virtual Function)
> driver.
> 
> If yes, then how does the information that is required to create
> security association get passed to the PF driver?
> 
> For example in rx full offload the FDB table needs to match the spi.
> As the spi is created by the VF driver, how does its value get
> communicated to PF driver...
> 

Hi James, 

please find this guide [1] for a step by step configuration, i hope it
will answer your questions.

the solution is only in OFED package right now, Huy and Raed "CCed" are
working on the upstream submission.

The link below discusses the configuration for Bluefield smart device,
but the concept should be the same for Native SRIOV.

[1]
https://community.mellanox.com/s/article/ConnectX-6DX-Bluefield-2-IPsec-HW-Full-Offload-Configuration-Guide


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

* Re: mlx5 HW crypto offload support
  2021-02-16 21:56 ` Saeed Mahameed
@ 2021-02-17  2:51   ` James Spader
  0 siblings, 0 replies; 3+ messages in thread
From: James Spader @ 2021-02-17  2:51 UTC (permalink / raw)
  To: Saeed Mahameed; +Cc: linux-kernel, Raed Salem, Huy Nguyen

Hi Saeed

Thank you so much for the response!! It helped me a lot.

The guide is very helpful. It is detailed and well written.



Thank you
Best regards
- James


On Wed, Feb 17, 2021 at 3:26 AM Saeed Mahameed <saeedm@nvidia.com> wrote:
>
> On Mon, 2021-02-15 at 23:17 +0530, James Spader wrote:
> > Hi All,
> >
> > Does HW crypto offload support for mlx5 work under virtualized
> > environment?
> > For e.g with PF (Physical Function) driver and VF(Virtual Function)
> > driver.
> >
> > If yes, then how does the information that is required to create
> > security association get passed to the PF driver?
> >
> > For example in rx full offload the FDB table needs to match the spi.
> > As the spi is created by the VF driver, how does its value get
> > communicated to PF driver...
> >
>
> Hi James,
>
> please find this guide [1] for a step by step configuration, i hope it
> will answer your questions.
>
> the solution is only in OFED package right now, Huy and Raed "CCed" are
> working on the upstream submission.
>
> The link below discusses the configuration for Bluefield smart device,
> but the concept should be the same for Native SRIOV.
>
> [1]
> https://community.mellanox.com/s/article/ConnectX-6DX-Bluefield-2-IPsec-HW-Full-Offload-Configuration-Guide
>

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

end of thread, other threads:[~2021-02-17  2:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-15 17:47 mlx5 HW crypto offload support James Spader
2021-02-16 21:56 ` Saeed Mahameed
2021-02-17  2:51   ` James Spader

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