From: Chaoyong He <chaoyong.he@corigine.com>
To: dev@dpdk.org
Cc: oss-drivers@corigine.com, Chaoyong He <chaoyong.he@corigine.com>,
Long Wu <long.wu@corigine.com>,
Peng Zhang <peng.zhang@corigine.com>
Subject: [PATCH 1/2] net/nfp: fix copy and paste error
Date: Wed, 17 Jul 2024 11:24:44 +0800 [thread overview]
Message-ID: <20240717032445.442348-2-chaoyong.he@corigine.com> (raw)
In-Reply-To: <20240717032445.442348-1-chaoyong.he@corigine.com>
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(-)
diff --git a/drivers/net/nfp/flower/nfp_flower_flow.c b/drivers/net/nfp/flower/nfp_flower_flow.c
index cf2b919e7e..0078455658 100644
--- a/drivers/net/nfp/flower/nfp_flower_flow.c
+++ b/drivers/net/nfp/flower/nfp_flower_flow.c
@@ -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;
--
2.39.1
next prev parent reply other threads:[~2024-07-17 3:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-17 3:24 [PATCH 0/2] fix coverity issues Chaoyong He
2024-07-17 3:24 ` Chaoyong He [this message]
2024-07-17 3:24 ` [PATCH 2/2] net/nfp: fix AVX2 vector Rx function memory overrun Chaoyong He
2024-07-19 7:40 ` [PATCH 0/2] fix coverity issues Ferruh Yigit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240717032445.442348-2-chaoyong.he@corigine.com \
--to=chaoyong.he@corigine.com \
--cc=dev@dpdk.org \
--cc=long.wu@corigine.com \
--cc=oss-drivers@corigine.com \
--cc=peng.zhang@corigine.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).