[1/2] net/nfp: fix copy and paste error
Checks
Commit Message
CI found copy and paste error occurs.
Coverity issue: 439967
Fixes: 830057d1dba9 ("net/nfp: refactor flow action compile function")
Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Long Wu <long.wu@corigine.com>
Reviewed-by: Peng Zhang <peng.zhang@corigine.com>
---
drivers/net/nfp/flower/nfp_flower_flow.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -4458,7 +4458,7 @@ nfp_flow_action_compile_ttl(struct nfp_action_compile_param *param)
}
} else {
nfp_flow_action_set_hl(param->position, param->action,
- param->flag->ttl_tos_flag);
+ param->flag->tc_hl_flag);
if (!param->flag->tc_hl_flag) {
param->position += sizeof(struct nfp_fl_act_set_ipv6_tc_hl_fl);
param->flag->tc_hl_flag = true;
@@ -4485,7 +4485,7 @@ static int
nfp_flow_action_compile_ipv6_dscp(struct nfp_action_compile_param *param)
{
nfp_flow_action_set_tc(param->position, param->action,
- param->flag->ttl_tos_flag);
+ param->flag->tc_hl_flag);
if (!param->flag->tc_hl_flag) {
param->position += sizeof(struct nfp_fl_act_set_ipv6_tc_hl_fl);
param->flag->tc_hl_flag = true;