mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
AF_XDP-interaction: Issue with XDP link down/up
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
This commit is contained in:
@@ -1288,6 +1288,11 @@ int main(int argc, char **argv)
|
|||||||
cfg.sched_prio, cfg.sched_policy);
|
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);
|
//sleep(3);
|
||||||
// tx_pkt(&cfg, xsks.sockets[0]);
|
// tx_pkt(&cfg, xsks.sockets[0]);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user