net/iavf: fix indent in Tx path
PATCH 1/1 net/iavf: fix indent in Tx path
Fix confusing indentations.
--- drivers/net/iavf/iavf_rxtx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/iavf/iavf_rxtx.c +2 -2
@@ -2896,7 +2896,7 @@ iavf_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts) txe->last_id = desc_idx_last; desc_idx = txe->next_id; txe = txn; - } + }if (nb_desc_ipsec) { volatile struct iavf_tx_ipsec_desc *ipsec_desc =
@@ -2909,7 +2909,7 @@ iavf_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)if (txe->mbuf) {rte_pktmbuf_free_seg (txe->mbuf); txe->mbuf =NULL ; - } + }iavf_fill_ipsec_desc (ipsec_desc, ipsec_md, &ipseclen);
Signature · 1 line
2.41.0
Quoted 25 lines · David Marchand
Fix confusing indentations.
Fixes 1e728b01120c ("net/iavf: rework Tx path")Fixes 6bc987ecb860 ("net/iavf: support IPsec inline crypto")Signed-off-by David Marchand <[email protected]>--- drivers/net/iavf/iavf_rxtx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/iavf/iavf_rxtx.c +1
-1@@ -2896,7 +2896,7 @@ iavf_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts) txe->last_id = desc_idx_last; desc_idx = txe->next_id; txe = txn; - } + }if (nb_desc_ipsec) { volatile struct iavf_tx_ipsec_desc *ipsec_desc =
drivers/net/iavf/iavf_rxtx.c iavf_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts) · line 2915
Quoted 8 lines
drivers/net/iavf/iavf_rxtx.c +1
-1@@ -2909,7 +2909,7 @@ iavf_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)if (txe->mbuf) {rte_pktmbuf_free_seg (txe->mbuf); txe->mbuf =NULL ; - } + }iavf_fill_ipsec_desc (ipsec_desc, ipsec_md, &ipseclen);
Zhang, Qi Z
AppliedQuoted 47 lines
-----Original Message-----
From: Radu Nicolau <[email protected]>
Sent: Thursday, October 26, 2023 5:34 PM
To: Marchand, David <[email protected]>; [email protected]
Cc: [email protected]; Wu, Jingjing <[email protected]>; Xing, Beilei <[email protected]>; Doherty, Declan <[email protected]>; Sinha, Abhijit <[email protected]>
Subject: Re: [PATCH] net/iavf: fix indent in Tx pathdrivers/net/iavf/iavf_rxtx.c iavf_xmit_pkts(void *tx_queue, struct rte_mbuf
Quoted 16 lines · David Marchand
Fix confusing indentations.
Fixes 1e728b01120c ("net/iavf: rework Tx path")Fixes 6bc987ecb860 ("net/iavf: support IPsec inline crypto")Signed-off-by David Marchand <[email protected]>--- drivers/net/iavf/iavf_rxtx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/drivers/net/iavf/iavf_rxtx.cindexc6ef6af1d8..cba7ec3564100644drivers/net/iavf/iavf_rxtx.c +0
-0@@ -2896,7 +2896,7 @@ iavf_xmit_pkts(void *tx_queue, struct rte_mbuf**tx_pkts,
uint16_tnb_pkts)drivers/net/iavf/iavf_rxtx.c iavf_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)
Quoted 8 lines
drivers/net/iavf/iavf_rxtx.c +1
-1txe->last_id = desc_idx_last; desc_idx = txe->next_id; txe = txn; - } + }if (nb_desc_ipsec) { volatile struct iavf_tx_ipsec_desc *ipsec_desc = @@ -2909,7
Quoted 1 line
+2909,7 @@ iavf_xmit_pkts(void
*tx_queue, structrte_mbuf**tx_pkts,
uint16_tnb_pkts)Quoted 6 lines
if (txe->mbuf) { rte_pktmbuf_free_seg(txe->mbuf); txe->mbuf = NULL;drivers/net/iavf/iavf_rxtx.c +1
-1- } + }
Quoted 3 lines
Quoted 2 lines
iavf_fill_ipsec_desc(ipsec_desc, ipsec_md, &ipseclen);Acked-by Radu Nicolau <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi