Skip to contentSkip to conversation

net/idpf: fix comma operator warning

PATCH In review Stephen Hemminger 3 participants 3 messages Mar 12 – Mar 25 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/idpf: fix comma operator warning

Fix comma operator misuse warnings with clang compiler in idpf that was missed in previous change. Shows up when -Wcomma enabled.

Fixes 57560a92167a ("net/idpf: add AVX2 Tx path for split queue config")
---
 drivers/net/intel/idpf/idpf_common_rxtx_avx2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/intel/idpf/idpf_common_rxtx_avx2.c +1 -1
index 4e1062f22d..db7728afad 100644
@@ -842,7 +842,7 @@ idpf_splitq_vtx_avx2(struct idpf_flex_tx_sched_desc *txdp,
 	/* align if needed */
 	if (((uintptr_t)txdp & 0x1F) != 0 && nb_pkts != 0) {
 		idpf_splitq_vtx1_avx2(txdp, *pkt, flags);
-		txdp++, pkt++, nb_pkts--;
+		txdp++; pkt++; nb_pkts--;
 	}
 
 	for (; nb_pkts >= IDPF_VPMD_DESCS_PER_LOOP; txdp += IDPF_VPMD_DESCS_PER_LOOP,
Signature · 1 line
2.51.0
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Stephen Hemminger

Fix comma operator misuse warnings with clang compiler in idpf that was missed in previous change. Shows up when -Wcomma enabled.

Fixes 57560a92167a ("net/idpf: add AVX2 Tx path for split queue config")

---

Yep, this was missed because the previous commit [1] was on your tree but not applied to main, so missing in mine. :-(

[1] https://patches.dpdk.org/project/dpdk/patch/[email protected]/

Quoted 19 lines
 drivers/net/intel/idpf/idpf_common_rxtx_avx2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/intel/idpf/idpf_common_rxtx_avx2.c +1 -1
index 4e1062f22d..db7728afad 100644
@@ -842,7 +842,7 @@ idpf_splitq_vtx_avx2(struct idpf_flex_tx_sched_desc *txdp,
 	/* align if needed */
 	if (((uintptr_t)txdp & 0x1F) != 0 && nb_pkts != 0) {
 		idpf_splitq_vtx1_avx2(txdp, *pkt, flags);
-		txdp++, pkt++, nb_pkts--;
+		txdp++; pkt++; nb_pkts--;
 	}
 
 	for (; nb_pkts >= IDPF_VPMD_DESCS_PER_LOOP; txdp += IDPF_VPMD_DESCS_PER_LOOP,
Signature · 1 line
2.51.0
#2 lore raw

12/03/2026 17:57, Bruce Richardson:

Quoted 6 lines · Stephen Hemminger
Quoted 5 lines

Fix comma operator misuse warnings with clang compiler in idpf that was missed in previous change. Shows up when -Wcomma enabled.

Fixes 57560a92167a ("net/idpf: add AVX2 Tx path for split queue config")
Quoted 7 lines
Quoted 2 lines

---

Yep, this was missed because the previous commit [1] was on your tree but not applied to main, so missing in mine. :-(

Sorry I missed this patch and did a similar one:
https://git.dpdk.org/dpdk/commit/?id=b3b8301dee7f1fd3e6bc8c2d79fd6f6cc04a7d58