From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id 2DC641CBE0 for ; Sun, 13 May 2018 12:10:29 +0200 (CEST) Received: by mail-wm0-f43.google.com with SMTP id f6-v6so8808557wmc.4 for ; Sun, 13 May 2018 03:10:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=MHBsINuIM5pTQEen7CGuvlZBLR72BH5sk9FgydYNXKU=; b=bw8TXDqaKqibhDMRq9ZNIcgnqVplbUe51KmVOFZ9RWkYwuWGeMhMFnrOXesd2yTloP Q5ffZOJCw07525sDZ7HIHpsTS+V6Op0G/U5Eal6mCyRRL+WWfM0A/TcTKYxZrsEZQDO/ 8C0mR5vmnvRUOGEcZa9pHt4nfo8suKu5+2taLX5f3DkaXiFRkLixCHO04MEsQqXkyiZy pLuaGMSVhZ4OSnKBv7glwuhEGfvsmA9t4JiQ9TjeyCX+3M/vbXI9JUOJfZvthByPivKa PhftGsJbFejGVihBCQmHC1aRpKEQeA2+Eatm+mSnKBt+Fxl6zXZXk9KOYyi9ea+J4QzM goFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=MHBsINuIM5pTQEen7CGuvlZBLR72BH5sk9FgydYNXKU=; b=Z9PSmZOyonFgZa5Oa3p+zzzojsTZKDlIPPGl2lM98IHKaHY+FC8gdtix8MwlZweItS 2IhYhP//lA6JxGTX3xWzVPviLjqhfVAmbu8hRuWsn2ifXVkmea17KILNqmW3pGwi7fDp AnETL3QfGx9sqfUxR/K1b/TD7D9OkQoGbIH2oxyLmbcuZiqPxfSGOED6bWr+rExfwLQf vmS+JSP2G25lk1c/UmB21A+2ERYWDqrpZh+lrjyeJ5/JFIXDYejItjDnGzdzwyLKACG7 GSiafs1G0i/1/WEj5v/CnPYCyksXStjse+26jdBGh0l7eTRgPtIt5ZTI62C6ZXQC/w30 YPmA== X-Gm-Message-State: ALKqPwdUOYkcBz0lszPn/v9bvWJfFF50tKksrZjQDrzpZx1G0qBxY3rP OokS+XNSUG+n1cRyaIBEgVnOZ6hdb3zBHs+W5kazTI93 X-Google-Smtp-Source: AB8JxZotXbVVJtich7TXRWxdPj6jF9QawCCl2HJpy5VoVcRmWGGsfZd3WJCq//qMx8pFpzmcKWiZFjljuSJ3k0v5DXM= X-Received: by 2002:a50:a0e6:: with SMTP id 93-v6mr7346080edo.49.1526206228684; Sun, 13 May 2018 03:10:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.245.98 with HTTP; Sun, 13 May 2018 03:10:28 -0700 (PDT) X-Originating-IP: [195.192.229.23] From: Sameeh Jubran Date: Sun, 13 May 2018 13:10:28 +0300 Message-ID: To: dev@dpdk.org, ophirmu@mellanox.com Cc: Yan Vugenfirer Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [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: Sun, 13 May 2018 10:10:29 -0000 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 .*