All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
To: Andrii Nakryiko <andrii.nakryiko@gmail.com>
Cc: Lorenzo Bianconi <lorenzo@kernel.org>, bpf <bpf@vger.kernel.org>,
	Alexei Starovoitov <ast@kernel.org>,
	Daniel Borkmann <daniel@iogearbox.net>,
	Andrii Nakryiko <andrii@kernel.org>
Subject: Re: [PATCH bpf-next] samples: bpf: convert xdp_router_ipv4 to XDP samples helper
Date: Tue, 15 Mar 2022 23:44:42 +0100	[thread overview]
Message-ID: <YjEW2rwFbcHaqv2D@lore-desk> (raw)
In-Reply-To: <CAEf4BzZFGv-_5U8LL=Jzr8MqL5F5F0i=gz+06nJOc961Ta54KA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1437 bytes --]

> On Tue, Mar 15, 2022 at 4:06 AM Lorenzo Bianconi <lorenzo@kernel.org> wrote:
> >
> > Rely on the libbpf skeleton facility and other utilities provided by XDP
> > sample helpers in xdp_router_ipv4 sample.
> >
> > Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
> > ---
> >  samples/bpf/Makefile               |   9 +-
> >  samples/bpf/xdp_router_ipv4.bpf.c  | 180 +++++++++++
> >  samples/bpf/xdp_router_ipv4_kern.c | 186 ------------
> 
> hm... git should be able to record this as a rename and the result
> patch will be much smaller, only showing what really changed. Can you
> check where this went wrong?

I am not so familiar with git internal, but I think it depends on the similarity
between the "old" and "new" files. If they are very different (like in this case),
git will report the "old" file as remove and the creation of the "new" one.
I guess you can try to do "git mv" a given file and overwrite it with a
different one. Am I missing something?

> 
> Please also add libbpf_set_strict_mode(LIBBPF_STRICT_ALL) to enable
> stricter "libbpf 1.0" mode. Thanks!

ack, I will add it in v2.

Regards,
Lorenzo

> 
> >  samples/bpf/xdp_router_ipv4_user.c | 462 ++++++++++++-----------------
> >  4 files changed, 377 insertions(+), 460 deletions(-)
> >  create mode 100644 samples/bpf/xdp_router_ipv4.bpf.c
> >  delete mode 100644 samples/bpf/xdp_router_ipv4_kern.c
> >
> 
> [...]
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2022-03-15 22:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-15 11:06 [PATCH bpf-next] samples: bpf: convert xdp_router_ipv4 to XDP samples helper Lorenzo Bianconi
2022-03-15 18:44 ` Andrii Nakryiko
2022-03-15 22:44   ` Lorenzo Bianconi [this message]
2022-03-16  5:31     ` Andrii Nakryiko

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=YjEW2rwFbcHaqv2D@lore-desk \
    --to=lorenzo.bianconi@redhat.com \
    --cc=andrii.nakryiko@gmail.com \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=lorenzo@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.