diff options
author | Adrien Mazarguil <adrien.mazarguil@6wind.com> | 2018-07-13 11:40:37 +0200 |
---|---|---|
committer | Thomas Monjalon <thomas@monjalon.net> | 2018-07-26 14:05:52 +0200 |
commit | 20b71e92ef8e0bac42143ae023f12c895829e44e (patch) | |
tree | 460cda6570876f58c55e7e643925b10cbdbdae07 /mk | |
parent | 3edc242d459b57aed3c63311f17a9138bec4b4cb (diff) | |
download | dpdk-next-eventdev-20b71e92ef8e0bac42143ae023f12c895829e44e.zip dpdk-next-eventdev-20b71e92ef8e0bac42143ae023f12c895829e44e.tar.gz dpdk-next-eventdev-20b71e92ef8e0bac42143ae023f12c895829e44e.tar.xz |
net/mlx5: lay groundwork for switch offloads
With mlx5, unlike normal flow rules implemented through Verbs for traffic
emitted and received by the application, those targeting different logical
ports of the device (VF representors for instance) are offloaded at the
switch level and must be configured through Netlink (TC interface).
This patch adds preliminary support to manage such flow rules through the
flow API (rte_flow).
Instead of rewriting tons of Netlink helpers and as previously suggested by
Stephen [1], this patch introduces a new dependency to libmnl [2]
(LGPL-2.1) when compiling mlx5.
[1] https://mails.dpdk.org/archives/dev/2018-March/092676.html
[2] https://netfilter.org/projects/libmnl/
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
Diffstat (limited to 'mk')
-rw-r--r-- | mk/rte.app.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/rte.app.mk b/mk/rte.app.mk index ea448ef..de33883 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -149,9 +149,9 @@ else _LDLIBS-$(CONFIG_RTE_LIBRTE_MLX4_PMD) += -lrte_pmd_mlx4 -libverbs -lmlx4 endif ifeq ($(CONFIG_RTE_LIBRTE_MLX5_DLOPEN_DEPS),y) -_LDLIBS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += -lrte_pmd_mlx5 -ldl +_LDLIBS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += -lrte_pmd_mlx5 -ldl -lmnl else -_LDLIBS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += -lrte_pmd_mlx5 -libverbs -lmlx5 +_LDLIBS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += -lrte_pmd_mlx5 -libverbs -lmlx5 -lmnl endif _LDLIBS-$(CONFIG_RTE_LIBRTE_MVPP2_PMD) += -lrte_pmd_mvpp2 -L$(LIBMUSDK_PATH)/lib -lmusdk _LDLIBS-$(CONFIG_RTE_LIBRTE_NFP_PMD) += -lrte_pmd_nfp |