avf: fix incorrect flag for flow director 35/37935/3
authorTing Xu <ting.xu@intel.com>
Tue, 17 Jan 2023 02:34:37 +0000 (02:34 +0000)
committerDamjan Marion <dmarion@0xa5.net>
Wed, 8 Feb 2023 10:09:37 +0000 (10:09 +0000)
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

src/plugins/avf/flow.c

index 37cac00..8d6d646 100644 (file)
@@ -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;