Skip to content

Commit

Permalink
net/cnxk: fix uninitialized variable
Browse files Browse the repository at this point in the history
[ upstream commit 7feaf39ce6047ca346dbf141670515b4be4c2fbf ]

Shift may be uninitialized in certain case, initialize it.

Fixes: 55bfac7 ("net/cnxk: support Tx security offload on cn10k")

Signed-off-by: Akhil Goyal <gakhil@marvell.com>
  • Loading branch information
Akhil Goyal authored and kevintraynor committed Oct 31, 2023
1 parent 723ae32 commit a2e1ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/cnxk/cn10k_tx.h
Original file line number Diff line number Diff line change
Expand Up @@ -1496,13 +1496,13 @@ cn10k_nix_xmit_pkts_vector(void *tx_queue, struct rte_mbuf **tx_pkts,
uint64x2_t sgdesc01_w1, sgdesc23_w1;
struct cn10k_eth_txq *txq = tx_queue;
rte_iova_t io_addr = txq->io_addr;
uint8_t lnum, shift = 0, loff;
uintptr_t laddr = txq->lmt_base;
uint8_t c_lnum, c_shft, c_loff;
uint64x2_t ltypes01, ltypes23;
uint64x2_t xtmp128, ytmp128;
uint64x2_t xmask01, xmask23;
uintptr_t c_laddr = laddr;
uint8_t lnum, shift, loff;
rte_iova_t c_io_addr;
uint64_t sa_base;
union wdata {
Expand Down

0 comments on commit a2e1ba5

Please sign in to comment.