From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id 3383B23B for ; Fri, 25 May 2018 10:53:35 +0200 (CEST) Received: by mail-wm0-f67.google.com with SMTP id 18-v6so6708689wml.2 for ; Fri, 25 May 2018 01:53:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=fN6wAwbnmEVj0Nk+qC7bqKkwtIJoSKw5p2++0Y3MtUs=; b=yN1w4ey0s5FgH0169w1hoferAWnU71cbhheyZ+rSRAdz9i0VEZnRVozVJQjYC/YYv/ hsdkHhGuycbErJRfW56WCHmhLhYesd49uTwfTYgEK/O6uGyFGEZZi9J2Z3PSOrVZT6tv rwqoYyPVYvQP+hYCaDd8K06zYMGgsHpOSyIoTNTjIBfDJ0pXycE51yaIZKy0B1QIOrSq qoEapZPaq2k9Ycdt4S2Z+BlNaIQRWy01+4PpW7W0Nd1fF2Sk3igK/+BPGaw4pSyE4qGu Mx8bWAKleKIcnbw698drGn+PTQ7b0gExYa0DL5810PfJf2pRssMacc63NWrHZMNGiGA/ +VAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=fN6wAwbnmEVj0Nk+qC7bqKkwtIJoSKw5p2++0Y3MtUs=; b=gyfKU6+/dh988IvWMefznGSh8SFKdNfz+P/lhK4CO6Ha+Gbnzx6aL5tbaHc/Za3Ky8 uPyTszbvmZcCrrl0M//nAJFIZGU/Rv50ifK7KdAKe4IbrfRs5PDULq/GR8jjJBbiW6Z/ DZ5f62tvxq6OkhRS0rfWyMOhGb4FLcYPdb+88bxyVdpRsV5QUVlCSM/+y1gB2qk3JMxZ MLsLf8XwPB7tqfVRGAmwqucY+7oHTadVCGs8D7E1BSZQDplgGht/DEY8d8gb9IV1r/vO lbAdSOwH5fL83g1+JMJGVE9ZpEH91qyt8YBo9aS1MWWtoFknKWJ/zauqoqF4TjF86D1Z TQwQ== X-Gm-Message-State: ALKqPwdzfb7J/6Is8pIoutUZMUYJjJ65t2PjgKVLnerQubBCcRFbyDVM BR+vJx9Ih6MJQ7MkAQpS35LQaP14kRO3yp1w2ZyeXw== X-Google-Smtp-Source: AB8JxZrJ2nu926ORGE/ZuO7Yz/hl3QPSk387DYt4m96lUPseZUTthT/0t4hQYtXt1vRlGyERIeD1LjKLyiddWcfgyI0= X-Received: by 2002:a50:f742:: with SMTP id j2-v6mr1867939edn.37.1527238414735; Fri, 25 May 2018 01:53:34 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a50:f4ad:0:0:0:0:0 with HTTP; Fri, 25 May 2018 01:53:34 -0700 (PDT) X-Originating-IP: [195.192.229.7] In-Reply-To: References: From: Sameeh Jubran Date: Fri, 25 May 2018 11:53:34 +0300 Message-ID: To: dev@dpdk.org, Ophir Munk Cc: Yan Vugenfirer Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Compiling RSS ebpf X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 May 2018 08:53:35 -0000 Ping. On Sun, May 13, 2018 at 1:16 PM, Sameeh Jubran wrote: > Sorry I have accidentally sent my last email without finishing it. > > I believe it is due misconfiguration of the linux headers and their > inclusion. Anyone else faced these errors? > > > On Sun, May 13, 2018 at 1:10 PM, Sameeh Jubran wrote: > >> Hi All, >> >> I am attempting to compile the rss epbf program dpdk and I am getting too >> much compilation errors, is there anything specific that I need to >> configure when compiling? >> >> I am running the following line: >> >> clang -O2 -emit-llvm -c tap_bpf_program.c -o - | llc -march=bpf >> -filetype=obj -o tap_bpf_program.o >> >> I think it is due to some misconfiguration of >> > The errors I am getting: >> >> tap_bpf_program.c:157:37: warning: implicit declaration of function >> 'offsetof' is invalid in C99 [-Wimplicit-function-declaration] >> __u8 *src_dst_addr = data + off + offsetof(struct iphdr, >> saddr); >> ^ >> tap_bpf_program.c:157:46: error: expected expression >> __u8 *src_dst_addr = data + off + offsetof(struct iphdr, >> saddr); >> ^ >> tap_bpf_program.c:157:60: error: use of undeclared identifier 'saddr' >> __u8 *src_dst_addr = data + off + offsetof(struct iphdr, >> saddr); >> ^ >> tap_bpf_program.c:180:11: error: use of undeclared identifier 'TC_ACT_OK' >> return TC_ACT_OK; >> ^ >> tap_bpf_program.c:182:15: error: expected expression >> offsetof(struct ipv6hdr, saddr); >> ^ >> tap_bpf_program.c:182:31: error: use of undeclared identifier 'saddr' >> offsetof(struct ipv6hdr, saddr); >> ^ >> tap_bpf_program.c:204:10: error: use of undeclared identifier >> 'TC_ACT_PIPE' >> return TC_ACT_PIPE; >> ^ >> tap_bpf_program.c:212:9: error: use of undeclared identifier >> 'TC_ACT_RECLASSIFY' >> return TC_ACT_RECLASSIFY; >> ^ >> tap_bpf_program.c:222:1: error: expected parameter declarator >> RSS(l3_l4) >> ^ >> tap_bpf_program.c:216:12: note: expanded from macro 'RSS' >> __section(#L) int \ >> ^ >> :76:1: note: expanded from here >> "l3_l4" >> ^ >> tap_bpf_program.c:222:1: error: expected ')' >> tap_bpf_program.c:216:12: note: expanded from macro 'RSS' >> __section(#L) int \ >> ^ >> :76:1: note: expanded from here >> "l3_l4" >> ^ >> tap_bpf_program.c:222:1: note: to match this '(' >> tap_bpf_program.c:216:11: note: expanded from macro 'RSS' >> __section(#L) int \ >> ^ >> tap_bpf_program.c:222:1: warning: type specifier missing, defaults to >> 'int' [-Wimplicit-int] >> RSS(l3_l4) >> ^ >> tap_bpf_program.c:216:2: note: expanded from macro 'RSS' >> __section(#L) int \ >> ^ >> tap_bpf_program.c:222:1: error: expected ';' after top level declarator >> tap_bpf_program.c:216:16: note: expanded from macro 'RSS' >> __section(#L) int \ >> ^ >> fatal error: too many errors emitted, stopping now [-ferror-limit=] >> 6 warnings and 20 errors generated. >> sameeh@bark:~/Builds/bpf_rss/dpdk/drivers/net/tap$ clear >> >> -- >> Respectfully, >> *Sameeh Jubran* >> *Linkedin * >> *Software Engineer @ Daynix .* >> > > > > -- > Respectfully, > *Sameeh Jubran* > *Linkedin * > *Software Engineer @ Daynix .* > -- Respectfully, *Sameeh Jubran* *Linkedin * *Software Engineer @ Daynix .*