tech-kern archive

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

MP-safe ifnet with psz & psref


This proposal is the first step toward making interfaces
(struct ifnet) MP-safe; it applies psz and psref to ifnet
and ifnet_list to safely look up ifnets from ifnet_list
and safely remove an ifnet.

Here is a patch:

One concern is m_reclaim that can be run in hardware
interrupt and so the patch skips if_drain if it's
running in hardware interrupt because pserialize is
basically designed used in lwp or softint (and now
psref is used with IPL_SOFTNET). Is there a better

And any other suggestions and comments would be


P.S. From today for ten days, I'll be unable to use
my main development machines, I wouldn't be able to
update and test patches reflected your feedbacks enough.

Home | Main Index | Thread Index | Old Index