AF_XDP-interaction: Issue with XDP link down/up

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
This commit is contained in:
Jesper Dangaard Brouer
2021-12-07 15:35:51 +01:00
parent bb86dc7f1b
commit bd49ff6ca8

View File

@@ -1288,6 +1288,11 @@ int main(int argc, char **argv)
cfg.sched_prio, cfg.sched_policy);
}
/* Issue: At this point AF_XDP socket might not be ready e.g. for TX.
* It seems related with XDP attachment causing link down/up event for
* some drivers. Q: What is the right method/API that waits for link to
* be initilized correctly?
*/
//sleep(3);
// tx_pkt(&cfg, xsks.sockets[0]);