common/cnxk: fix build failure with rhel
Checks
Commit Message
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(-)
--
2.25.1
Comments
> 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.
@@ -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;