Re: AF_XDP socket TX path interact with TC?

Toke Høiland-Jørgensen <[email protected]>
Newsgroups org.kernel.vger.xdp-newbies
Message-ID <[email protected]>
Jun Hu <[email protected]> writes:

> Hi,
> I want to put a timestamp in the egress packets, and I want to use
> AF_XDP socket for both sending and receiving packets; since a XDP
> kernel program only work in ingress direction, I wonder if I could use
> a tc kernel program to change a packet sent out via an AF_XDP socket?
> I searched around, but couldn't find any direct answer...

Nope, AF_XDP bypasses the stack completely, so TC won't see the packet
on egress...

-Toke
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.