XDP-Newbies Archive mirror
 help / color / mirror / Atom feed
From: "Toke Høiland-Jørgensen" <toke@redhat.com>
To: "Main, George" <mainge@rose-hulman.edu>,
	"xdp-newbies@vger.kernel.org" <xdp-newbies@vger.kernel.org>
Subject: Re: XDP_PASS and XDP_REDIRECT
Date: Mon, 18 May 2020 20:02:08 +0200	[thread overview]
Message-ID: <87eerhnmu7.fsf@toke.dk> (raw)
In-Reply-To: <DM6PR18MB2475DD12FB5A8D747CA6ABEF9CB80@DM6PR18MB2475.namprd18.prod.outlook.com>

"Main, George" <mainge@rose-hulman.edu> writes:

> Hello All,
>
> I am working on an XDP Content Based Router project. The basic concept
> is that a machine running an XDP program acts as a gateway and accepts
> TCP connections from outside machines. Upon receiving a message it
> converts the packet to UDP and uses bpf_redirect_map to send the
> packet out through another interface.
>
> The problem I am encountering is that I want to be able to pass the
> message to userspace (where the TCP server resides) using XDP_PASS in
> addition to the redirect. I'm somewhat looking for a way to emulate
> the functionality of bpf_clone_redirect, but with support for XDP
> driver mode.
>
> Is this even possible right now? Are there any workarounds?

I am not sure I quite understand what it is you're trying to do, but no,
there is currently no way to get more than a single action for the same
packet.

-Toke

      reply	other threads:[~2020-05-18 18:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-18 16:28 XDP_PASS and XDP_REDIRECT Main, George
2020-05-18 18:02 ` Toke Høiland-Jørgensen [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=87eerhnmu7.fsf@toke.dk \
    --to=toke@redhat.com \
    --cc=mainge@rose-hulman.edu \
    --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 read-only IMAP folder(s) and NNTP newsgroup(s).