DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Anoob Joseph <anoobj@marvell.com>
To: Akhil Goyal <gakhil@marvell.com>
Cc: Vidya Sagar Velumuri <vvelumuri@marvell.com>,
	Tejasree Kondoj <ktejasree@marvell.com>, <dev@dpdk.org>
Subject: [PATCH] common/cnxk: fix build failure with rhel
Date: Tue, 25 Oct 2022 22:59:58 +0530	[thread overview]
Message-ID: <20221025172958.378-1-anoobj@marvell.com> (raw)

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


             reply	other threads:[~2022-10-25 17:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-25 17:29 Anoob Joseph [this message]
2022-10-25 18:13 ` [PATCH] common/cnxk: fix build failure with rhel Akhil Goyal

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=20221025172958.378-1-anoobj@marvell.com \
    --to=anoobj@marvell.com \
    --cc=dev@dpdk.org \
    --cc=gakhil@marvell.com \
    --cc=ktejasree@marvell.com \
    --cc=vvelumuri@marvell.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