net/cnxk: fix uninitialized variables
Fix uninitialized scalar variable reported in coverity scan. Coverity issue: 371876, 371877 Coverity issue: 371872, 371880 Fixes: 39dc567c195 ("net/cnxk: add Tx burst for CN9K") Fixes: 19f3af2371a ("net/cnxk: add Tx burst for CN10K") Cc: stable@dpdk.org Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Jerin Jacob <jerinj@marvell.com>
This commit is contained in:
parent
e4a96623a4
commit
938ba5f9b9
@ -866,10 +866,10 @@ cn10k_nix_xmit_pkts(void *tx_queue, uint64_t *ws, struct rte_mbuf **tx_pkts,
|
||||
uintptr_t pa, lbase = txq->lmt_base;
|
||||
uint16_t lmt_id, burst, left, i;
|
||||
uintptr_t c_lbase = lbase;
|
||||
uint64_t lso_tun_fmt = 0;
|
||||
uint64_t mark_fmt = 0;
|
||||
uint8_t mark_flag = 0;
|
||||
rte_iova_t c_io_addr;
|
||||
uint64_t lso_tun_fmt;
|
||||
uint16_t c_lmt_id;
|
||||
uint64_t sa_base;
|
||||
uintptr_t laddr;
|
||||
@ -999,11 +999,11 @@ cn10k_nix_xmit_pkts_mseg(void *tx_queue, uint64_t *ws,
|
||||
uint16_t segdw, lmt_id, burst, left, i;
|
||||
uint8_t lnum, c_lnum, c_loff;
|
||||
uintptr_t c_lbase = lbase;
|
||||
uint64_t lso_tun_fmt = 0;
|
||||
uint64_t mark_fmt = 0;
|
||||
uint8_t mark_flag = 0;
|
||||
uint64_t data0, data1;
|
||||
rte_iova_t c_io_addr;
|
||||
uint64_t lso_tun_fmt;
|
||||
uint8_t shft, c_shft;
|
||||
__uint128_t data128;
|
||||
uint16_t c_lmt_id;
|
||||
|
@ -526,7 +526,7 @@ cn9k_nix_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t pkts,
|
||||
{
|
||||
struct cn9k_eth_txq *txq = tx_queue;
|
||||
const rte_iova_t io_addr = txq->io_addr;
|
||||
uint64_t lso_tun_fmt, mark_fmt = 0;
|
||||
uint64_t lso_tun_fmt = 0, mark_fmt = 0;
|
||||
void *lmt_addr = txq->lmt_addr;
|
||||
uint8_t mark_flag = 0;
|
||||
uint16_t i;
|
||||
@ -574,7 +574,7 @@ cn9k_nix_xmit_pkts_mseg(void *tx_queue, struct rte_mbuf **tx_pkts,
|
||||
{
|
||||
struct cn9k_eth_txq *txq = tx_queue;
|
||||
const rte_iova_t io_addr = txq->io_addr;
|
||||
uint64_t lso_tun_fmt, mark_fmt = 0;
|
||||
uint64_t lso_tun_fmt = 0, mark_fmt = 0;
|
||||
void *lmt_addr = txq->lmt_addr;
|
||||
uint8_t mark_flag = 0;
|
||||
uint16_t segdw;
|
||||
|
Loading…
x
Reference in New Issue
Block a user