Page MenuHomeFreeBSD

IB/mlx5: Add tunneling offloads support
ClosedPublic

Authored by vag.singh_oneconvergence.com on Sep 28 2021, 2:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 18, 11:17 PM
Unknown Object (File)
Fri, Sep 18, 11:17 PM
Unknown Object (File)
Fri, Sep 18, 10:12 PM
Unknown Object (File)
Fri, Sep 18, 4:27 AM
Unknown Object (File)
Thu, Sep 17, 8:51 PM
Unknown Object (File)
Thu, Sep 17, 2:42 AM
Unknown Object (File)
Fri, Sep 4, 4:49 PM
Unknown Object (File)
Thu, Sep 3, 5:20 PM

Details

Summary

[PATCH 22/31] FreeBSD OFED support for DPDK MLX5 PMD

a) The device can support receive Stateless Offloads for the inner
packet's fields only when the packet is processed by TIR which is
enabled to support tunneling. Otherwise, the device treats the
packet as an ordinary non-tunneling packet and receive offloads
can be done only for the outer packet's field.
In order to enable receive Stateless Offloading support for incoming
tunneling traffic the TIR should be created with tunneled_offload_en.
Tunneling offloads is supported only be raw ethernet QP.

This patch includes:

  • New QP creation flag for tunneling offloads.
  • Reports device capabilities.

b) IB/mlx5: Add support for RSS on the inner packet
Some user space application would like to do RSS on the inner
packet fields instead on the outer.
When MLX5_RX_HASH_INNER is set with one or more of the other
hash fields, then the RSS will be done using the inner packet.

Test Plan

Tested on KVM, ESXi, and HyperV/Azure Hypervisors with FreeBSD 14.0-CURRENT and FreeBSD12.1-STABLE.

iperf
DPDK MLX5 PMD/testpmd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Wed, Sep 16, 2:14 PM
This revision was automatically updated to reflect the committed changes.