[Bug 270636] Netmap leaks mbufs when receiving frames in generic mode on AMD Ryzen
Date: Tue, 04 Apr 2023 20:07:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270636
--- Comment #2 from koverskeid@gmail.com ---
(In reply to Mark Johnston from comment #1)
For testing purposes, I use a simple test application written in C which uses
poll and the function below.
void consume_packet(struct nm_desc* nmd)
{
unsigned int ri;
unsigned int while_iteration;
char* buf;
int i;
for (ri = nmd->first_rx_ring; ri <= nmd->last_rx_ring; ri++) {
struct netmap_ring* rxring;
rxring = NETMAP_RXRING(nmd->nifp, ri);
while (!nm_ring_empty(rxring)) {
i = rxring->cur;
buf = NETMAP_BUF(rxring, rxring->slot[i].buf_idx);
printEthernetHeader(buf);
rxring->cur = rxring->head = nm_ring_next(rxring, i);
}
}
}
I cannot see any console messages or log messages from netmap on the host.
--
You are receiving this mail because:
You are the assignee for the bug.