Skip to contentSkip to conversation

net/iavf: fix indent in Tx path

PATCH Applied David Marchand 3 participants 3 messages Oct 26, 2023 – Oct 30, 2023 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/iavf: fix indent in Tx path

Fix confusing indentations.

Fixes 1e728b01120c ("net/iavf: rework Tx path")
Fixes 6bc987ecb860 ("net/iavf: support IPsec inline crypto")
---
 drivers/net/iavf/iavf_rxtx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/iavf/iavf_rxtx.c +2 -2
index c6ef6af1d8..cba7ec3564 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
Quoted 25 lines · David Marchand

Fix confusing indentations.

Fixes 1e728b01120c ("net/iavf: rework Tx path")
Fixes 6bc987ecb860 ("net/iavf: support IPsec inline crypto")
---
  drivers/net/iavf/iavf_rxtx.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/iavf/iavf_rxtx.c +1 -1
index c6ef6af1d8..cba7ec3564 100644
@@ -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);
 
Applied
#2 lore raw
Quoted 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 path

drivers/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")
---
  drivers/net/iavf/iavf_rxtx.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/drivers/net/iavf/iavf_rxtx.c index c6ef6af1d8..cba7ec3564 100644

drivers/net/iavf/iavf_rxtx.c +0 -0
@@ -2896,7 +2896,7 @@ iavf_xmit_pkts(void *tx_queue, struct rte_mbuf

**tx_pkts, uint16_t nb_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 -1
  			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

Quoted 1 line

+2909,7 @@ iavf_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,

uint16_t nb_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);

Applied to dpdk-next-net-intel.

Thanks
Qi