Re: [iovisor-dev] Facing an error while compiling for bpf using clang
bpf needs 3.7.1 and higher version. Later clang (>= 3.7.1) has more features. On Tue, May 21, 2019 at 11:13 PM Prashanth Fernando wrote: > > Hi, > > The clang version I am using is 3.4.2 > > clang --version > clang version 3.4.2 (tags/RELEASE_34/dot2-final) > Target: x86_64-redhat-linux-gnu > Thread model: posix > > Tks, > PRashanth > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#1677): https://lists.iovisor.org/g/iovisor-dev/message/1677 Mute This Topic: https://lists.iovisor.org/mt/31716444/21656 Group Owner: iovisor-dev+ow...@lists.iovisor.org Unsubscribe: https://lists.iovisor.org/g/iovisor-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [iovisor-dev] Facing an error while compiling for bpf using clang
Hi, The clang version I am using is 3.4.2 clang --version clang version 3.4.2 (tags/RELEASE_34/dot2-final) Target: x86_64-redhat-linux-gnu Thread model: posix Tks, PRashanth -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#1676): https://lists.iovisor.org/g/iovisor-dev/message/1676 Mute This Topic: https://lists.iovisor.org/mt/31716444/21656 Group Owner: iovisor-dev+ow...@lists.iovisor.org Unsubscribe: https://lists.iovisor.org/g/iovisor-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [iovisor-dev] how to run bcc xdp_redirect_cpu.py example
On Wed, 22 May 2019 12:28:46 +0800 "Gary Lin" wrote: > On Tue, May 21, 2019 at 08:17:16PM -0700, forrest0...@gmail.com wrote: > > Hi, > > I’m new to bpf and when run `iovisor/bcc` examples with > > `xdp_redirect_cpu.py` in my vm, the connection will lost and I have > > to restart my vm. In my understanding this example just foword the > > package from one cpu to another and the package should not lost. Am > > I missing something? Anyone can help me? Thank you > > > > PS: xdp is loaded in xdpgeneric mode > > > > CPUMAP is not supported by generic XDP(*). Besides, it provides very little > benefit since the packet is already packaged into a skb and there is no need > to package it again with another CPU. > > (*) https://github.com/torvalds/linux/blob/v5.1/net/core/filter.c#L3560-L3563 Thanks you Gary, for pointing this out. I added the TODO in the code, and it is still on my todo list for CPUMAP here: https://github.com/xdp-project/xdp-project/blob/master/areas/cpumap.org -- Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#1675): https://lists.iovisor.org/g/iovisor-dev/message/1675 Mute This Topic: https://lists.iovisor.org/mt/31716133/21656 Group Owner: iovisor-dev+ow...@lists.iovisor.org Unsubscribe: https://lists.iovisor.org/g/iovisor-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [iovisor-dev] how to run bcc xdp_redirect_cpu.py example
On Tue, May 21, 2019 at 08:17:16PM -0700, forrest0...@gmail.com wrote: > Hi, I’m new to bpf and when run `iovisor/bcc` examples with > `xdp_redirect_cpu.py` in my vm, the connection will lost and I have to > restart my vm. In my understanding this example just foword the package from > one cpu to another and the package should not lost. Am I missing something? > Anyone can help me? Thank you > > PS: xdp is loaded in xdpgeneric mode > CPUMAP is not supported by generic XDP(*). Besides, it provides very little benefit since the packet is already packaged into a skb and there is no need to package it again with another CPU. Cheers, Gary Lin (*) https://github.com/torvalds/linux/blob/v5.1/net/core/filter.c#L3560-L3563 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#1674): https://lists.iovisor.org/g/iovisor-dev/message/1674 Mute This Topic: https://lists.iovisor.org/mt/31716133/21656 Group Owner: iovisor-dev+ow...@lists.iovisor.org Unsubscribe: https://lists.iovisor.org/g/iovisor-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [iovisor-dev] Facing an error while compiling for bpf using clang
On 05/21/2019 08:42 PM, Prashanth Fernando wrote: > Hi, > > I'm new to XDP, I am trying to compile a simple code to start with. > When I compile with clang, I face an error. Can someone please help me out in > resolving this issue. > > # clang -target bpf -c drop.c -o drop.o > error: unknown target triple 'bpf', please use -triple or -arch > Which version of clang are you using? It looks like it is missing the bpf target. -Tom > OS: CentOS 7 > Updated Kernel: > # uname -msr > Linux 5.1.3 x86_64 > > Built the kernel with the following flags on: > CONFIG_CGROUP_BPF=y > CONFIG_BPF=y > CONFIG_BPF_SYSCALL=y > CONFIG_BPF_JIT_ALWAYS_ON=y > CONFIG_NETFILTER_XT_MATCH_BPF=m > CONFIG_BPFILTER=y > CONFIG_BPFILTER_UMH=m > CONFIG_NET_CLS_BPF=m > CONFIG_NET_ACT_BPF=m > CONFIG_BPF_JIT=y > CONFIG_BPF_STREAM_PARSER=y > CONFIG_LWTUNNEL_BPF=y > CONFIG_HAVE_EBPF_JIT=y > CONFIG_BPF_EVENTS=y > CONFIG_BPF_KPROBE_OVERRIDE=y > CONFIG_TEST_BPF=m > > I am not sure what I am missing still. > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#1673): https://lists.iovisor.org/g/iovisor-dev/message/1673 Mute This Topic: https://lists.iovisor.org/mt/31716444/21656 Group Owner: iovisor-dev+ow...@lists.iovisor.org Unsubscribe: https://lists.iovisor.org/g/iovisor-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[iovisor-dev] Facing an error while compiling for bpf using clang
Hi, I'm new to XDP, I am trying to compile a simple code to start with. When I compile with clang, I face an error. Can someone please help me out in resolving this issue. # clang -target bpf -c drop.c -o drop.o error: unknown target triple 'bpf', please use -triple or -arch OS: CentOS 7 Updated Kernel: # uname -msr Linux 5.1.3 x86_64 Built the kernel with the following flags on: CONFIG_CGROUP_BPF=y CONFIG_BPF=y CONFIG_BPF_SYSCALL=y CONFIG_BPF_JIT_ALWAYS_ON=y CONFIG_NETFILTER_XT_MATCH_BPF=m CONFIG_BPFILTER=y CONFIG_BPFILTER_UMH=m CONFIG_NET_CLS_BPF=m CONFIG_NET_ACT_BPF=m CONFIG_BPF_JIT=y CONFIG_BPF_STREAM_PARSER=y CONFIG_LWTUNNEL_BPF=y CONFIG_HAVE_EBPF_JIT=y CONFIG_BPF_EVENTS=y CONFIG_BPF_KPROBE_OVERRIDE=y CONFIG_TEST_BPF=m I am not sure what I am missing still. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#1672): https://lists.iovisor.org/g/iovisor-dev/message/1672 Mute This Topic: https://lists.iovisor.org/mt/31716444/21656 Group Owner: iovisor-dev+ow...@lists.iovisor.org Unsubscribe: https://lists.iovisor.org/g/iovisor-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[iovisor-dev] how to run bcc xdp_redirect_cpu.py example
Hi, I’m new to bpf and when run `iovisor/bcc` examples with `xdp_redirect_cpu.py` in my vm, the connection will lost and I have to restart my vm. In my understanding this example just foword the package from one cpu to another and the package should not lost. Am I missing something? Anyone can help me? Thank you PS: xdp is loaded in xdpgeneric mode -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#1671): https://lists.iovisor.org/g/iovisor-dev/message/1671 Mute This Topic: https://lists.iovisor.org/mt/31716133/21656 Group Owner: iovisor-dev+ow...@lists.iovisor.org Unsubscribe: https://lists.iovisor.org/g/iovisor-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[iovisor-dev] Linux Plumbers BPF micro-conference CFP
This is a call for proposals for the BPF micro-conference at this years' Linux Plumbers Conference (LPC) 2019 which will be held in Lisbon, Portugal for September 9-11. The goal of the BPF micro-conference is to bring BPF developers together to discuss topics around Linux kernel work related to the BPF core infrastructure as well as its many subsystems under tracing, networking, security, and BPF user space tooling (LLVM, libbpf, bpftool and many others). The format of the micro-conference has a main focus on discussion, therefore each accepted topic will provide a short 1-2 slide introduction with subsequent discussion for the rest of the given time slot. The BPF micro-conference is a community-driven event and open to all LPC attendees, there is no additional registration required. Please submit your discussion proposals to the LPC BPF micro-conference organizers at: lpc-...@vger.kernel.org Proposals must be submitted until August 2nd, and submitters will be notified of acceptance at latest by August 9. (Please note that proposals must not be sent as html mail as they are otherwise dropped by vger.) The format of the submission and many other details can be found at: http://vger.kernel.org/lpc-bpf.html Looking forward to seeing you all in Lisbon in September! -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#1670): https://lists.iovisor.org/g/iovisor-dev/message/1670 Mute This Topic: https://lists.iovisor.org/mt/31712908/21656 Group Owner: iovisor-dev+ow...@lists.iovisor.org Unsubscribe: https://lists.iovisor.org/g/iovisor-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-