* [PATCH] common/cnxk: fix build failure with rhel
@ 2022-10-25 17:29 Anoob Joseph
2022-10-25 18:13 ` Akhil Goyal
0 siblings, 1 reply; 2+ messages in thread
From: Anoob Joseph @ 2022-10-25 17:29 UTC (permalink / raw)
To: Akhil Goyal; +Cc: Vidya Sagar Velumuri, Tejasree Kondoj, dev
Fix compiler warning of uninitialized address.
Fixes: a7033a2fb2bf ("common/cnxk: support custom UDP port values")
Signed-off-by: Anoob Joseph <anoobj@marvell.com>
---
drivers/common/cnxk/cnxk_security.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/common/cnxk/cnxk_security.c b/drivers/common/cnxk/cnxk_security.c
index 68ed0d08b4..85105472a1 100644
--- a/drivers/common/cnxk/cnxk_security.c
+++ b/drivers/common/cnxk/cnxk_security.c
@@ -1269,10 +1269,12 @@ cnxk_on_ipsec_outb_sa_create(struct rte_security_ipsec_xform *ipsec,
}
ip4 = (struct rte_ipv4_hdr *)&template->ip4.ipv4_hdr;
+
+ sport = 4500;
+ dport = 4500;
+
/* If custom port values are provided, Overwrite default port values. */
if (ipsec->options.udp_encap) {
- sport = 4500;
- dport = 4500;
if (ipsec->udp.sport)
sport = ipsec->udp.sport;
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: [PATCH] common/cnxk: fix build failure with rhel
2022-10-25 17:29 [PATCH] common/cnxk: fix build failure with rhel Anoob Joseph
@ 2022-10-25 18:13 ` Akhil Goyal
0 siblings, 0 replies; 2+ messages in thread
From: Akhil Goyal @ 2022-10-25 18:13 UTC (permalink / raw)
To: Anoob Joseph; +Cc: Vidya Sagar Velumuri, Tejasree Kondoj, dev
> Subject: [PATCH] common/cnxk: fix build failure with rhel
>
> Fix compiler warning of uninitialized address.
>
> Fixes: a7033a2fb2bf ("common/cnxk: support custom UDP port values")
>
> Signed-off-by: Anoob Joseph <anoobj@marvell.com>
Squashed with original commit.
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-25 18:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-25 17:29 [PATCH] common/cnxk: fix build failure with rhel Anoob Joseph
2022-10-25 18:13 ` Akhil Goyal
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).