All of lore.kernel.org
 help / color / mirror / Atom feed
* esp-hw-offload support for VF of NVIDIA Mellanox ConnectX-6 Ethernet Adapter Cards
@ 2021-03-29  8:42 高钧浩
  2021-03-29 21:05 ` Saeed Mahameed
  0 siblings, 1 reply; 3+ messages in thread
From: 高钧浩 @ 2021-03-29  8:42 UTC (permalink / raw)
  To: borisp, saeedm; +Cc: netdev, seven.wen, junhao.gao

Hi Boris,Saeed

     I'm enabling esp-hw-offload for VF of NVIDIA Mellanox ConnectX-6
Ethernet Adapter Cards, but it doesn't work.
     Before I created VF, the esp-hw-offload function of CX-6 is on,
after I created VF, the esp-hw-offload function of VF doesn't inherit
the esp-hw-offload function of CX-6.
     Enable esp-hw-offload could refer to
https://docs.mellanox.com/display/OFEDv522200/IPsec+Crypto+Offload.

     Create VF steps as follows:
     modprobe mlx5_core
     echo 2 > /sys/class/net/net2/device/sriov_numvfs
     # lspci to get pci bdf number(example:0000:07:00.0)
     lspci -nn | grep Mellanox
     echo 0000:07:00.2 > /sys/bus/pci/drivers/mlx5_core/unbind
     echo 0000:07:00.3 > /sys/bus/pci/drivers/mlx5_core/unbind
     /etc/init.d/mst start
     mcra /dev/mst/mt4119_pciconf0  0x31500.17  0
     devlink dev eswitch set pci/0000:07:00.0  mode switchdev encap enable
     echo 0000:07:00.2 > /sys/bus/pci/drivers/mlx5_core/bind
     echo 0000:07:00.3 > /sys/bus/pci/drivers/mlx5_core/bind

     Then query the esp-hw-offload of VF:
     #firstly need to find the created VF(has the properties:
     bus-info: 0000:07:00.2, driver: mlx5_core)
     ethtool -i eth0 | grep esp-hw-offload
     esp-hw-offload: off [fixed]

Best Regards,
Junhao

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

* Re: esp-hw-offload support for VF of NVIDIA Mellanox ConnectX-6 Ethernet Adapter Cards
  2021-03-29  8:42 esp-hw-offload support for VF of NVIDIA Mellanox ConnectX-6 Ethernet Adapter Cards 高钧浩
@ 2021-03-29 21:05 ` Saeed Mahameed
  2021-04-06  7:44   ` 高钧浩
  0 siblings, 1 reply; 3+ messages in thread
From: Saeed Mahameed @ 2021-03-29 21:05 UTC (permalink / raw)
  To: 高钧浩, borisp, Huy Nguyen, Raed Salem
  Cc: netdev, seven.wen, junhao.gao

On Mon, 2021-03-29 at 16:42 +0800, 高钧浩 wrote:
> Hi Boris,Saeed
> 
>      I'm enabling esp-hw-offload for VF of NVIDIA Mellanox ConnectX-6
> Ethernet Adapter Cards, but it doesn't work.
>      Before I created VF, the esp-hw-offload function of CX-6 is on,
> after I created VF, the esp-hw-offload function of VF doesn't inherit
> the esp-hw-offload function of CX-6.
>      Enable esp-hw-offload could refer to
> https://docs.mellanox.com/display/OFEDv522200/IPsec+Crypto+Offload.
> 
>      Create VF steps as follows:
>      modprobe mlx5_core
>      echo 2 > /sys/class/net/net2/device/sriov_numvfs
>      # lspci to get pci bdf number(example:0000:07:00.0)
>      lspci -nn | grep Mellanox
>      echo 0000:07:00.2 > /sys/bus/pci/drivers/mlx5_core/unbind
>      echo 0000:07:00.3 > /sys/bus/pci/drivers/mlx5_core/unbind
>      /etc/init.d/mst start
>      mcra /dev/mst/mt4119_pciconf0  0x31500.17  0
>      devlink dev eswitch set pci/0000:07:00.0  mode switchdev encap
> enable
>      echo 0000:07:00.2 > /sys/bus/pci/drivers/mlx5_core/bind
>      echo 0000:07:00.3 > /sys/bus/pci/drivers/mlx5_core/bind
> 
>      Then query the esp-hw-offload of VF:
>      #firstly need to find the created VF(has the properties:
>      bus-info: 0000:07:00.2, driver: mlx5_core)
>      ethtool -i eth0 | grep esp-hw-offload
>      esp-hw-offload: off [fixed]
> 

Huy, Raed, Do you know if we support IPsec inline offload on VFs ?



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

* Re: esp-hw-offload support for VF of NVIDIA Mellanox ConnectX-6 Ethernet Adapter Cards
  2021-03-29 21:05 ` Saeed Mahameed
@ 2021-04-06  7:44   ` 高钧浩
  0 siblings, 0 replies; 3+ messages in thread
From: 高钧浩 @ 2021-04-06  7:44 UTC (permalink / raw)
  To: Saeed Mahameed
  Cc: borisp, Huy Nguyen, Raed Salem, netdev, seven.wen, junhao.gao

Ping ...

Saeed Mahameed <saeed@kernel.org> 于2021年3月30日周二 上午5:05写道:
>
> On Mon, 2021-03-29 at 16:42 +0800, 高钧浩 wrote:
> > Hi Boris,Saeed
> >
> >      I'm enabling esp-hw-offload for VF of NVIDIA Mellanox ConnectX-6
> > Ethernet Adapter Cards, but it doesn't work.
> >      Before I created VF, the esp-hw-offload function of CX-6 is on,
> > after I created VF, the esp-hw-offload function of VF doesn't inherit
> > the esp-hw-offload function of CX-6.
> >      Enable esp-hw-offload could refer to
> > https://docs.mellanox.com/display/OFEDv522200/IPsec+Crypto+Offload.
> >
> >      Create VF steps as follows:
> >      modprobe mlx5_core
> >      echo 2 > /sys/class/net/net2/device/sriov_numvfs
> >      # lspci to get pci bdf number(example:0000:07:00.0)
> >      lspci -nn | grep Mellanox
> >      echo 0000:07:00.2 > /sys/bus/pci/drivers/mlx5_core/unbind
> >      echo 0000:07:00.3 > /sys/bus/pci/drivers/mlx5_core/unbind
> >      /etc/init.d/mst start
> >      mcra /dev/mst/mt4119_pciconf0  0x31500.17  0
> >      devlink dev eswitch set pci/0000:07:00.0  mode switchdev encap
> > enable
> >      echo 0000:07:00.2 > /sys/bus/pci/drivers/mlx5_core/bind
> >      echo 0000:07:00.3 > /sys/bus/pci/drivers/mlx5_core/bind
> >
> >      Then query the esp-hw-offload of VF:
> >      #firstly need to find the created VF(has the properties:
> >      bus-info: 0000:07:00.2, driver: mlx5_core)
> >      ethtool -i eth0 | grep esp-hw-offload
> >      esp-hw-offload: off [fixed]
> >
>
> Huy, Raed, Do you know if we support IPsec inline offload on VFs ?
>
>

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

end of thread, other threads:[~2021-04-06  7:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-29  8:42 esp-hw-offload support for VF of NVIDIA Mellanox ConnectX-6 Ethernet Adapter Cards 高钧浩
2021-03-29 21:05 ` Saeed Mahameed
2021-04-06  7:44   ` 高钧浩

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.