Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Apr 2023 20:07:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 270636] Netmap leaks mbufs when receiving frames in generic mode on AMD Ryzen
Message-ID:  <bug-270636-227-j9LUNOkBZ5@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-270636-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

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.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-270636-227-j9LUNOkBZ5>