Skip to content

Commit

Permalink
Protecting ec_multi* of ethercom with ec_lock have been finished now.
Browse files Browse the repository at this point in the history
  • Loading branch information
msaitoh committed Jan 6, 2020
1 parent f4cf449 commit 2212265
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions doc/TODO.smpnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$NetBSD: TODO.smpnet,v 1.30 2020/01/06 05:38:59 msaitoh Exp $
$NetBSD: TODO.smpnet,v 1.31 2020/01/06 15:21:29 msaitoh Exp $

MP-safe components
==================
Expand Down Expand Up @@ -175,15 +175,6 @@ Scalability
- 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.

ALTQ
----

Expand Down

0 comments on commit 2212265

Please sign in to comment.