Skip to content

Commit a6398cb

Browse files
committed
Update todo comment
1 parent 8067519 commit a6398cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: xdp-server.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@ static void fill_fq(struct xsk_socket_info *xsk) {
227227
xsk_ring_prod__reserve(&xsk->umem->fq, stock_frames, &idx_fq);
228228

229229
for (uint32_t i = 0; i < stock_frames; ++i) {
230-
// TODO: handle lack of available frames?
230+
/* TODO: handle lack of available frames?
231+
* Is not necessary when the total amount of frames exceeds the
232+
* total slots available across all queues combined */
231233
/* uint64_t frame = xsk_alloc_umem_frame(xsk); */
232234
/* if (frame == XDP_INVALID_UMEM_FRAME) */
233235
/* printf("xdp: trying to fill_addr INVALID UMEM FRAME"); */

0 commit comments

Comments
 (0)