[dpdk-dev] [PATCH v2 0/6] net/mlx5: add support for switch flow rules
Adrien Mazarguil
adrien.mazarguil at 6wind.com
Fri Jul 13 11:40:35 CEST 2018
This series adds support for switch flow rules, that is, rte_flow rules
applied to mlx5 devices at the switch level.
It allows applications to offload traffic redirection between DPDK ports in
hardware, while optionally modifying it (e.g. performing encap/decap).
For this to work, involved DPDK ports must be part of the same switch
domain, as is the case with port representors, and the transfer attribute
must be requested on flow rules.
Also since the mlx5 switch is controlled through Netlink instead of Verbs,
and given how tedious formatting Netlink messages is, a new dependency is
added to mlx5: libmnl. See relevant patch.
v2 changes:
- Mostly compilation fixes for missing Netlink definitions on older systems.
- Reduced stack consumption.
- Adapted series to rely on mlx5_dev_to_port_id() instead of
mlx5_dev_to_domain_id().
- See relevant patches for more information.
Adrien Mazarguil (6):
net/mlx5: lay groundwork for switch offloads
net/mlx5: add framework for switch flow rules
net/mlx5: add fate actions to switch flow rules
net/mlx5: add L2-L4 pattern items to switch flow rules
net/mlx5: add VLAN item and actions to switch flow rules
net/mlx5: add port ID pattern item to switch flow rules
drivers/net/mlx5/Makefile | 142 ++++
drivers/net/mlx5/mlx5.c | 32 +
drivers/net/mlx5/mlx5.h | 28 +
drivers/net/mlx5/mlx5_flow.c | 111 +++
drivers/net/mlx5/mlx5_nl_flow.c | 1247 ++++++++++++++++++++++++++++++++++
mk/rte.app.mk | 2 +-
6 files changed, 1561 insertions(+), 1 deletion(-)
create mode 100644 drivers/net/mlx5/mlx5_nl_flow.c
--
2.11.0
More information about the dev
mailing list