DPDK patches and discussions
 help / color / mirror / Atom feed
* [DPDK Bug 1376] A BPF can no longer include header rte_mbuf_core.h
@ 2024-01-30 15:42 bugzilla
  2024-01-30 19:07 ` Tyler Retzlaff
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2024-01-30 15:42 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 953 bytes --]

https://bugs.dpdk.org/show_bug.cgi?id=1376

            Bug ID: 1376
           Summary: A BPF can no longer include header rte_mbuf_core.h
           Product: DPDK
           Version: 23.11
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: Normal
         Component: other
          Assignee: dev@dpdk.org
          Reporter: michel@digirati.com.br
  Target Milestone: ---

Created attachment 272
  --> https://bugs.dpdk.org/attachment.cgi?id=272&action=edit
Compilation errors for t2.c and t3.c

A BPF needs to include the header <rte_mbuf_core.h> to access struct rte_mbuf.
But the current version of the header <rte_mbuf_core.h> cannot be included in a
BPF. The attached file shows the errors one gets while compiling the files
examples/bpf/t2.c and examples/bpf/t3.c.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #2: Type: text/html, Size: 3008 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [DPDK Bug 1376] A BPF can no longer include header rte_mbuf_core.h
  2024-01-30 15:42 [DPDK Bug 1376] A BPF can no longer include header rte_mbuf_core.h bugzilla
@ 2024-01-30 19:07 ` Tyler Retzlaff
  0 siblings, 0 replies; 2+ messages in thread
From: Tyler Retzlaff @ 2024-01-30 19:07 UTC (permalink / raw)
  To: bugzilla; +Cc: dev

On Tue, Jan 30, 2024 at 03:42:05PM +0000, bugzilla@dpdk.org wrote:
> https://bugs.dpdk.org/show_bug.cgi?id=1376
> 
>             Bug ID: 1376
>            Summary: A BPF can no longer include header rte_mbuf_core.h
>            Product: DPDK
>            Version: 23.11
>           Hardware: x86
>                 OS: Linux
>             Status: UNCONFIRMED
>           Severity: major
>           Priority: Normal
>          Component: other
>           Assignee: dev@dpdk.org
>           Reporter: michel@digirati.com.br
>   Target Milestone: ---
> 
> Created attachment 272
>   --> https://bugs.dpdk.org/attachment.cgi?id=272&action=edit
> Compilation errors for t2.c and t3.c
> 
> A BPF needs to include the header <rte_mbuf_core.h> to access struct rte_mbuf.
> But the current version of the header <rte_mbuf_core.h> cannot be included in a
> BPF. The attached file shows the errors one gets while compiling the files
> examples/bpf/t2.c and examples/bpf/t3.c.

a bug was fixed where rte_arch_bswap16 was being hidden except when
RTE_FORCE_INTRINSICS was defined.

i suspect -t bpf should likely define RTE_FORCE_INTRINSICS since it
seems generally unreasonable to have x86 inline asm in a bpf translation
unit.

if there are problems with RTE_FORCE_INTRINSICS they'll have to be
addressed as separate bugs.

ty

> 
> -- 
> You are receiving this mail because:
> You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-30 19:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-30 15:42 [DPDK Bug 1376] A BPF can no longer include header rte_mbuf_core.h bugzilla
2024-01-30 19:07 ` Tyler Retzlaff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).