tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
vlan(4) mpsafe
Hi, I implement vlan(4) MP-ify code.
Here is a patch:
https://gist.githubusercontent.com/s-ymgch228/02bb360cfd4e95eb1f64a66c28b30ab2/raw/97221fcc103a796020ea3c48f0ffdbb7bc845d38/vlan_mpsafe.patch
The detail of the changes is following:
+ add a passive reference and mutex to protect softc
- "ifvm_psref"
=> psref for ifv_mib
- "ifv_lock"
=> write lock for ifv_mib and read/write lock for members except
ifv_mib of softc
- "ifv_hash" list
=> hash list of PSLIST for vlan softcs.the hash value calculated by
the VID
+ others
- "vlan_transmit"
=> the function for if_transmit
Could you comment about this patch?
Thanks,
--
Internet Initiative Japan Inc.
Device Engineering Section,
IoT Platform Development Department,
Network Division,
Technology Unit
Shoichi YAMAGUCHI <s-yamaguchi%iij.ad.jp@localhost>
Home |
Main Index |
Thread Index |
Old Index