From: rongwei liu <rongweil@nvidia.com>
To: <matan@nvidia.com>, <viacheslavo@nvidia.com>, <orika@nvidia.com>,
<thomas@monjalon.net>
Cc: <dev@dpdk.org>, <rasland@nvidia.com>
Subject: [dpdk-dev] [RFC 0/2] support VXLAN header last 8-bits matching
Date: Mon, 31 May 2021 13:19:39 +0300 [thread overview]
Message-ID: <20210531101941.60916-1-rongweil@nvidia.com> (raw)
This update adds support for the VXLAN last 8-bits matching when
creating steering rules. At the PCIe probe stage, we create a
dummy VXLAN matcher using misc5 to check rdma-core library's
capability.
The logic is, group 0 depends on HCA_CAP to enable misc or misc5
for VXLAN matching while group non zero depends on the rdma-core
capability.
Add a new testpmd pattern field 'last_rsvd' that supports the
last 8-bits matching of VXLAN header.
The examples for the "last_rsvd" pattern field are as below:
1. ...pattern eth / ipv4 / udp / vxlan last_rsvd is 0x80 / end ...
This flow will exactly match the last 8-bits to be 0x80.
2. ...pattern eth / ipv4 / udp / vxlan last_rsvd spec 0x80
vxlan mask 0x80 / end ...
This flow will only match the MSB of the last 8-bits to be 1.
rongwei liu (2):
drivers: add VXLAN header the last 8-bits matching support
app/testpmd: support VXLAN last 8-bits field matching
app/test-pmd/cmdline_flow.c | 9 ++
app/test-pmd/util.c | 5 +-
doc/guides/nics/mlx5.rst | 11 +-
doc/guides/testpmd_app_ug/testpmd_funcs.rst | 1 +
drivers/common/mlx5/mlx5_devx_cmds.c | 3 +
drivers/common/mlx5/mlx5_devx_cmds.h | 6 +
drivers/common/mlx5/mlx5_prm.h | 41 +++++-
drivers/net/mlx5/linux/mlx5_os.c | 77 ++++++++++
drivers/net/mlx5/mlx5.h | 2 +
drivers/net/mlx5/mlx5_flow.c | 26 +++-
drivers/net/mlx5/mlx5_flow.h | 4 +-
drivers/net/mlx5/mlx5_flow_dv.c | 152 ++++++++++++++------
drivers/net/mlx5/mlx5_flow_verbs.c | 3 +-
drivers/vdpa/mlx5/mlx5_vdpa_steer.c | 6 +-
14 files changed, 283 insertions(+), 63 deletions(-)
--
2.27.0
next reply other threads:[~2021-05-31 10:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-31 10:19 rongwei liu [this message]
2021-05-31 10:19 ` [dpdk-dev] [RFC 1/2] drivers: add VXLAN header the last 8-bits matching support rongwei liu
2021-05-31 10:19 ` [dpdk-dev] [RFC 2/2] app/testpmd: support VXLAN last 8-bits field matching rongwei liu
2021-06-15 17:15 ` Singh, Aman Deep
2021-06-29 2:30 ` Rongwei Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210531101941.60916-1-rongweil@nvidia.com \
--to=rongweil@nvidia.com \
--cc=dev@dpdk.org \
--cc=matan@nvidia.com \
--cc=orika@nvidia.com \
--cc=rasland@nvidia.com \
--cc=thomas@monjalon.net \
--cc=viacheslavo@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).