Skip to content

Commit

Permalink
Mention the limitation of enabling both NET_MPSAFE and ALTQ
Browse files Browse the repository at this point in the history
  • Loading branch information
ozaki-r committed Dec 5, 2017
1 parent ce0c497 commit 71c8852
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion doc/TODO.smpnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$NetBSD: TODO.smpnet,v 1.17 2017/11/20 09:01:20 ozaki-r Exp $
$NetBSD: TODO.smpnet,v 1.18 2017/12/05 03:23:29 ozaki-r Exp $

MP-safe components
==================
Expand Down Expand Up @@ -173,3 +173,12 @@ ec_multiaddrs must be protected by ec_lock. The core of ethernet subsystem is
already MP-safe, however, device drivers that use the data should also be fixed.
A typical change should be to protect manipulations of the data via ETHER_*
macros such as ETHER_FIRST_MULTI by ETHER_LOCK and ETHER_UNLOCK.

ALTQ
----

If ALTQ is enabled in the kernel, it enforces to use just one Tx queue (if_snd)
for packet transmissions, resulting in serializing all Tx packet processing on
the queue. We should probably design and implement an alternative queuing
mechanism that deals with multi-core systems at the first place, not making the
existing ALTQ MP-safe because it's just annoying.

0 comments on commit 71c8852

Please sign in to comment.