From: Moti Haimovsky <motih@mellanox.com>
To: Shahaf Shuler <shahafs@mellanox.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>, Moti Haimovsky <motih@mellanox.com>
Subject: [dpdk-dev] [PATCH 0/2] net/mlx5: remove TCF support from PMD
Date: Tue, 28 May 2019 10:14:27 +0000 [thread overview]
Message-ID: <1559038447-41184-1-git-send-email-motih@mellanox.com> (raw)
Today, it is possible to offload an interface flow rules to the
hardware using DPDK flow commands.
With mlx5 it is also possible to offload a limited set of flow rules
to the mlxsw (or E-switch) using the same DPDK flow commands.
A 'transfer' attribute was added to the flow rule creation command in
order to distinguish between configuring port flows and E-switch
flows. The commands destined for the E-switch are transposed to
TC-flower rules and are send, as Netlink messages, to the mlx5 driver,
or more precisely to the netdev which represent the mlxsw port.
With the addition to the PMD of E-switch configuration via DR
(direct verbs rules) it is now possible to configure the E-switch
using these commands instead of using TC-Flower messages.
Doing so will allow us to remove the TCF support and the dependency
of libmnl from the PMD.
The purpose of this RFC is to propose configuring the E-switch
flow filtering using DR, to remove the TCF support from the PMD and
to remove the dependency of the PMD in libmnl.
As for today VLAN insertion or removal is not supported in DR, this
support will be added in separate commits.
Moti Haimovsky (2):
net/mlx5: fix testpmd crash on null-flow drv opts
net/mlx5: remove TCF support from PMD
doc/build-sdk-meson.txt | 2 +-
doc/guides/nics/mlx5.rst | 19 -
doc/guides/platform/bluefield.rst | 4 -
drivers/net/mlx5/Makefile | 303 --
drivers/net/mlx5/meson.build | 123 +-
drivers/net/mlx5/mlx5.c | 32 -
drivers/net/mlx5/mlx5.h | 3 -
drivers/net/mlx5/mlx5_flow.c | 43 +-
drivers/net/mlx5/mlx5_flow.h | 25 -
drivers/net/mlx5/mlx5_flow_tcf.c | 6382 -------------------------------------
mk/rte.app.mk | 2 +-
11 files changed, 24 insertions(+), 6914 deletions(-)
delete mode 100644 drivers/net/mlx5/mlx5_flow_tcf.c
--
1.8.3.1
next reply other threads:[~2019-05-28 10:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-28 10:14 Moti Haimovsky [this message]
2019-05-28 10:14 ` [dpdk-dev] [PATCH 1/2] net/mlx5: fix testpmd crash on null-flow drv opts Moti Haimovsky
2019-05-28 10:14 ` [dpdk-dev] [PATCH 2/2] net/mlx5: remove TCF support from PMD Moti Haimovsky
2019-05-28 11:18 [dpdk-dev] [PATCH 0/2] " Moti Haimovsky
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=1559038447-41184-1-git-send-email-motih@mellanox.com \
--to=motih@mellanox.com \
--cc=dev@dpdk.org \
--cc=shahafs@mellanox.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).