From: Johannes Berg <johannes@sipsolutions.net>
To: Jay Vosburgh <jay.vosburgh@canonical.com>, xdp-newbies@vger.kernel.org
Cc: Jesper Dangaard Brouer <brouer@redhat.com>,
Andy Gospodarek <andy@greyhouse.net>
Subject: Re: [PATCH] Enable Netdev XDP tutorial for Ubuntu 17.04
Date: Wed, 12 Apr 2017 13:51:28 +0200 [thread overview]
Message-ID: <1491997888.2855.1.camel@sipsolutions.net> (raw)
In-Reply-To: <20602.1491881713@famine> (sfid-20170411_053552_749185_2EF01FC0)
On Mon, 2017-04-10 at 20:35 -0700, Jay Vosburgh wrote:
> This patch resolves build issues when compiling the samples on
> Ubuntu 17.04 with the distro 4.10 kernel and the linux-headers
> package
> installed. This permits running the samples using distro packages
> without needing to rebuild the kernel from source.
>
> Tested on a 17.04 VM using virtio_net.
>
> Signed-off-by: Jay Vosburgh <jay.vosburgh@canonical.com>
> ---
>
> I haven't tried the patched version of this on a built from
> source kernel yet, so it might break that.
I was able to build on a recent Debian testing by simply inserting the
following line into samples/bpf/Makefile to force it to use the
kernel's UAPI instead of the installed headers:
HOSTCFLAGS += -I$(srctree)/include/uapi/ -D__EXPORTED_HEADERS__
johannes
next prev parent reply other threads:[~2017-04-12 11:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-11 3:35 [PATCH] Enable Netdev XDP tutorial for Ubuntu 17.04 Jay Vosburgh
2017-04-11 20:01 ` Andy Gospodarek
2017-04-11 21:58 ` Jay Vosburgh
2017-04-12 11:51 ` Johannes Berg [this message]
2017-04-21 20:58 ` Jay Vosburgh
2017-04-25 8:35 ` Jesper Dangaard Brouer
2017-04-26 14:59 ` Jesper Dangaard Brouer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1491997888.2855.1.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=andy@greyhouse.net \
--cc=brouer@redhat.com \
--cc=jay.vosburgh@canonical.com \
--cc=xdp-newbies@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.