Thread View: muc.lists.freebsd.bugs
2 messages
2 total messages
Started by bugzilla-noreply
Wed, 07 Oct 2026 13:06
[Bug 299203] re driver's netmap deregistration should unload the dma mappings
Author: bugzilla-noreply
Date: Wed, 07 Oct 2026 13:06
Date: Wed, 07 Oct 2026 13:06
67 lines
4076 bytes
4076 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299203
Bug ID: 299203
Summary: re driver's netmap deregistration should unload the
dma mappings
Product: Base System
Version: 14.5-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: bugs@FreeBSD.org
Reporter: mibelanger@qnx.com
Running pkt_gen twice with an invariants build should show the issue.
e.g.
pkt-gen -i re0 -f tx -n 1 -X
The following addition to the deregistration in if_re_netmap.h should resolve
the issue:
/*
* Register/unregister. We are already under netmap lock.
*/
static int
re_netmap_reg(struct netmap_adapter *na, int onoff)
{
if_t ifp = na->ifp;
struct rl_softc *adapter = if_getsoftc(ifp);
RL_LOCK(adapter);
re_stop(adapter); /* also clears IFF_DRV_RUNNING */
if (onoff) {
nm_set_native_flags(na);
} else {
nm_clear_native_flags(na);
#if PROPOSED_FIX
/* Clean up Tx ring mappings */
for (int i = 0; i < adapter->rl_ldata.rl_tx_desc_cnt; i++ ) {
netmap_unload_map(na, adapter->rl_ldata.rl_tx_mtag,
adapter->rl_ldata.rl_tx_desc[i].tx_dmamap);
}
/* Clean up Rx ring mappings */
for (int i = 0; i < adapter->rl_ldata.rl_rx_desc_cnt; i++ ) {
netmap_unload_map(na, adapter->rl_ldata.rl_rx_mtag,
adapter->rl_ldata.rl_rx_desc[i].rx_dmamap);
}
#endif
}
re_init_locked(adapter); /* also enables intr */
RL_UNLOCK(adapter);
return (if_getdrvflags(ifp) & IFF_DRV_RUNNING ? 0 : 1);
}
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 299203] re driver's netmap deregistration should unload the dma mappings
Author: bugzilla-noreply
Date: Wed, 07 Oct 2026 13:53
Date: Wed, 07 Oct 2026 13:53
16 lines
2612 bytes
2612 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299203
Mark Linimon <linimon@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|bugs@FreeBSD.org |net@FreeBSD.org
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads