Adjust the codeline order of the parser runtime reset, since the
struct rt->psr is used in function _rt_flag_set before assignment.

Fixes: c84f8aa2100c ("net/ice/base: add parser runtime skeleton")

Signed-off-by: Junfeng Guo <junfeng....@intel.com>
Cc: sta...@dpdk.org
---
 drivers/net/ice/base/ice_parser_rt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ice/base/ice_parser_rt.c 
b/drivers/net/ice/base/ice_parser_rt.c
index eb35ad0bc0..22cd748248 100644
--- a/drivers/net/ice/base/ice_parser_rt.c
+++ b/drivers/net/ice/base/ice_parser_rt.c
@@ -87,12 +87,12 @@ void ice_parser_rt_reset(struct ice_parser_rt *rt)
        _rt_np_set(rt, mi->pc);
        _rt_nn_set(rt, mi->pg_rn);
 
+       rt->psr = psr;
+
        for (i = 0; i < 64; i++) {
                if ((mi->flags & (1ul << i)) != 0ul)
                        _rt_flag_set(rt, i, true);
        }
-
-       rt->psr = psr;
 }
 
 /**
-- 
2.25.1

Reply via email to