net/idpf: fix comma operator warning
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.
--- 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
@@ -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
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")Signed-off-by Stephen Hemminger <[email protected]>---
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@@ -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
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
Signed-off-by Stephen Hemminger <[email protected]>---
Acked-by Bruce Richardson <[email protected]>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