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 2F56843326; Tue, 14 Nov 2023 10:08:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C3A6A4027D; Tue, 14 Nov 2023 10:08:15 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id A66504027B for ; Tue, 14 Nov 2023 10:08:14 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 90CD143327; Tue, 14 Nov 2023 10:08:14 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1318] l3fwd build errors in debug DPDK build with RTE_LOG_DP_LEVEL=RTE_LOG_DEBUG Date: Tue, 14 Nov 2023 09:08:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: examples X-Bugzilla-Version: 23.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ganapati.kundapura@intel.com 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=16999528940.6f3f.1643208 Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://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 --16999528940.6f3f.1643208 Date: Tue, 14 Nov 2023 10:08:14 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All https://bugs.dpdk.org/show_bug.cgi?id=3D1318 Bug ID: 1318 Summary: l3fwd build errors in debug DPDK build with RTE_LOG_DP_LEVEL=3DRTE_LOG_DEBUG Product: DPDK Version: 23.11 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: examples Assignee: dev@dpdk.org Reporter: ganapati.kundapura@intel.com Target Milestone: --- When DPDK is built in debug mode by setting RTE_LOG_DP_LEVEL=3DRTE_LOG_DEBU= G, l3fwd build fails due to static inline functions dump_acl4_rule(), dump_acl6_rule() defined in l3fwd_acl.c are called from l3fwd_acl_scalar.h:l3fwd_acl_send_packets() and= =20 other typo errors as below. ../../examples/l3fwd/l3fwd_acl_scalar.h: In function 'l3fwd_acl_send_packet= s': ../../examples/l3fwd/l3fwd_acl_scalar.h:96:34: error: invalid operands to binary & (have 'uint32_t *' {aka 'unsigned int *'} and 'unsigned int') 96 | if ((res & ACL_DENY_SIGNATURE) !=3D 0) {=20= =20 | ^ ../../examples/l3fwd/l3fwd_acl_scalar.h:98:41: warning: implicit declaratio= n of function 'dump_acl4_rule' [-Wimplicit-function-declaration] 98 | dump_acl4_rule(pkts[i], res[i]); | ^~~~~~~~~~~~~~ ../../examples/l3fwd/l3fwd_acl_scalar.h:98:41: warning: nested extern declaration of 'dump_acl4_rule' [-Wnested-externs] ../../examples/l3fwd/l3fwd_acl_scalar.h:99:62: error: 'pkt' undeclared (fir= st use in this function); did you mean 'pkts'? 99 | else if (RTE_ETH_IS_IPV6_HDR(pkt[i]->packet_type)) | ^~~ In file included from ../../examples/l3fwd/l3fwd_acl.c:268: ../../examples/l3fwd/l3fwd_acl_scalar.h:100:41: warning: implicit declarati= on of function 'dump_acl6_rule' [-Wimplicit-function-declaration] 100 | dump_acl6_rule(pkt[i], res[= i]); | ^~~~~~~~~~~~~~ ../../examples/l3fwd/l3fwd_acl_scalar.h:100:41: warning: nested extern declaration of 'dump_acl6_rule' [-Wnested-externs] ../../examples/l3fwd/l3fwd_acl.c: At top level: ../../examples/l3fwd/l3fwd_acl.c:870:1: warning: conflicting types for 'dump_acl4_rule'; have 'void(struct rte_mbuf *, uint32_t)' {aka 'void(struct rte_mbuf *, unsigned int)'} 870 | dump_acl4_rule(struct rte_mbuf *m, uint32_t sig) | ^~~~~~~~~~~~~~ ../../examples/l3fwd/l3fwd_acl.c:870:1: error: static declaration of 'dump_acl4_rule' follows non-static declaration In file included from ../../examples/l3fwd/l3fwd_acl.c:268: ../../examples/l3fwd/l3fwd_acl_scalar.h:98:41: note: previous implicit declaration of 'dump_acl4_rule' with type 'void(struct rte_mbuf *, uint32_t= )' {aka 'void(struct rte_mbuf *, unsigned int)'} 98 | dump_acl4_rule(pkts[i], res[i]); | ^~~~~~~~~~~~~~ ../../examples/l3fwd/l3fwd_acl.c: In function 'dump_acl4_rule': ../../examples/l3fwd/l3fwd_acl.c:878:61: warning: passing argument 2 of 'inet_ntop' makes pointer from integer without a cast [-Wint-conversion] 878 | printf("Packet Src:%s ", inet_ntop(AF_INET, ipv4_hdr->src_a= ddr, | ~~~~~~~~^~~~~~~= ~~~ | | | rte_be3= 2_t {aka unsigned int} In file included from ../../lib/net/rte_ip.h:26, from ../../lib/ethdev/rte_flow.h:24, from ../../lib/ethdev/rte_eth_ctrl.h:11, from ../../lib/ethdev/rte_ethdev.h:1492, from ../../examples/l3fwd/l3fwd.h:8, from ../../examples/l3fwd/l3fwd_acl.c:5: /tools/AGRreleases/yocto/snr/snr_h_60c911d4/5.10/tools/sysroots/snr-64-inte= laxxia-linux/usr/include/arpa/inet.h:64:64: note: expected 'const void * restrict' but argument is of type 'rte_be32_t' {aka 'unsigned int'} 64 | extern const char *inet_ntop (int __af, const void *__restrict __cp, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ ../../examples/l3fwd/l3fwd_acl.c:880:54: warning: passing argument 2 of 'inet_ntop' makes pointer from integer without a cast [-Wint-conversion] 880 | printf("Dst:%s ", inet_ntop(AF_INET, ipv4_hdr->dst_addr, | ~~~~~~~~^~~~~~~~~~ | | | rte_be32_t {aka unsigned int} ../../examples/l3fwd/l3fwd_acl.c: In function 'dump_acl6_rule': ../../examples/l3fwd/l3fwd_acl.c:914:39: error: 'struct ' has no member named 'rule_ipv6' 914 | print_one_ipv6_rule(acl_config.rule_ipv6 + offset, 1); | ^ ../../examples/l3fwd/l3fwd_acl.c: In function 'setup_acl': ../../examples/l3fwd/l3fwd_acl.c:985:19: error: 'struct ' has no member named 'rule_ipv4' 985 | acl_config.rule_ipv4 =3D (struct acl4_rule *)acl_base_ipv4; | ^ ../../examples/l3fwd/l3fwd_acl.c:986:19: error: 'struct ' has no member named 'rule_ipv6' 986 | acl_config.rule_ipv6 =3D (struct acl6_rule *)acl_base_ipv6; --=20 You are receiving this mail because: You are the assignee for the bug.= --16999528940.6f3f.1643208 Date: Tue, 14 Nov 2023 10:08:14 +0100 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All
Bug ID 1318
Summary l3fwd build errors in debug DPDK build with RTE_LOG_DP_LEVEL= =3DRTE_LOG_DEBUG
Product DPDK
Version 23.11
Hardware All
OS All
Status UNCONFIRMED
Severity normal
Priority Normal
Component examples
Assignee dev@dpdk.org
Reporter ganapati.kundapura@intel.com
Target Milestone ---

When DPDK is built in debug mode b=
y setting RTE_LOG_DP_LEVEL=3DRTE_LOG_DEBUG,
l3fwd build fails due to
static inline functions dump_acl4_rule(), dump_acl6_rule() defined in
l3fwd_acl.c are called from l3fwd_acl_scalar.h:l3fwd_acl_send_packets() and=
=20
other typo errors as below.

../../examples/l3fwd/l3fwd_acl_scalar.h: In function 'l3fwd_acl_send_packet=
s':
../../examples/l3fwd/l3fwd_acl_scalar.h:96:34: error: invalid operands to
binary & (have 'uint32_t *' {aka 'unsigned int *'} and 'unsigned int')
   96 |                         if ((res & ACL_DENY_SIGNATURE) !=3D 0) =
{=20=20
      |                                  ^

../../examples/l3fwd/l3fwd_acl_scalar.h:98:41: warning: implicit declaratio=
n of
function 'dump_acl4_rule' [-Wimplicit-function-declaration]
   98 |                                         dump_acl4_rule(pkts[i],
res[i]);
      |                                         ^~~~~~~~~~~~~~
../../examples/l3fwd/l3fwd_acl_scalar.h:98:41: warning: nested extern
declaration of 'dump_acl4_rule' [-Wnested-externs]

../../examples/l3fwd/l3fwd_acl_scalar.h:99:62: error: 'pkt' undeclared (fir=
st
use in this function); did you mean 'pkts'?
   99 |                                 else if
(RTE_ETH_IS_IPV6_HDR(pkt[i]->packet_type))
      |                                                              ^~~

In file included from ../../examples/l3fwd/l3fwd_acl.c:268:
../../examples/l3fwd/l3fwd_acl_scalar.h:100:41: warning: implicit declarati=
on
of function 'dump_acl6_rule' [-Wimplicit-function-declaration]
  100 |                                         dump_acl6_rule(pkt[i], res[=
i]);
      |                                         ^~~~~~~~~~~~~~
../../examples/l3fwd/l3fwd_acl_scalar.h:100:41: warning: nested extern
declaration of 'dump_acl6_rule' [-Wnested-externs]
../../examples/l3fwd/l3fwd_acl.c: At top level:
../../examples/l3fwd/l3fwd_acl.c:870:1: warning: conflicting types for
'dump_acl4_rule'; have 'void(struct rte_mbuf *, uint32_t)' {aka 'void(struct
rte_mbuf *, unsigned int)'}
  870 | dump_acl4_rule(struct rte_mbuf *m, uint32_t sig)
      | ^~~~~~~~~~~~~~
../../examples/l3fwd/l3fwd_acl.c:870:1: error: static declaration of
'dump_acl4_rule' follows non-static declaration
In file included from ../../examples/l3fwd/l3fwd_acl.c:268:
../../examples/l3fwd/l3fwd_acl_scalar.h:98:41: note: previous implicit
declaration of 'dump_acl4_rule' with type 'void(struct rte_mbuf *, uint32_t=
)'
{aka 'void(struct rte_mbuf *, unsigned int)'}
   98 |                                         dump_acl4_rule(pkts[i],
res[i]);
      |                                         ^~~~~~~~~~~~~~

../../examples/l3fwd/l3fwd_acl.c: In function 'dump_acl4_rule':
../../examples/l3fwd/l3fwd_acl.c:878:61: warning: passing argument 2 of
'inet_ntop' makes pointer from integer without a cast [-Wint-conversion]
  878 |         printf("Packet Src:%s ", inet_ntop(AF_INET, ipv4_=
hdr->src_addr,
      |                                                     ~~~~~~~~^~~~~~~=
~~~
      |                                                             |
      |                                                             rte_be3=
2_t
{aka unsigned int}
In file included from ../../lib/net/rte_ip.h:26,
                 from ../../lib/ethdev/rte_flow.h:24,
                 from ../../lib/ethdev/rte_eth_ctrl.h:11,
                 from ../../lib/ethdev/rte_ethdev.h:1492,
                 from ../../examples/l3fwd/l3fwd.h:8,
                 from ../../examples/l3fwd/l3fwd_acl.c:5:
/tools/AGRreleases/yocto/snr/snr_h_60c911d4/5.10/tools/sysroots/snr-64-inte=
laxxia-linux/usr/include/arpa/inet.h:64:64:
note: expected 'const void * restrict' but argument is of type 'rte_be32_t'
{aka 'unsigned int'}
   64 | extern const char *inet_ntop (int __af, const void *__restrict __cp,
      |                                         ~~~~~~~~~~~~~~~~~~~~~~~^~~~
../../examples/l3fwd/l3fwd_acl.c:880:54: warning: passing argument 2 of
'inet_ntop' makes pointer from integer without a cast [-Wint-conversion]
  880 |         printf("Dst:%s ", inet_ntop(AF_INET, ipv4_hdr->=
;dst_addr,
      |                                              ~~~~~~~~^~~~~~~~~~
      |                                                      |
      |                                                      rte_be32_t {aka
unsigned int}


../../examples/l3fwd/l3fwd_acl.c: In function 'dump_acl6_rule':
../../examples/l3fwd/l3fwd_acl.c:914:39: error: 'struct <anonymous>' =
has no
member named 'rule_ipv6'
  914 |         print_one_ipv6_rule(acl_config.rule_ipv6 + offset, 1);
      |                                       ^
../../examples/l3fwd/l3fwd_acl.c: In function 'setup_acl':
../../examples/l3fwd/l3fwd_acl.c:985:19: error: 'struct <anonymous>' =
has no
member named 'rule_ipv4'
  985 |         acl_config.rule_ipv4 =3D (struct acl4_rule *)acl_base_ipv4;
      |                   ^
../../examples/l3fwd/l3fwd_acl.c:986:19: error: 'struct <anonymous>' =
has no
member named 'rule_ipv6'
  986 |         acl_config.rule_ipv6 =3D (struct acl6_rule *)acl_base_ipv6;
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --16999528940.6f3f.1643208--