* Sending A Separate Packet Out The TX Path In XDP
@ 2021-04-27 19:57 Christian Deacon
2021-04-27 20:14 ` Toke Høiland-Jørgensen
0 siblings, 1 reply; 4+ messages in thread
From: Christian Deacon @ 2021-04-27 19:57 UTC (permalink / raw)
To: xdp-newbies
Hey everyone,
I had a quick question. Is it possible to send a packet separate from
the original out of the TX path within an XDP program? I would imagine
this isn't possible, but I just wanted to make sure.
If this isn't possible within the XDP program itself, is it possible to
do this with AF_XDP sockets or can AF_XDP sockets only handle packets
redirected via the fast-path XDP creates? I wasn't sure if I'd need to
make another Linux socket inside of the AF_XDP program in this case to
send a separate packet out.
Any help is highly appreciated and thank you for your time.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Sending A Separate Packet Out The TX Path In XDP
2021-04-27 19:57 Sending A Separate Packet Out The TX Path In XDP Christian Deacon
@ 2021-04-27 20:14 ` Toke Høiland-Jørgensen
2021-04-28 16:28 ` Christian Deacon
0 siblings, 1 reply; 4+ messages in thread
From: Toke Høiland-Jørgensen @ 2021-04-27 20:14 UTC (permalink / raw)
To: Christian Deacon, xdp-newbies
Christian Deacon <gamemann@gflclan.com> writes:
> Hey everyone,
>
>
> I had a quick question. Is it possible to send a packet separate from
> the original out of the TX path within an XDP program? I would imagine
> this isn't possible, but I just wanted to make sure.
Not from within XDP, no...
> If this isn't possible within the XDP program itself, is it possible to
> do this with AF_XDP sockets or can AF_XDP sockets only handle packets
> redirected via the fast-path XDP creates? I wasn't sure if I'd need to
> make another Linux socket inside of the AF_XDP program in this case to
> send a separate packet out.
...but AF_XDP sockets can send whatever you want :)
-Toke
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Sending A Separate Packet Out The TX Path In XDP
2021-04-27 20:14 ` Toke Høiland-Jørgensen
@ 2021-04-28 16:28 ` Christian Deacon
2021-04-29 9:27 ` Toke Høiland-Jørgensen
0 siblings, 1 reply; 4+ messages in thread
From: Christian Deacon @ 2021-04-28 16:28 UTC (permalink / raw)
To: Toke Høiland-Jørgensen, xdp-newbies
Hey Toke,
That makes sense! I'm going to look into using AF_XDP sockets to achieve
this.
As always, thank you for all your help!
On 4/27/2021 3:14 PM, Toke Høiland-Jørgensen wrote:
> Christian Deacon <gamemann@gflclan.com> writes:
>
>> Hey everyone,
>>
>>
>> I had a quick question. Is it possible to send a packet separate from
>> the original out of the TX path within an XDP program? I would imagine
>> this isn't possible, but I just wanted to make sure.
> Not from within XDP, no...
>
>> If this isn't possible within the XDP program itself, is it possible to
>> do this with AF_XDP sockets or can AF_XDP sockets only handle packets
>> redirected via the fast-path XDP creates? I wasn't sure if I'd need to
>> make another Linux socket inside of the AF_XDP program in this case to
>> send a separate packet out.
> ...but AF_XDP sockets can send whatever you want :)
>
> -Toke
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Sending A Separate Packet Out The TX Path In XDP
2021-04-28 16:28 ` Christian Deacon
@ 2021-04-29 9:27 ` Toke Høiland-Jørgensen
0 siblings, 0 replies; 4+ messages in thread
From: Toke Høiland-Jørgensen @ 2021-04-29 9:27 UTC (permalink / raw)
To: Christian Deacon, xdp-newbies
Christian Deacon <gamemann@gflclan.com> writes:
> Hey Toke,
>
>
> That makes sense! I'm going to look into using AF_XDP sockets to achieve
> this.
>
>
> As always, thank you for all your help!
You're welcome! :)
-Toke
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-04-29 9:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-27 19:57 Sending A Separate Packet Out The TX Path In XDP Christian Deacon
2021-04-27 20:14 ` Toke Høiland-Jørgensen
2021-04-28 16:28 ` Christian Deacon
2021-04-29 9:27 ` Toke Høiland-Jørgensen
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.