Page MenuHomeFreeBSD

IB/mlx5: Enabled VLAN stripping capability
Needs ReviewPublic

Authored by vag.singh_oneconvergence.com on Sep 28 2021, 1:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 22, 7:14 AM
Unknown Object (File)
Thu, Jun 13, 6:23 PM
Unknown Object (File)
Tue, Jun 4, 7:51 AM
Unknown Object (File)
Mon, May 27, 2:06 AM
Unknown Object (File)
May 8 2024, 7:05 PM
Unknown Object (File)
Apr 16 2024, 3:56 PM
Unknown Object (File)
Apr 8 2024, 1:52 PM
Unknown Object (File)
Apr 8 2024, 10:21 AM

Details

Reviewers
kib
hselasky
Summary

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

a) Expose raw packet capabilities in the core layer to enable a device
to report it.
Two existing capabilities, scatter FCS and IP CSUM were added to this
field for a better user experience by exposing the raw packet caps
from one location.
This field will serve also for future capabilities for raw packet QP.

A new capability was introduced - cvlan stripping, which is the
device's ability to remove cvlan tag from an incoming packet and
report it in the matching work completion.

b) Check device's capabilities and report which raw packet capabilities
are supported.

c) Allow creating a WQ with cvlan stripping considering device's
capabilities. The default value was fixed to disable vlan stripping
till was asked explicitly.

In addition, allow modification of a WQ to turn on/off this property.

d) Enable creating a RAW Ethernet QP with cvlan stripping offload when
it's supported by the hardware.

e) Add support for creation of a WQ with scatter FCS capability, if
this capability is supported by the hardware.

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 Skipped
Unit
Tests Skipped