Re: AF_XDP socket TX path interact with TC?
Jun Hu <[email protected]>
| Newsgroups | org.kernel.vger.xdp-newbies |
|---|---|
| Message-ID | <CAEM4-kBiUPF67pnHo3O+7dC8yE8eSgiJ9ZOa4T1MwS-E+wmc6Q@mail.gmail.com> |
> What is your use-case for adding a TX-timestamp to the packet?
>
> --Jesper
my use case is rather simple, I want to use AF_XDP for traffic tester
type of application, essentially, this application generates testing
traffic, egress via NIC-1, goes into a DUT, and DUT forward the
traffic back into NIC-2, the application need to measure the DUT's
forwarding latency for each packet, so it needs to know the timestamp
of test traffic TX on NIC-1 and RX on NIC-2
+-----+
|---------------- | DUT |----------------|
| +-----+ |
| |
| +-------------------+ |
| <----- | | <---- |
+----------|NIC-1 NIC-2 |---------+
| |
+-------------------+