Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/doc Mention ec_multi*



details:   https://anonhg.NetBSD.org/src/rev/1fbda42bed42
branches:  trunk
changeset: 827364:1fbda42bed42
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Oct 25 07:35:40 2017 +0000

description:
Mention ec_multi*

diffstat:

 doc/TODO.smpnet |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r e35a89f43923 -r 1fbda42bed42 doc/TODO.smpnet
--- a/doc/TODO.smpnet   Wed Oct 25 06:32:59 2017 +0000
+++ b/doc/TODO.smpnet   Wed Oct 25 07:35:40 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: TODO.smpnet,v 1.15 2017/10/12 03:31:39 ozaki-r Exp $
+$NetBSD: TODO.smpnet,v 1.16 2017/10/25 07:35:40 ozaki-r Exp $
 
 MP-safe components
 ==================
@@ -163,3 +163,12 @@
    is O(n)
  - opencrypto(9)'s crypto_newsession()/crypto_freesession() aren't scalable
    as they are serialized by one mutex
+
+ec_multi* of ethercom
+---------------------
+
+ec_multiaddrs and ec_multicnt of struct ethercom and items listed in
+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.



Home | Main Index | Thread Index | Old Index