From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id 5C3501B05 for ; Sun, 13 May 2018 12:16:48 +0200 (CEST) Received: by mail-wm0-f65.google.com with SMTP id m129-v6so10054393wmb.3 for ; Sun, 13 May 2018 03:16:48 -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=ZxgaQQWUZMWv22iF0LYmJd4FjthBhAaDZD4hQP0CDcM=; b=jQblB178UuxDnRvtNQcrzZTbwN0duCwyHfpi72s0P5AiVGz9Y2HvxD+rVRzO7ontJj PuMaSx8xH60gwKy5k8qlDIcopzTfl9uOAP1KI/rcX3HwY8WwIKiptX1UeoRyO0dFWb4M JfCVVUSB7uK5TCzW+DuAGWJk0wM/e8UH5GwGA8s50Dkw4eSpGqoWJLPXdjMmCYpdckg/ X5aiQhByi0TnsDzVte7Ct13sVQIEulvcDFulGKdSrsnmMsfGsQegBp6vzvtFX4AWQcXt 50Tq+deFQb96a9rvSev0LYwv5W2z1tOWRKd2gb+f0DckQ3jM35t9ieNMEYMEzXIo8RhA WzQA== 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=ZxgaQQWUZMWv22iF0LYmJd4FjthBhAaDZD4hQP0CDcM=; b=dmllgyXrv0Q6sHDnjLnJ47E29OF6HnEs2v5bIslhaTB9bnwyu3oXaMw/afSC1r+qYW gk3XxswUm2Pfe79tfNSFaZNg6cR2nDZYsVxXNkT9PgMQ4CfrYBnJj3Sy3jFF4BQSIh85 E5Uz1dAmqORs157EaQVQ+M95pyGuVd7wJ3gXq8F/bLYdxBt7GocNoXcEPkRElwbhAI/y WQt+YPdA9nxxXI+r110xcuLueEwvCNZgJ39i3+lmx0yef/8hFYpClQ1+qQOy/Zm7/hSH H4/qA9eTWKchVJ9SaiQgOsbIgqWgk/IZW/1gFlzQevqMqaIQMBLRQ/8uyavIuTqQtNev 9GHw== X-Gm-Message-State: ALKqPweytwCvW/8boENT3ocpnyJfFD+UfwdMUpDz1oWyEgObyk3NwM92 HuD+VYuJffB2kwbmDXwxZksUbGSEmPypHWZUJpM9nR71 X-Google-Smtp-Source: AB8JxZoMWUxrG234DISoMHOg7U58OoxYG6zylN5Z7su5XU9+fnZNXX/6tUDtsh++tG3i/aaUePNrNuUdU4eMnZS1pYM= X-Received: by 2002:a50:f05c:: with SMTP id u28-v6mr7298207edl.91.1526206607836; Sun, 13 May 2018 03:16:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.245.98 with HTTP; Sun, 13 May 2018 03:16:47 -0700 (PDT) X-Originating-IP: [195.192.229.23] In-Reply-To: References: From: Sameeh Jubran Date: Sun, 13 May 2018 13:16:47 +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: 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: Sun, 13 May 2018 10:16:48 -0000 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 .*