diff mbox series

[1/5] net/sfc: set priority of created filters to manual

Message ID 1583833719-6597-2-git-send-email-arybchenko@solarflare.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers show
Series net/sfc: fix manual and auto filters clash handling | expand


Context Check Description
ci/Intel-compilation success Compilation OK
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-testing success Testing PASS
ci/checkpatch success coding style OK

Commit Message

Andrew Rybchenko March 10, 2020, 9:48 a.m. UTC
From: Igor Romanov <igor.romanov@oktetlabs.ru>

The priority should be explicitly set to manual for correct
usage of libefx filters.

Fixes: a9825ccf5bb8 ("net/sfc: support flow API filters")
Cc: stable@dpdk.org

Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
 drivers/net/sfc/sfc_flow.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series


diff --git a/drivers/net/sfc/sfc_flow.c b/drivers/net/sfc/sfc_flow.c
index ec0ca3cd6..83414b1bd 100644
--- a/drivers/net/sfc/sfc_flow.c
+++ b/drivers/net/sfc/sfc_flow.c
@@ -1164,6 +1164,7 @@  sfc_flow_parse_attr(const struct rte_flow_attr *attr,
 		spec->type = SFC_FLOW_SPEC_FILTER;
 		spec_filter->template.efs_flags |= EFX_FILTER_FLAG_RX;
 		spec_filter->template.efs_rss_context = EFX_RSS_CONTEXT_DEFAULT;
+		spec_filter->template.efs_priority = EFX_FILTER_PRI_MANUAL;
 	} else {
 		rte_flow_error_set(error, ENOTSUP,