aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTing Xu <ting.xu@intel.com>2023-01-17 02:34:37 +0000
committerDave Wallace <dwallacelf@gmail.com>2023-03-03 13:01:18 +0000
commit9e43eb7a3c4af16d5f84e25c6fd3b1a23dad7e13 (patch)
treeb3ec3aaecd4823f00aa7560eb2eb8d3b84e675bc /src
parent5516fc0f3bf50657446c4e68556c9f76ea2a43a4 (diff)
avf: fix incorrect flag for flow director
When parsing flow action type in avf, there is an incorrect flag for flow director, which makes flow director rule created unexpectedly. Type: fix Signed-off-by: Ting Xu <ting.xu@intel.com> Change-Id: Id9fed5db8ccacd5cc6c2f4833183364d763188c1 (cherry picked from commit 25ab42e33b03d9d9a0e3478c3ee346891cf65aef)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/avf/flow.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/avf/flow.c b/src/plugins/avf/flow.c
index 37cac004f6d..8d6d6462823 100644
--- a/src/plugins/avf/flow.c
+++ b/src/plugins/avf/flow.c
@@ -506,6 +506,7 @@ pattern_end:
if (f->actions & VNET_FLOW_ACTION_RSS)
{
avf_actions[action_count].conf = &act_rss;
+ is_fdir = false;
if ((act_rss.func = avf_flow_convert_rss_func (f->rss_fun)) ==
AVF_ETH_HASH_FUNCTION_MAX)
@@ -522,8 +523,6 @@ pattern_end:
is_fdir = true;
}
- is_fdir = false;
-
if (fate == true)
{
rv = VNET_FLOW_ERROR_INTERNAL;