From mboxrd@z Thu Jan 1 00:00:00 1970
Return-Path:
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
by inbox.dpdk.org (Postfix) with ESMTP id 9A55546AE7;
Thu, 3 Jul 2025 18:55:44 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
by mails.dpdk.org (Postfix) with ESMTP id 5F2D340267;
Thu, 3 Jul 2025 18:55:44 +0200 (CEST)
Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178])
by mails.dpdk.org (Postfix) with ESMTP id 6BB7240264
for ; Thu, 3 Jul 2025 18:55:43 +0200 (CEST)
Received: by inbox.dpdk.org (Postfix, from userid 33)
id 5DB4646AE8; Thu, 3 Jul 2025 18:55:43 +0200 (CEST)
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [DPDK/ethdev Bug 1740] net/bnxt: duplicate code in branches
Date: Thu, 03 Jul 2025 16:55:43 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: DPDK
X-Bugzilla-Component: ethdev
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: stephen@networkplumber.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: Normal
X-Bugzilla-Assigned-To: dev@dpdk.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform
op_sys bug_status bug_severity priority component assigned_to reporter
target_milestone
Message-ID:
Content-Type: multipart/alternative; boundary=17515617430.EAeDd8a4.1302848
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: https://bugs.dpdk.org/
Auto-Submitted: auto-generated
X-Auto-Response-Suppress: All
MIME-Version: 1.0
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: dev-bounces@dpdk.org
--17515617430.EAeDd8a4.1302848
Date: Thu, 3 Jul 2025 18:55:43 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: https://bugs.dpdk.org/
Auto-Submitted: auto-generated
X-Auto-Response-Suppress: All
https://bugs.dpdk.org/show_bug.cgi?id=3D1740
Bug ID: 1740
Summary: net/bnxt: duplicate code in branches
Product: DPDK
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: minor
Priority: Normal
Component: ethdev
Assignee: dev@dpdk.org
Reporter: stephen@networkplumber.org
Target Milestone: ---
Building with compiler warning about duplicate branches finds:
[834/3631] Compiling C object
drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_flow.c.o
../drivers/net/bnxt/bnxt_flow.c: In function
=E2=80=98bnxt_validate_and_parse_flow_type=E2=80=99:
../drivers/net/bnxt/bnxt_flow.c:263:80: warning: this condition has identic=
al
branches [-Wduplicated-branches]
263 |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
NTUPLE_FLTR_ALLOC_INPUT_EN_SRC_MACADDR :
|=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
^
../drivers/net/bnxt/bnxt_flow.c:383:79: warning: this condition has identic=
al
branches [-Wduplicated-branches]
383 |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20
HWRM_CFA_NTUPLE_FILTER_ALLOC_INPUT_IP_ADDR_TYPE_IPV4 :
|=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
^
../drivers/net/bnxt/bnxt_flow.c:448:75: warning: this condition has identic=
al
branches [-Wduplicated-branches]
448 |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20
NTUPLE_FLTR_ALLOC_INPUT_IP_ADDR_TYPE_IPV6 :
|=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
^
[835/3631] Compiling C object
drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_stats.c.o
[836/3631] Compiling C object
drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_rxq.c.o
[837/3631] Compiling C object
drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_txq.c.o
[838/3631] Compiling C object
drivers/libtmp_rte_net_bnx2x.a.p/net_bnx2x_bnx2x_stats.c.o
[839/3631] Compiling C object
drivers/libtmp_rte_net_bnx2x.a.p/net_bnx2x_ecore_sp.c.o
[840/3631] Compiling C object
drivers/libtmp_rte_common_qat.a.p/crypto_qat_qat_asym.c.o
[841/3631] Compiling C object
drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_txr.c.o
../drivers/net/bnxt/bnxt_txr.c: In function =E2=80=98bnxt_start_xmit=E2=80=
=99:
../drivers/net/bnxt/bnxt_txr.c:410:74: warning: duplicated =E2=80=98if=E2=
=80=99 condition
[-Wduplicated-cond]
410 | } else if ((tx_pkt->ol_flags &
PKT_TX_OIP_IIP_UDP_CKSUM) =3D=3D
../drivers/net/bnxt/bnxt_txr.c:402:78: note: previously used here
402 | } else if ((tx_pkt->ol_flags &
PKT_TX_OIP_IIP_TCP_UDP_CKSUM) =3D=3D
../drivers/net/bnxt/bnxt_txr.c:418:70: warning: duplicated =E2=80=98if=E2=
=80=99 condition
[-Wduplicated-cond]
418 | } else if ((tx_pkt->ol_flags & PKT_TX_IIP_UDP_CKSUM=
) =3D=3D
../drivers/net/bnxt/bnxt_txr.c:414:74: note: previously used here
414 | } else if ((tx_pkt->ol_flags &
PKT_TX_IIP_TCP_UDP_CKSUM) =3D=3D
../drivers/net/bnxt/bnxt_txr.c:430:70: warning: duplicated =E2=80=98if=E2=
=80=99 condition
[-Wduplicated-cond]
430 | } else if ((tx_pkt->ol_flags & PKT_TX_OIP_UDP_CKSUM=
) =3D=3D
../drivers/net/bnxt/bnxt_txr.c:426:74: note: previously used here
426 | } else if ((tx_pkt->ol_flags &
PKT_TX_OIP_TCP_UDP_CKSUM) =3D=3D
../drivers/net/bnxt/bnxt_txr.c:450:73: warning: duplicated =E2=80=98if=E2=
=80=99 condition
[-Wduplicated-cond]
450 | } else if ((tx_pkt->ol_flags & RTE_MBUF_F_TX_UDP_CK=
SUM)
=3D=3D
../drivers/net/bnxt/bnxt_txr.c:442:70: note: previously used here
442 | } else if ((tx_pkt->ol_flags & PKT_TX_TCP_UDP_CKSUM=
) =3D=3D
[842/3631] Compiling C object
drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_reps.c.o
--=20
You are receiving this mail because:
You are the assignee for the bug.=
--17515617430.EAeDd8a4.1302848
Date: Thu, 3 Jul 2025 18:55:43 +0200
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: https://bugs.dpdk.org/
Auto-Submitted: auto-generated
X-Auto-Response-Suppress: All
Bug ID |
1740
|
Summary |
net/bnxt: duplicate code in branches
|
Product |
DPDK
|
Version |
unspecified
|
Hardware |
All
|
OS |
All
|
Status |
UNCONFIRMED
|
Severity |
minor
|
Priority |
Normal
|
Component |
ethdev
|
Assignee |
dev@dpdk.org
|
Reporter |
stephen@networkplumber.org
|
Target Milestone |
---
|
You are receiving this mail because:
- You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
=
--17515617430.EAeDd8a4.1302848--