You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a couple of questions regarding the implementation of port_rx_burst and port_tx_burst functions in the AF_XDP-forwarding/xsk_fwd.c file.
poll Call Position in port_rx_burst:
In the port_rx_burst function, I am wondering why the poll call is placed after status = xsk_ring_prod__reserve(&p->umem_fq, n_pkts, &pos); instead of after xsk_ring_prod__submit(&p->umem_fq, n_pkts);. Here is the full function for reference:
In my understanding, poll is typically used to notify the kernel that the fill queue has been filled and is ready for packet reception. Is this understanding correct?
Using poll Instead of sendto in port_tx_burst:
In the port_tx_burst function, can poll be used instead of sendto to send a message to the kernel? If so, what would be the correct format? Here is the function for reference:
I have a couple of questions regarding the implementation of
port_rx_burst
andport_tx_burst
functions in theAF_XDP-forwarding/xsk_fwd.c
file.poll
Call Position inport_rx_burst
:In the
port_rx_burst
function, I am wondering why thepoll
call is placed afterstatus = xsk_ring_prod__reserve(&p->umem_fq, n_pkts, &pos);
instead of afterxsk_ring_prod__submit(&p->umem_fq, n_pkts);
. Here is the full function for reference:In my understanding,
poll
is typically used to notify the kernel that the fill queue has been filled and is ready for packet reception. Is this understanding correct?Using
poll
Instead ofsendto
inport_tx_burst
:In the
port_tx_burst
function, canpoll
be used instead ofsendto
to send a message to the kernel? If so, what would be the correct format? Here is the function for reference:The text was updated successfully, but these errors were encountered: