All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jesper Dangaard Brouer <brouer@redhat.com>
To: Jay Vosburgh <jay.vosburgh@canonical.com>
Cc: Johannes Berg <johannes@sipsolutions.net>,
	xdp-newbies@vger.kernel.org, Andy Gospodarek <andy@greyhouse.net>,
	brouer@redhat.com
Subject: Re: [PATCH] Enable Netdev XDP tutorial for Ubuntu 17.04
Date: Wed, 26 Apr 2017 16:59:33 +0200	[thread overview]
Message-ID: <20170426165933.2aea7705@redhat.com> (raw)
In-Reply-To: <20170425103537.1114aece@redhat.com>

Hi Jay,

On Tue, 25 Apr 2017 10:35:37 +0200
Jesper Dangaard Brouer <brouer@redhat.com> wrote:

> > 	Getting back to this after a couple of weeks...
> > 
> > 	The above changes didn't make any difference for me, but it
> > turns out all of the various Makefile hacks I did previously aren't
> > needed for Ubuntu 17.04, the following lets the examples build and run
> > fine:
> > 
> > diff --git a/kernel/samples/bpf/xdp_ddos01_blacklist_cmdline.c b/kernel/samples/bpf/xdp_ddos01_blacklist_cmdline.c
> > index 11157f9..5cf297e 100644
> > --- a/kernel/samples/bpf/xdp_ddos01_blacklist_cmdline.c
> > +++ b/kernel/samples/bpf/xdp_ddos01_blacklist_cmdline.c
> > @@ -13,7 +13,6 @@ static const char *__doc__=
> >  #include <string.h>
> >  #include <unistd.h>
> >  #include <locale.h>
> > -#include <linux/bitops.h>  
> 
> This include was added by Andy in commit 888606b5accb ("samples/bpf:
> xdp_ddos01 add support for port blacklisting").
> 
> To Andy, are you okay with this change/patch?

I've applied this and gave you author credit for the fix:
  https://github.com/netoptimizer/prototype-kernel/commit/7e879ecd6a96
 
> >  #include <sys/resource.h>
> >  #include <getopt.h>
> > @@ -212,7 +211,7 @@ static void blacklist_print_proto(int key, __u64 count)
> >  	printf("\n\t\"%s\" : %llu", xdp_proto_filter_names[key], count);
> >  }
> >  
> > -static void blacklist_print_port(int key, u32 val, int countfds[])
> > +static void blacklist_print_port(int key, __u32 val, int countfds[])
> >  {
> >  	int i;
> >  	__u64 count;
> >   

Applied

-- 
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Principal Kernel Engineer at Red Hat
  LinkedIn: http://www.linkedin.com/in/brouer

      reply	other threads:[~2017-04-26 15:08 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
2017-04-21 20:58   ` Jay Vosburgh
2017-04-25  8:35     ` Jesper Dangaard Brouer
2017-04-26 14:59       ` Jesper Dangaard Brouer [this message]

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=20170426165933.2aea7705@redhat.com \
    --to=brouer@redhat.com \
    --cc=andy@greyhouse.net \
    --cc=jay.vosburgh@canonical.com \
    --cc=johannes@sipsolutions.net \
    --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.