xdp-newbies.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Ptacek <thomasptacek@gmail.com>
To: xdp-newbies@vger.kernel.org
Subject: bpf_redirect and xdpgeneric
Date: Fri, 18 Sep 2020 00:04:18 -0500	[thread overview]
Message-ID: <CANDGNvbX+BwA_ZUmw2rxH5FGLFsCVH33Tw3RCk3e3Qo69J+4qw@mail.gmail.com> (raw)

Weird question:

Should there be a reason for me to expect bpf_redirect to fail when
redirecting, in XDP, to the egress of an xdpgeneric device?

I'm redirecting from an XDP program on a tap device, out the igb eno1
to the Internet (and fixing MAC addresses). I can redirect to other
tap devices, but not to eno1.

I was going to try with bpf_redirect_map, but I'm having tooling
trouble there (I can't get iproute2 to load a BPF object file with a
pinned DEVMAP; it complains that the flags don't match). But for my
purposes, bpf_redirect would be fine.

(My testbed is 5.6, for whatever that's worth).

This mailing list is fantastic and you are all excellent. Thanks
whether or not anyone has any thoughts.

---
Thomas H. Ptacek

             reply	other threads:[~2020-09-18  5:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-18  5:04 Thomas Ptacek [this message]
2020-09-18 10:21 ` bpf_redirect and xdpgeneric Toke Høiland-Jørgensen
2020-09-18 18:42   ` Thomas Ptacek
2020-09-18 20:27     ` David Ahern
2020-09-18 20:34       ` Thomas Ptacek
2020-09-28 15:24       ` Jesper Dangaard Brouer
2020-09-28 16:20         ` Sven Auhagen
2020-09-28 18:04           ` [Intel-wired-lan] " Nguyen, Anthony L
2020-09-28 18:14             ` Sven Auhagen

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=CANDGNvbX+BwA_ZUmw2rxH5FGLFsCVH33Tw3RCk3e3Qo69J+4qw@mail.gmail.com \
    --to=thomasptacek@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).